aian04 Posted October 5, 2007 Share Posted October 5, 2007 how to worki with mysql_fetch_w/o looping... bcoz i only nid 1 row and 1 data.... $room= mysql_query("SELECT r_no FROM room WHERE r_no ='$r_type'order by rand() limit 1"); on this query i nid to remove the result resource... to get the integer only.. Quote Link to comment https://forums.phpfreaks.com/topic/71948-mysql_fetch-assoc/ Share on other sites More sharing options...
marcus Posted October 5, 2007 Share Posted October 5, 2007 $row = mysql_fetch_assoc($room); echo "Room number: " . $row['r_no']; Quote Link to comment https://forums.phpfreaks.com/topic/71948-mysql_fetch-assoc/#findComment-362364 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.