maxudaskin Posted February 12, 2008 Share Posted February 12, 2008 <?php if(!$logged_in){ echo 'You are not logged in'; }else{ if($_SESSION['type'] != 1){ $action = $_GET['action']; $pirep = $_GET['pirep']; $user = 'OOM'.$_SESSION['username'].' '.$_SESSION['name']; $date = ''; if(!empty($action) && !empty($pirep)){ if($action = 'accept'){ $acceptsql = mysql_query("UPDATE `zoomdb`.`pireps` SET `type` = '0' WHERE `pireps`.`pirepid` ='{$pirep}' LIMIT 1"); if($acceptsql){ echo 'Application Accepted'; }else{ die('ERROR: Application not accepted due to internal error.'); } }elseif($action = 'deny'){ $denysql = mysql_query("UPDATE `zoomdb`.`pireps` SET `type` = '2' WHERE `pireps`.`pirepid` ='{$pirep}' LIMIT 1"); }else{ echo 'You have specified an unknown action.'; } }else{ echo 'You do not have either an action or a pirep specified or both.'; }}} ?> It does not output anything, but it does not give an error either... no actions at all. Quote Link to comment https://forums.phpfreaks.com/topic/90609-i-thought-it-was-right/ Share on other sites More sharing options...
maxudaskin Posted February 12, 2008 Author Share Posted February 12, 2008 start_session() is called way before this PHP, but there is only HTML between them. Quote Link to comment https://forums.phpfreaks.com/topic/90609-i-thought-it-was-right/#findComment-464542 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.