keymasterviriya1150

Untitled

May 5th, 2016
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.81 KB | None | 0 0
  1.  
  2.     <br><br><br>
  3. <?php
  4.  
  5.  
  6.     $con=mysqli_connect("localhost","root","","testorder");
  7.     /*if($con!=null)
  8.         echo"Sucess";
  9.     */
  10.    
  11.     $stock;
  12.     for($i=0 ;$i<6 ;$i++)
  13.     {  
  14.         if($_POST['gg'][$i] >-1)
  15.             $result=mysqli_query($con,'INSERT INTO orders VALUES(
  16.             "",
  17.             "'.$_POST['IDType'][$_POST['gg'][$i]].'",
  18.             "'.$_POST['Type'][$_POST['gg'][$i]].'",
  19.             "'.$_POST['price'][$_POST['gg'][$i]].'",
  20.             "'.$_POST['at'][$_POST['gg'][$i]].'",
  21.             "'.$_POST['total'][$_POST['gg'][$i]].'");');   
  22.            
  23.     }
  24.    
  25.    
  26.    
  27.     echo"<table border=1>";
  28.    
  29.     echo"</table>";
  30.     echo "<center>";
  31.  
  32.     echo"<h2>INSERT SUCCESS </h2>";
  33.    
  34.  
  35.     echo "</center>";
  36.    
  37. ?><br><br><br>
  38. <link rel="stylesheet" href="css/sendd.css">
  39. <div align="center">
  40.     <table>
  41.     <tr>
  42.         <td>
  43.             <img src="image/ย้อน.png" height="80"><br><br>
  44.             <input type="button" value="BACKORDER" onclick="window.location='order.php';">
  45.         </td>
  46.        
  47.         <td>
  48.             <img src="image/report.png" height="80"><br><br>
  49.             <input type="button" value="PRINT" onclick="window.location='report.php';">
  50.         </td>
  51.        
  52.         <td>
  53.             <img src="image/12.png" height="80"><br><br>
  54.             <input type="button" value="PDF" onclick="window.location='reportprint.php';">
  55.         </td>
  56.         <td>
  57.             <img src="image/3.png" height="80"><br><br>
  58.             <input type="button" value="REPORTLIST" onclick="window.location='reportlist.php';">
  59.         </td>
  60.         <td>
  61.             <img src="image/3.png" height="80"><br><br>
  62.             <input type="button" value="PDFLIST" onclick="window.location='reportprintlist.php';">
  63.         </td>
  64.         <td>
  65.             <img src="image/d.png" height="80"><br><br>
  66.             <input type="button" value="DELETE" onclick="window.location='delect.php';">
  67.         </td>
  68.         <td>
  69.             <img src="image/d.png" height="80"><br><br>
  70.             <input type="button" value="EDIT" onclick="window.location='Edit.php';">
  71.         </td>
  72.     </tr>
  73.  </table>
  74.        
  75.        
  76. <body bgcolor="#33cc99">
Advertisement
Add Comment
Please, Sign In to add comment