Welcome Guest, Not a member yet? Register   Sign In
A PHP Error was encountered [Help]
#2

[eluser]BrianDHall[/eluser]
Well, first what line is causing the error? That means anything below that line is irrelevant to your error, so that would narrow down the problem.

The PHP error means that the query did not execute successfully, so something is going wrong there. You might check your MySQL log to see if something is going wrong with the query, because that's the problem - mysql_query is not returning a valid 'result resource', which in a case like that usually means it's returned boolean FALSE. You'll want to echo out the SQL you are using on the query and examine it to see if it is in error in some way.

Calling var_dump() on $sql and $result may help to shed light on things for you.


Messages In This Thread
A PHP Error was encountered [Help] - by El Forum - 01-04-2010, 12:13 AM
A PHP Error was encountered [Help] - by El Forum - 01-04-2010, 02:28 AM
A PHP Error was encountered [Help] - by El Forum - 01-04-2010, 03:20 AM
A PHP Error was encountered [Help] - by El Forum - 01-04-2010, 08:43 AM



Theme © iAndrew 2016 - Forum software by © MyBB