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 = mysql_connect($host, $user, $password, $dbname)
- or die("Unable to connect to MySQL");
- print "Connected to MySQL<br>";
- $query = mysql_query("SELECT bAccess FROM smf_members WHERE id_member = 1");
- $result = mysql_result($query,0,0)
- 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