<html> <body> <fieldset> <legend>Choose Batch For Analysis</legend> <form action="#" method="post" > <?php echo "<center>"; $placeBranch = ""; $placeBranch = getBatches('bat[]'); echo "Select A Batch:".$placeBranch; ?> <input type="submit" name="submit" value="submit"/> </form> </body> <?php if(isset($_POST['submit'])) { $bat=$_POST['bat'][0]; $array=explode(':',$bat); $brid=$array[0]; $batyr=$array[1]; $query=mysql_query("SELECT * FROM MBATCHT WHERE brid='$brid' AND batyr='$batyr' ") or die(mysql_error()); $result=mysql_fetch_array($query); $batid= $result['batid']; $regid= $result['regid']; $query2=mysql_query("SELECT * FROM SAVAILT WHERE brid='$brid' AND regid='$regid' ") or die(mysql_error()); $result2=mysql_fetch_array($query2); $query1=mysql_query("SELECT * FROM MAVAILT WHERE batid='$batid'") or die(mysql_error()); while($result1 = mysql_fetch_array($query1))
<html> <body> <center> <h2>Update Manually</h2> <form action="#" method="post"> <?php if(!array_key_exists("batsub",$_POST) && !array_key_exists("phase2",$_POST)) { echo getBatches('bat[]')."<br /><br />"; echo "<input type='submit' name='batsub' />"; } ?> </center> <div id='php_next'> <?php include_once("next.php"); if(isset($_POST['batsub'])) { nextUp(); } ?> <div id='php_check'> <?php include_once("check.php"); if(isset($_POST['phase2'])) { cheker();