I have the following code:
$sql = mysql_query("SELECT id FROM logins WHERE id='" . $this->skID . "'");
if(mysql_num_rows($sql) == 0) { return false; }
else {
list($skID) = mysql_fetch_row($sql);
return $skID;
}
which brings back the below error.
mysql_num_rows(): supplied argument is not a valid MySQL result resource
I have echoed out the SQL and run this in the database and I get a result, so what the problem - any ideas most welcome?
[EDIT] Sorry Im being an absolute idiot, trying to use mysql functions on an ms database! Sorry!