Re: What's wrong with this query?

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

 



Try this:

$logit = mysql_query("INSERT INTO log (term,returns,time,date,ip) VALUES
('$search','$arrayword',CURTIME(), CURDATE(), '$ip'"));


Regards,
Muhammed Mamedov
turkmenweb.com

----- Original Message -----
From: "Axel IS Main" <nfzgrld@xxxxxxxxxx>
To: "PHP-DB" <php-db@xxxxxxxxxxxxx>
Sent: Thursday, February 26, 2004 11:05 AM
Subject:  What's wrong with this query?


> I've just tried to do something I've done a thousand times. It does not
> work. I've checked all of the syntax, made sure the field and variable
> names are correct. No matter what I do it just doesn't work. The table
> remains empty. Here's the query:
>
> $logit = mysql_query("INSERT INTO log SET term='$search',
> returns='$arrayword', time=CURTIME(), date=CURDATE(), ip='$ip'");
>
> Now that doesn't look too difficult does it? Well, apparently it's
> impossible! I'm really hoping someone out there can see something that I
> missed.
>
> Nick
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux