Bug #13560 Updated: mysql_fetch_object can't return any record

From: Date: Sat, 06 Oct 2001 03:38:14 +0000
Subject: Bug #13560 Updated: mysql_fetch_object can't return any record
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-67407@lists.php.net to get a copy of this message
ID: 13560 User updated by: xufa@sina.com Reported By: xufa@sina.com Status: Bogus Bug Type: MySQL related Operating System: win2000 PHP Version: 4.0.6 New Comment: it dosen't return any record when i use mysql_fetch_object to fetch result! $UserName1=$HTTP_POST_VARS["UserName"]; $PassWd1=$HTTP_POST_VARS["Passwd"]; $rst_CommandText="select Passwd,OSKEY from admin where UserName='" . $UserName1 . "'"; $result = mysql_db_query("myforum",$rst_CommandText,$rst_ActiveConnection); echo mysql_result($result,0,"Passwd"); //work correctly! $rows = mysql_fetch_object($result); echo $rows->Passwd; //but it dosen't work!!! Previous Comments: ------------------------------------------------------------------------ [2001-10-05 06:38:20] cynic@php.net not enough info. read bugs-dos-and-donts.php ------------------------------------------------------------------------ [2001-10-05 06:33:07] xufa@sina.com it dosen't return any record when i use mysql_fetch_object to fetch result! ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=13560&edit=1

« previous php.dev (#67407) next »