Bedankt mannen
..
..
..Erik schreef:Oeps, iets te snel gepost@ Luuk; Correctie:[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [URL="http://www.php.net/is_null"]is_null[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$fetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]clan[/COLOR][COLOR= #007700]]) ?[/COLOR] [COLOR= #DD0000]Geen[/COLOR] [COLOR= #007700]:[/COLOR] [COLOR= #0000BB]$fetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]clan[/COLOR][COLOR= #007700]];[/COLOR] ?>

Boude schreef:Graag gedaanBedankt mannen..


$mysql_query("
INSERT INTO
poll
(vraag,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10)
VALUES
(". $_POST[vraag] .",
". $_POST[1] .",
". $_POST[2] .",
". $_POST[3] .",
". $_POST[4] .",
". $_POST[5] .",
". $_POST[6] .",
". $_POST[7] .",
". $_POST[8] .",
". $_POST[9] .",
". $_POST[10] .")
") or die(mysql_error()); Fatal error: Function name must be a string in /home/earn/domains/carhero.nl/public_html/admin_poll.php on line 32 
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 1, 2, 3, 4, 5, 6, at line 4 mysql_query("
INSERT INTO
poll
(vraag,
`1`,
`2`,
`3`,
`4`,
`5`,
`6`,
`7`,
`8`,
`9`,
`10`)
VALUES
(". $_POST[vraag] .",
". $_POST[1] .",
". $_POST[2] .",
". $_POST[3] .",
". $_POST[4] .",
". $_POST[5] .",
". $_POST[6] .",
". $_POST[7] .",
". $_POST[8] .",
". $_POST[9] .",
". $_POST[10] .")
") or die(mysql_error()); Josnl schreef:Nee, maar hij zag die cijfers niet aan als veld namen dus moesten er ` omheenLuuk, moeten dan ook niet die `` om vraag?
