|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-05-01 16:22 UTC] Vipervirus at Angelfire dot com
I've been trying for a week now to fix this, finally gave up on it:
$sql = mysql_query("SELECT pass FROM users WHERE name = '$user'");
echo $sql[pass] . "<br>";
when ran, $sql = Resource ID #2 instead of the actual value, I couldn't get any help from #php on irc.gamesnet.net
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 07 07:00:02 2025 UTC |
I've been trying for a week now to fix this, finally gave up on it: $sql = mysql_query("SELECT pass FROM users WHERE name = '$user'"); echo $sql . "<br>"; when ran, $sql = Resource ID #2 instead of the actual value, I couldn't get any help from #php on irc.gamesnet.netI didn't post here intending to ask for help, I was posting a bug because $sql = mysql_query("SELECT * FROM users"); works just fine but $sql = mysql_eury("SELECT * FROM users WHERE name = '$user'"); doesn't work I've tried this on completely diff servers and got the same result