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.. 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']; Link to comment https://forums.phpfreaks.com/topic/71948-mysql_fetch-assoc/#findComment-362364 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.