Advertisement
Guest User

Untitled

a guest
Jul 18th, 2016
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. <?php
  2. session_start();
  3. include("check.php");
  4. $dbHost = 'localhost';
  5. $dbUsername = 'root';
  6. $dbPassword = '';
  7. $dbName = 'searchrouters';
  8. //connect with the database
  9. $conn = new mysqli($dbHost, $dbUsername, $dbPassword, $dbName);
  10. // Check connection
  11. $checkbox1=$_POST['IP'];
  12. {
  13. for($i=0; $i<sizeof($checkbox1);$i++){
  14. $query="INSERT INTO checked (name) VALUES ('".$checkbox1[$i]."')";
  15. $conn->query($query) or die(mysql_error());
  16. $_SESSION['ipadd'] = $checkbox1[$i];
  17. include('tel2.php');
  18. }
  19.  
  20. }
  21. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement