Re: Resource ID#2 ????

From: Date: Wed, 29 May 2002 16:33:39 +0000
Subject: Re: Resource ID#2 ????
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-19496@lists.php.net to get a copy of this message
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. */

« previous php.db (#19496) next »