PHP error message?? Cant get rid of it!?
Your code is cut off, so I can't be for sure, but it looks like the parameter you are giving mysql_fetch_assoc is not the result of a valid mysql result from a query.
i.e. proper usage might be:
$handle = mysql_connect('localhost','username','password');
mysql_select_db('database',$handle);
$result = mysql_query("SELECT * FROM EVENTS");
if ($result) {
while($row = mysql_fetch_assoc($result)) {
//code for each row goes here
}
}
|