Jump to content

PHPMySQL


mxo

Recommended Posts

It means the query you are passing to mysql_query is returning null. You'll need to check to see if the query returns any data before executing mysql_result.

 

From PHP.net:

$result = mysql_query('SELECT what FROM where');if (!$result) {    die('Could not query:' . mysql_error());}echo mysql_result($result, 2);

Link to comment
https://forums.phpfreaks.com/topic/281312-phpmysql/#findComment-1445655
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.