[thelist] mySQL and PHP troubles

Anthony Baratta Anthony at Baratta.com
Sun Sep 2 21:28:32 CDT 2001


At 04:44 PM 9/2/2001, you wrote:
>Hi.
>
>I'm learning mySQL and PHP. I'm working through some examples in the 
>Beginning PHP4 by WROX. I have a mySQL table and I want to use PHP to 
>display the userid and username.


Are you sure that

         $result = mysql_query("select * from user", $link_id);

Is working correctly? does this return an error too??

         echo mysql_num_rows($result) ;
---
Anthony Baratta
President
Keyboard Jockeys

"Conformity is the refuge of the unimaginative."





More information about the thelist mailing list