Search found 1 match

by itguy69
Mon Jul 11, 2005 4:46 pm
Forum: PHP - Code
Topic: display database record at random and ranking then by order.
Replies: 5
Views: 727

I think I understand what you are trying to do: select 4 records at random, then sort that result set by the DisplayOrder field. Here's how you would do that. First thing is to grab 4 random records. You can do this with your query like this: $sql_query = "SELECT * FROM mod_en WHERE StartDate <...