From:             [EMAIL PROTECTED]
Operating system: ?
PHP version:      4.1.2
PHP Bug Type:     *General Issues
Bug description:  mysql_query SELECT returns Resource ID

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      
-- 
Edit bug report at http://bugs.php.net/?id=16949&edit=1
-- 
Fixed in CVS:        http://bugs.php.net/fix.php?id=16949&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=16949&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=16949&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=16949&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=16949&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=16949&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=16949&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=16949&r=submittedtwice

Reply via email to