Re: mysql_array_array

From: Date: Mon, 13 Dec 2004 17:34:49 +0000
Subject: Re: mysql_array_array
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-37683@lists.php.net to get a copy of this message
"Yemi Obembe" <fickledreams@yahoo.com> wrote in message news:20041203131433.1889.qmail@web53106.mail.yahoo.com... > <?php > if ($v = strtolower($_POST['email'])) { > $host = mysql ; > $user = "myusername" ; > $pass= "mypassword" ; > mysql_connect($host , $user , $pass ) ; > mysql_select_db("ng") ; > $sql = "SELECT * FROM arcadia WHERE email=$v"; Try to put email='$v' > gives the error: > Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /var/www/ng/subscribe.php on line 32 > > the concept of the script is to first see if the subscribed email is not already in the list (to prevent double subscription) before subscribing. but dis always come out wit d above error. what do you think could be wrong? > > > > > > --------------------------------- > > A passion till tomorrow, > www.opeyemi.tk > > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com

« previous php.db (#37683) next »