Code: Select all
<?php
$result = @mysql_query("SELECT * FROM portfolio WHERE type='$section' ORDER BY `type`,`id` DESC");
?>?????????????????
Moderator: General Moderators
Code: Select all
<?php
$result = @mysql_query("SELECT * FROM portfolio WHERE type='$section' ORDER BY `type`,`id` DESC");
?>I don't think you want quotes around the type and id:Phenom wrote:I've done this before but I'm sorta stumped on how to do it again.
That gives parse error, HELP?Code: Select all
<?php $result = @mysql_query("SELECT * FROM portfolio WHERE type='$section' ORDER BY `type`,`id` DESC"); ?>
?????????????????
Code: Select all
<?php
$result = @mysql_query("SELECT * FROM portfolio WHERE type='$section' ORDER BY type, id DESC");
?>