I wrote the following code to select text from database,but when i echo the output it giving output as Resource id #4
mysql_select_db("xxxxx", $link);
$q = "SELECT start_of FROM `qr_table` WHERE id_qr =1";
$result = mysql_query ($q, $link);
echo $result;
i am new to sql,forgive me if its a stupid questain
Thanks in advance
you are echoing out the connection. you need to do something with the results like loop through them please check http://www.php.net/manual/en/function.mysql-query.php