"Yemi Obembe" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> <?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

Reply via email to