Autor Zpráva
one
Profil
zdravim,
nevíte jaká je chyba v tomto sql dotazu?
$db->sql_query("INSERT INTO test (name, news, online)
VALUES('test', '1', '0')");
všechny hodnoty jsou jen pro test

mysql_error() vypisuje:
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 'test (name, news, online)

díky za pomoc
Alphard
Profil
jsou ty sloupce správně pojmenované (třeba překlep) a mají všechny datový typ řetězec?
djlj
Profil
A co takhle?
$db->sql_query("INSERT INTO `test` (`name`, `news`, `online`)
VALUES('test', '1', '0')");
one
Profil
djlj
to je ono ;)
díky moc
Toto téma je uzamčeno. Odpověď nelze zaslat.

0