Guest User

roll_check

a guest
Apr 17th, 2017
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. <?php
  2. $mysql_host='localhost';
  3. $mysql_user='root';
  4. $mysql_pass='';
  5. $rolln='1';
  6. $dbname="a_database";
  7. $connection=mysqli_connect($mysql_host,$mysql_user,$mysql_pass,$dbname);
  8. $query= "SELECT ROLL_NO FROM records";
  9. $result=mysqli_query($connection,$query);
  10. while($row=mysqli_fetch_assoc($result))
  11. {
  12. if ($rolln==$row["ROLL_NO"])
  13. {
  14. echo "found";
  15. ?>
  16.  
  17. <a href="blank.php"> </a>
  18.  
  19. //var_dump ($row) ;
  20. <?php echo "<hr/>";
  21. }
  22. }
  23. ?>
Add Comment
Please, Sign In to add comment