Bug #16949 Updated: mysql_query SELECT returns Resource ID

From: Date: Wed, 01 May 2002 20:23:26 +0000
Subject: Bug #16949 Updated: mysql_query SELECT returns Resource ID
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-6665@lists.php.net to get a copy of this message
ID: 16949 Updated by: derick@php.net Reported By: Vipervirus@Angelfire.com -Status: Open +Status: Bogus Bug Type: *General Issues Operating System: ? PHP Version: 4.1.2 New Comment: The bug system is not the appropriate forum for asking support questions. For a list of a range of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php Previous Comments: ------------------------------------------------------------------------ [2002-05-01 16:23:24] Vipervirus@Angelfire.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 . "<br>"; when ran, $sql = Resource ID #2 instead of the actual value, I couldn't get any help from #php on irc.gamesnet.net ------------------------------------------------------------------------ [2002-05-01 16:22:30] Vipervirus@Angelfire.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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=16949&edit=1

« previous php.bugs (#6665) next »