beansandsausages Posted December 13, 2007 Share Posted December 13, 2007 Hello dont know if this a mysql or a php help request. But question is it possable to get a random value out of a mysql databse example : <?php $rand = rand(1, 15); $select =mysql_query("SELECT from db WHERE id='$rand' "); ?> would that work ? Quote Link to comment Share on other sites More sharing options...
fenway Posted December 13, 2007 Share Posted December 13, 2007 ORDER BY RAND LIMIT 1... but read the sticky first. Quote Link to comment Share on other sites More sharing options...
beansandsausages Posted December 13, 2007 Author Share Posted December 13, 2007 Really sorry guess i sould of read it first. My bad Quote Link to comment 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.