Table and image dimensions must be numeric integer"; } else { mysql_query("UPDATE configuration SET dimension='$_POST[dimension]' , imgwidth='$_POST[imgwidth]' , imgheight='$_POST[imgheight]' , rowprice1='$_POST[rowprice1]' , rowprice2='$_POST[rowprice2]' , rowprice3='$_POST[rowprice3]' , rowprice4='$_POST[rowprice4]' , rowprice5='$_POST[rowprice5]' , colprice1='$_POST[colprice1]' , colprice2='$_POST[colprice2]' , colprice3='$_POST[colprice3]' , colprice4='$_POST[colprice4]' , colprice5='$_POST[colprice5]' , incre='$_POST[incre]' WHERE user='admin'") or die(mysql_error()); echo "Configuration Updated!"; } break; case "updatestyles": if ($_POST[bgcolor] == "" OR $_POST[bordercolor] == "" OR $_POST[fcolor] == "" OR !is_numeric($_POST[fontsize]) OR !is_numeric($_POST[width])) { echo "All fields must be set! Width and sizes must be integer only!"; } else { mysql_query("UPDATE style SET bgcolor='$_POST[bgcolor]' , bordercolor='$_POST[bordercolor]' , fontcolor='$_POST[fcolor]' , fontface='$_POST[fontface]' , fontsize='$_POST[fontsize]' , width='$_POST[width]' WHERE user='admin'"); echo "Configuration Updated!"; } break; } ?>