wahsaga: BenutzerID in Tabelle schreiben

Beitrag lesen

hi,

$query = "INSERT INTO projects VALUES
('$projecttype', '$projecttitle', '$projectdescription', '$pcid')";

Dieses Query ist mMn falsch, da MySQL nicht weiß, welche Felder geändert werden sollen

Alle.

http://dev.mysql.com/doc/refman/5.0/en/insert.html

Da steht's auch:
"If you do not specify a list of column names for INSERT ... VALUES or INSERT ... SELECT, values for every column in the table must be provided by the VALUES list or the SELECT statement."

gruß,
wahsaga

--
/voodoo.css:
#GeorgeWBush { position:absolute; bottom:-6ft; }