Jump to content

random from dbase


web_master

Recommended Posts

hi,

 

in database I have 100 product names.

 

how can I list randomly this names from dbase - in marquee?

 

<?php
$query_random = mysql_query("SELECT * FROM `productgroups_2` ORDER BY `productgroups_2_id` ASC");

while($request_random = mysql_fetch_array($query_random)) {
?>
<marquee><?php print $request_random['product_name'];?></marquee>
<?php }?>

 

 

in advanced thnxs

Link to comment
https://forums.phpfreaks.com/topic/96375-random-from-dbase/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.