Ik heb bijvoorbeeld dit:
Hoe werkt het dan dat als je ?acc=3
id veranderd naar 3 en keur +1 wordt
En als je ?del=3
id veranderd naar 3 en keur +2 wordt
?
[COLOR= #0000BB]<?php
$query[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"UPDATE moppen SET keur=keur+[DEL=+2 OF ACC=+1?] WHERE id=[HIER ID]"[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$query[/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]
?> Hoe werkt het dan dat als je ?acc=3
id veranderd naar 3 en keur +1 wordt
En als je ?del=3
id veranderd naar 3 en keur +2 wordt
?
