Hey,
Ik ben ff snel bezig met een pagina voor Paypal, alleen ik krijg deze error:
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 SET account_name = wouter@wouter0100.nl WHERE user_id = 4 AND identity_servi at line 1
in deze query:
en dit stukje code:
Wat doe ik fout?
Bedankt! Wouter.
Ik ben ff snel bezig met een pagina voor Paypal, alleen ik krijg deze error:
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 SET account_name = wouter@wouter0100.nl WHERE user_id = 4 AND identity_servi at line 1
in deze query:
INSERT INTO xf_user_identity (user_id, identity_service_id, account_name) VALUES (".$user[user_id].", Paypal, ".$forumnaam.") ON DUPLICATE KEY UPDATE xf_user_identity SET account_name = ".$email." WHERE user_id = ".$user[user_id]." AND identity_service_id = Paypal " en dit stukje code:
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"INSERT INTO xf_user_identity (user_id, identity_service_id, account_name) VALUES ("[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$user[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]user_id[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]", Paypal, "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$forumnaam[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]") ON DUPLICATE KEY UPDATE xf_user_identity SET account_name = "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$email[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]" WHERE user_id = "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$user[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]user_id[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]" AND identity_service_id = Paypal "[/COLOR][COLOR= #007700]) ==[/COLOR] FALSE[COLOR= #007700])
{[/COLOR]
[URL="http://www.php.net/die"]die[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"Error1"[/COLOR][COLOR= #007700].[/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());
}[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{
}[/COLOR]
?> Wat doe ik fout?
Bedankt! Wouter.

maar iemand de fout al gevonden? 
die die was om te testen, want ik heb meer querys..