Nieuw lid |
|
<?php
/**
* @author Jasper
* @copyright 2010
*/
$colors = array("color1", "color2", "color3");
if(in_array($_POST['item'], $colors)){
if($data->health > 0){
$error = niks;
echo '<meta http-equiv="refresh" content="0" />';
mysql_query("UPDATE `users` SET `avatar_color`='".str_replace("color", "", $_POST['item'])."' WHERE `login`='$data->login'");
}
else $error = 1;
}
?>
<?php /** * @author Jasper * @copyright 2010 */ $colors = array("color1", "color2", "color3"); if($data->health > 0){ $error = niks; echo '<meta http-equiv="refresh" content="0" />'; mysql_query("UPDATE `users` SET `avatar_color`='".str_replace("color", "", $_POST['item'])."' WHERE `login`='$data->login'"); } else $error = 1; } ?>
hoop dat je er wat aan hebt. |