On Thursday 30 May 2002 00:17, Jas wrote:
> Ok here is my problem, I set this up so a user selects a name form a select
> box and that name or $user_id is then  passed to this page so the user can
> edit the contact info etc.  However it does not pull the selected $user_id
> and place each field into my form boxes, all I get is a Resource ID #2. 
> Not sure how I can over come this...
> $table = "auth_users";
>  $record = @mysql_query("SELECT * FROM $table WHERE user_id =
> '$user_id'",$dbh);

Make liberal use of error checking (see manual) and mysql_error().

Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *

grep me no patterns and I'll tell you no lines.

PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to