Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*Program: mysql_send.php
- *Desc: PHP program that sends an SQL query to the
- * MySQL server and displays the results.
- */
- $host="f";
- $user="f";
- $password="f";
- $dbname="f";
- $cxn = mysqli_connect($host, $user, $password, $dbname)
- or die("Unable to connect to MySQL");
- print "Connected to MySQL<br>";
- $query = "SELECT bAccess FROM smf_members WHERE id_member = 1";
- $result = mysqli_query($cxn,$query)
- or die ("Couldn't execute query.");
- $stringN = settype($result, 'string');
- echo $stringN;
- mysql_close($cxn);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement