Hi
I have a table called user where all the user information is stored. I
execute following command:
mysql> select counter from user where email='rhp';
+---------+
| counter |
+---------+
| 5 |
+---------+
1 row in set (0.00 sec)
While in PHP when I write:
$sql = "SELECT counter FROM user WHERE email='rhp';
$result = mysql_query($sql);
echo $result;
Resource id #2 - is printed. Why doesn't it print 5? How can I access that
value?
Thanks,
Parth