m00nz00mer Posted May 6, 2008 Share Posted May 6, 2008 hey, im trying to retrieve a list of 5 random datas from the field bokTit. can someone help me out. <?php $result = mysql_query("SELECT * FROM bok WHERE 1 ORDER BY RAND() LIMIT 5"); while($row = mysql_fetch_array($result)) { echo $row['bokTit']; ?> Link to comment https://forums.phpfreaks.com/topic/104359-array-issue/ Share on other sites More sharing options...
m00nz00mer Posted May 6, 2008 Author Share Posted May 6, 2008 hehe forgot the } Link to comment https://forums.phpfreaks.com/topic/104359-array-issue/#findComment-534295 Share on other sites More sharing options...
Dathremar Posted May 6, 2008 Share Posted May 6, 2008 hehe It happens Link to comment https://forums.phpfreaks.com/topic/104359-array-issue/#findComment-534301 Share on other sites More sharing options...
conker87 Posted May 6, 2008 Share Posted May 6, 2008 So.. What's your error? Link to comment https://forums.phpfreaks.com/topic/104359-array-issue/#findComment-534303 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.