Forum Moderators: coopster
EXP.
Its ordering something like this
7, 4, 4, 2, 14, 12, 10
When I’m wanting it to be like..
14, 12, 10, 7, 4, 4, 2
You get the idea.. But as I said it’s selecting by the first number only. Here is the select code I am using..
<?php
mysql_select_db($DB, $review);
$query_Recordset1 = "SELECT * FROM reviews WHERE activeYN = 1 ORDER BY `id` DESC LIMIT 10";
$Recordset1 = mysql_query($query_Recordset1, $review) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1);
?>
Any ideas on how to fix the problem I am having?
You don't seem to be processing the result set here. Picture the result set coming back as a big spreadsheet of data, columns and rows. You are only reading the first row.
There is a page in our PHP Forum Library [webmasterworld.com] that describes the Basics of extracting data from MySQL [webmasterworld.com] that may help you over the hump.