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>"; }
[EMAIL PROTECTED] wrote: >on 1/12/02 11:45 AM, sundogcurt at [EMAIL PROTECTED] 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 > > >