a guest Jun 14th, 2017 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- database name test_db
- database table test_table
- $dbhost = 'localhost';
- $dbuser = 'dave';
- $dbpass = 'davepass';
- $dbname = 'test_db';
- $conn = mysql_connect($dbhost, $dbuser, $dbpass)
- or die ('Error connecting to mysql');
- $result = mysql_query("SELECT user FROM test_table WHERE id=1 AND email=test.test.com");
- echo "The user name is: '$result'";
- i get this error
- The user name is: 'Resource id #2'
RAW Paste Data