Back ]"); printf( _("Category succesfully deleted! [ %s Back %s ]"), "", ''); end_frame(); stdfoot(); die(); } $delid = (int) $_GET['delid']; $name = htmlspecialchars($_GET['cat']); if($delid > 0) { //echo("Are you sure you would like to delete this category? ($name) ( Y / N )"); printf("Are you sure you would like to delete this category? (%s) ( %s )", $name, "Y / N"); end_frame(); stdfoot(); die(); } ///////////////////// E D I T A C A T E G O R Y \\\\\\\\\\\\\\\\\\\\\\\\\\\\ $edited = $_GET['edited']; if($edited == 1) { $id = (int) $_GET['id']; $cat_name = mysql_escape_string( $_GET['cat_name'] ); $cat_img = mysql_escape_string($_GET['cat_img'] ); $query = "UPDATE categories SET name = '$cat_name', image = '$cat_img' WHERE id='$id'"; $sql = mysql_query($query); if($sql) { echo("
"._('Well done! Your category has been edited succesfully!')." [ "._('Back')." ] |