Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <br><br><br>
- <?php
- $con=mysqli_connect("localhost","root","","testorder");
- /*if($con!=null)
- echo"Sucess";
- */
- $stock;
- for($i=0 ;$i<6 ;$i++)
- {
- if($_POST['gg'][$i] >-1)
- $result=mysqli_query($con,'INSERT INTO orders VALUES(
- "",
- "'.$_POST['IDType'][$_POST['gg'][$i]].'",
- "'.$_POST['Type'][$_POST['gg'][$i]].'",
- "'.$_POST['price'][$_POST['gg'][$i]].'",
- "'.$_POST['at'][$_POST['gg'][$i]].'",
- "'.$_POST['total'][$_POST['gg'][$i]].'");');
- }
- echo"<table border=1>";
- echo"</table>";
- echo "<center>";
- echo"<h2>INSERT SUCCESS </h2>";
- echo "</center>";
- ?><br><br><br>
- <link rel="stylesheet" href="css/sendd.css">
- <div align="center">
- <table>
- <tr>
- <td>
- <img src="image/ย้อน.png" height="80"><br><br>
- <input type="button" value="BACKORDER" onclick="window.location='order.php';">
- </td>
- <td>
- <img src="image/report.png" height="80"><br><br>
- <input type="button" value="PRINT" onclick="window.location='report.php';">
- </td>
- <td>
- <img src="image/12.png" height="80"><br><br>
- <input type="button" value="PDF" onclick="window.location='reportprint.php';">
- </td>
- <td>
- <img src="image/3.png" height="80"><br><br>
- <input type="button" value="REPORTLIST" onclick="window.location='reportlist.php';">
- </td>
- <td>
- <img src="image/3.png" height="80"><br><br>
- <input type="button" value="PDFLIST" onclick="window.location='reportprintlist.php';">
- </td>
- <td>
- <img src="image/d.png" height="80"><br><br>
- <input type="button" value="DELETE" onclick="window.location='delect.php';">
- </td>
- <td>
- <img src="image/d.png" height="80"><br><br>
- <input type="button" value="EDIT" onclick="window.location='Edit.php';">
- </td>
- </tr>
- </table>
- <body bgcolor="#33cc99">
Advertisement
Add Comment
Please, Sign In to add comment