Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(isset($_POST['updateMenu'])) {
- $pmid = $SQL->Escape($_POST['menuID']);
- $pmtitle = $SQL->Escape($_POST['menuTitle']);
- $pmlast = $SQL->Escape($_POST['last_menu']);
- $pmexist = $SQL->Escape($_POST['precoded']);
- $ppid = $SQL->Escape($_POST['pageID']);
- $SQL->Query("UPDATE `menu` SET `pID`='".$ppid."', `mTitle`='".$pmtitle."', `mLast`='".$pmlast."', `mPageExists`='".$pmexist."' WHERE `mID`='".$pmid."'");
- if($SQL->AffectedRows() == 1) {
- echo "<script>alert('Meny Uppdaterad!')</script>";
- echo '<meta http-equiv="refresh" content="0;url='.SITE_URL.'admin/?page=menupages&menu='.$pmid.'">';
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement