Bug #16949: mysql_query SELECT returns Resource ID
| From: | Vipervirus at Angelfire dot com | Date: | Wed, 01 May 2002 20:22:30 +0000 |
| Subject: | Bug #16949: mysql_query SELECT returns Resource ID | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-6663@lists.php.net to get a copy of this message | ||
From: Vipervirus@Angelfire.com
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