Re: mysql_array_array

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"Yemi Obembe" <fickledreams@xxxxxxxxx> wrote in message
news:20041203131433.1889.qmail@xxxxxxxxxxxxxxxxxxxxxxxxxx
> <?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

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


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux