- Messages
- 1,682
- Reaction score
- 32
- Points
- 48
PHP:
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
[B]12/31/69[/B]
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