PHP Code:
function display_nextSession() {
$today = strtotime(date("m/d/y"));
$sql = "SELECT * FROM nextsession WHERE date>='$today' LIMIT 1";
$result = mysql_query($sql);
$row = mysql_fetch_array($result);
$nextDay = date("m/d/y", $row[1]);
echo $nextDay;
}
Code:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\xampp\htdocs\mcs\sources\functions\home.php on line 13
12/31/69
For some reason, the above function works on one page, but does not work on another. I get the error shown above.
Im first going to see if you can solve it without me having to put up the pages where the code is on, but if it is needed just reply, and I will get it up ASAP