Advertisement
Guest User

Untitled

a guest
Jun 6th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. <?php
  2. /*Program: mysql_send.php
  3. *Desc: PHP program that sends an SQL query to the
  4. * MySQL server and displays the results.
  5. */
  6. $host="f";
  7. $user="f";
  8. $password="f";
  9. $dbname="f";
  10. $cxn = mysqli_connect($host, $user, $password, $dbname)
  11. or die("Unable to connect to MySQL");
  12. print "Connected to MySQL<br>";
  13. $query = "SELECT bAccess FROM smf_members WHERE id_member = 1";
  14. $result = mysqli_query($cxn,$query)
  15. or die ("Couldn't execute query.");
  16. $stringN = settype($result, 'string');
  17. echo $stringN;
  18. mysql_close($cxn);
  19. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement