---- satinder singh <[EMAIL PROTECTED]> wrote:
> I got a lot through a tutorial, but problem is when i tried to insert,
> problem occured using following code:
>
> $query = "INSERT INTO contacts VALUES
> ('','$first','$last','$phone','$mobile','$fax','$email','$web')";
> mysql_query($query);
<!-- SNIP -->
Your query looks fine. You need to look at the error codes you receive.
change:
mysql_query($query);
TO:
mysql_query($query) or die(mysql_error());
The resulting error message should help you find your MySQL issue.
Wolf
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php