most likely you have a problem in your query but you dont understand how to use mysql_error.

from :
string *mysql_error* ( [resource $link_identifier] )

Returns the error text from the last MySQL function

echo mysql_error(mysql_connect($host,$username,$psswd));
you see now? you are creating new connection. correct code should appear similar to this:

$connection=mysql_connect($host,$username,$psswd) or die ("errror in access 
if (!mysql_query ("INSERT INTO users (First,Last,Phone,Mobile,Email,Web) VALUES ('$first_name','$last','$phone,'$mobile','$email','$web') ",$connection)) echo("error ".mysql_error($connection));

PHP Database Mailing List (
To unsubscribe, visit:

Reply via email to