Re: mysql_fetch_row win32 to Linux

From: Date: Sun, 13 Jan 2002 08:08:07 +0000
Subject: Re: mysql_fetch_row win32 to Linux
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-80337@lists.php.net to get a copy of this message
Like this.... $myquery = "SELECT * FROM xpackage"; print "<p>myquery = $myquery</p>"; $myresult = mysql_query($myquery); while($myrowz = mysql_fetch_row($myresult)){ print "<p>" . $myrowz[0] . "</p>"; } php-l@bakednotfried.com wrote:
on 1/12/02 11:45 AM, sundogcurt at sundogcurt@netscape.net wrote:
myquery = SELECT * FROM xpackage Warning: Supplied argument is not a valid MySQL result resource in /path to page with error/default.php on line 5 Line 5 is this part while($myrowz = mysql_fetch_row($myresult)){
this tells me that $myresult is not a valid mysql result resource identifier. how do you obtain $myresult? -- mike cullerton


« previous php.general (#80337) next »