query

Gestart doorOne2xs7 reacties37 weergaven

8 berichten · pagina 1 van 1

One2xs

Bot · Topicstarter

Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"INSERT INTO banners (link, banner, naam) VALUES("[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]link[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]","[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]banner[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]", "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]naam[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]")"[/COLOR][COLOR= #007700])[/COLOR] or [URL="http://www.php.net/die"]die[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());[/COLOR]
?>


Geeft dit:

Quote:
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 , ) at line 1

Wie weet oplossing?
0
Berichten
13.482
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
$_POST[naam] is leeg
en ik zou die dingen trouwens nog tussen s zetten
0
One2xs

Bot · Topicstarter

Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
dus doordat iets leeg is gaat het fout?
0
Berichten
13.482
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
ja,

INSERT INTO banners (link, banner, naam) VALUES(google.nl, google.nl/banner.gif, )

dat gaat niet werken emo
0
One2xs

Bot · Topicstarter

Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
als alles ingevuld is krijg ike dit:
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 , lol) at line
0
Berichten
13.482
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
je moet "dinges" doen ipv "dinges"
0
Rik

Lid

Berichten
18.393
Reputatie
0
Punten
0,04
Lid sinds
Laatst gezien
je moet naam nog tussen s zetten, dat zei sjoerd al biggrin
0
One2xs

Bot · Topicstarter

Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
TNX
0

Jouw reactie

Deel je idee, stel een vraag of help een ander verder.

Editor laden…

Praat mee met de One2xs-community.

Inloggen om te reageren