[KLUG Members] php 4.3.10
Lunitix
lunitix at earthlink.net
Fri Jan 28 01:54:34 EST 2005
I downloaded a security update for the Mac and it included php4.3.10 I
now get this error when attempting to use question/answer page in Jeopardy.
Warning: Missing argument 2 for checkerrors() in
/Users/jon/Sites/Jeopardy/connecttodb.inc on line 10
This is the connecttodb.inc file -
<?php
$link = mysql_connect("localmachine.local", "user", "password");
if (!$link) {
die("Your database is screwed: " . mysql_error());
}
mysql_select_db("jeopardy");
// echo mysql_errno() . ": " . mysql_error () . "<br />\n";
function checkerrors($table,$sql) {
if (mysql_errno()) {
echo mysql_errno() . ": " . mysql_error () . "<br />\n";
echo "There was an error in the query on table $table<br />
The query was <br />
$sql";
die;
return false;
}
return true;
}
?>
Any thoughts on what happened in the php update?
Jon
Minding of Madness
More information about the Members
mailing list