Your mysql_connect is wrong.

Stop using just @ to suppress errors, and start doing something useful with
http://php.net/mysql_error like sending it to http://php.net/error_log or
something.

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
----- Original Message -----
From: Brack <[EMAIL PROTECTED]>
Newsgroups: php.general
To: <[EMAIL PROTECTED]>
Sent: Friday, August 24, 2001 3:25 PM
Subject: HELP!!!


> I have a script with combination:
> $ins_u = @mysql_query("INSERT INTO users  (name,email)
> VALUES ('$u_name','$u_email')");
>  $userid = @mysql_insert_id($ins_u);
>
> It's working fine on local server but now I put it on the web and it
> sais:
> Warning: Supplied argument is not a valid MySQL-Link resource in
> /home/sites/site21/web/incr/submition.inc on line 30
>  (which is line above)
> Youri
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to