Quote
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'and parent = 0' at line 1
sql kods:
SQL KODS:
<?
$sql = "SELECT * FROM `ura_items` WHERE CategoryID != 2 AND CategoryID != 1 AND CategoryID != 0 ORDER BY `Add_Date` DESC LIMIT 10";
$result = @mysql_query($sql);
if( !$result ) {
echo "MySql Error: ".mysql_error();
}
$i = 0;// for alternative row color
while( $row = mysql_fetch_assoc($result) ){
echo "<li><a href=\"".seo_links('detail', $row['ProductID'], $row['ProductName'], 1, _SEO)."\">".fewchars($row['ProductName'], 60)."</a> <span class=\"date_right\">".nice_date($row['Add_Date'])."</span></li>";
echo "<li class=\"shortdesc\">".fewchars($row['LongDesc'], 140)."</li>";
$i++;
}
?>

Sign In
Register
Help


MultiQuote