#1064 - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '( '01:00:00.999999', '02:00:00.999998' )' at line 1
Altså hvordan ligger 30? Er det på en bruger? Prøv at giv mig alle info du måtte have i en linie, hvor 30 står. Du har vel noget id og nogle andre info.
Har oprette samme tabel som dig og indsat dine data...
Fejl
SQL-forespørgsel :
SELECT ADDDATE( NOW( ) , INTERVAL + ventetid MINUTE ) FROM tbl_696201 WHERE id =1 LIMIT 0 , 30
MySQL returnerede:
#1064 - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '+ ventetid MINUTE ) FROM tbl_696201 WHERE id =1 LIMIT 0, 30'
der kører en mySQL 4.0.24_Debian på serveren.. kan det være fordi det er en ældre version ?
When invoked with the INTERVAL form of the second argument, ADDDATE() is a synonym for DATE_ADD(). The related function SUBDATE() is a synonym for DATE_SUB(). For information on the INTERVAL argument, see the discussion for DATE_ADD().
As of MySQL 4.1.1, the second syntax is allowed. When invoked with the days form of the second argument, MySQL treats it as an integer number of days to be added to expr.
har selv fundet udaf hvordan jeg ligger 2 tider sammen i PHP
Synes godt om
Ny brugerNybegynder
Din løsning...
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.