Re: I have a problem with dynamicly updating files...

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

 



---- satinder singh <lali399@xxxxxxxxx> 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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux