$user_code [COLOR=#666600]=[/COLOR] $_POST[COLOR=#666600][[/COLOR][COLOR=#008800]"user_code"[/COLOR][COLOR=#666600]];[/COLOR]$psc_code [COLOR=#666600]=[/COLOR] $_POST[COLOR=#666600][[/COLOR][COLOR=#008800]"psc_code"[/COLOR][COLOR=#666600]];[/COLOR]$value [COLOR=#666600]=[/COLOR] $_POST[COLOR=#666600][[/COLOR][COLOR=#008800]"value"[/COLOR][COLOR=#666600]];[/COLOR][COLOR=#000088]if[/COLOR][COLOR=#666600]([/COLOR]$user_code [COLOR=#666600]==[/COLOR] [COLOR=#008800]""[/COLOR] OR $psc_code [COLOR=#666600]==[/COLOR] [COLOR=#008800]""[/COLOR] OR $value [COLOR=#666600]==[/COLOR] [COLOR=#008800]""[/COLOR][COLOR=#666600])[/COLOR] [COLOR=#666600]{[/COLOR] echo [COLOR=#008800]"Please fill out all fields"[/COLOR][COLOR=#666600];[/COLOR] [COLOR=#000088]exit[/COLOR][COLOR=#666600];[/COLOR] [COLOR=#666600]}[/COLOR]$result [COLOR=#666600]=[/COLOR] mysql_query[COLOR=#666600]([/COLOR][COLOR=#008800]"SELECT psc_code FROM t_donation WHERE psc_code LIKE '$psc_code'"[/COLOR][COLOR=#666600]);[/COLOR]$menge [COLOR=#666600]=[/COLOR] mysql_num_rows[COLOR=#666600]([/COLOR]$result[COLOR=#666600]);[/COLOR][COLOR=#000088]if[/COLOR][COLOR=#666600]([/COLOR]$menge [COLOR=#666600]==[/COLOR] [COLOR=#006666]0[/COLOR][COLOR=#666600])[/COLOR] [COLOR=#666600]{[/COLOR] $eintrag [COLOR=#666600]=[/COLOR] [COLOR=#008800]"INSERT INTO t_donation (user_code, psc_code, value) VALUES ('$user_code', '$psc_code', '$value')"[/COLOR][COLOR=#666600];[/COLOR] $eintragen [COLOR=#666600]=[/COLOR] mysql_query[COLOR=#666600]([/COLOR]$eintrag[COLOR=#666600]);[/COLOR]