Hi there, I was hoping to use 2 LIKE variables to one: Order my results by category and 2 order my results by letter.. It appears I am unable to run 2 at once.. Can someone let me know what they think i'm doing wrong here?
<?
if ($id == "") {
$sql="SELECT * FROM roms WHERE category LIKE '" . $_GET["category"] . "%' ORDER BY link ASC";
$result=mysql_query($sql);
$ncount=0;
echo "<font size=1> </font>";
while ($myrow=mysql_fetch_array($result)) {
if ($ncount<100)
{
$ncount=$ncount+1;
$newsbody = str_replace("\'", "'", $newsbody);
?>
Thanks a lot!
Andy