I currently am trying to adapt my code to another mysql database. I used mysqli-functions for everything. But this new database doesn't even know these. The server version is from somewhere around 2005, according to the changelog, because the exact current version isn't written down anywhere.
So I changed the code, but it still won't work.
This says bool(false).Code:$result = mysql_query( "SELECT `password` FROM `admin` WHERE `username`=`".$username."`" ); var_dump($result);
Tried to change it like this:
This returns NULL.Code:$result = mysql_query( "SELECT `password` FROM `admin` WHERE `username`=%s", $username ); var_dump($result);
I'm not quite sure what else to do with the code, so that the query finally will be executed properly.