Jump to content

[SOLVED] MySQL Errors


jjacquay712

Recommended Posts

Ok.... this one is really simple but i don't know what to do. When i do a query like this:

 

$resource = mysql_query("whatever");

$result = mysql_result($resource, 0, 'username');

 

and it doesn't get a result it displays this error: Warning: mysql_result(): supplied argument is not a valid MySQL result resource.

 

how do i do it, so that if it doesn't find anything, it doesn't give an error? and $result == "";

Link to comment
https://forums.phpfreaks.com/topic/123179-solved-mysql-errors/
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.