Ive tryed using the following code to get data from the MySQL table...
Code:
<?php
$connection=mysql_connect("localhost","USERNAME","PASSWORD");
$db=mysql_select_db("darkWkyr",$connection);
$check_name = "SELECT Name FROM profiles WHERE id=1";
$users_name = mysql_query($check_name);
echo "Name : $users_name";
?>
But instead of displaying the name which should be 'JAmes' it displays 'Resource id #3'...
Whys this??? I have made an error in the code???
Thanks
-James 
|