[eluser]satanrulehis[/eluser]
hi all!!
My SQL statement doesn’t work when I add $num, $offset into it
Code:
$sql = "SELECT c.name as catalogname,p.id,p.name,p.product_code,p.small_pic,p.price FROM product p, product_catalog c where c.id=".$catalogid." and c.id=p.catalog_id and p.active=1 limit ".$offset.",".$num;
Tell me what's wrong??
thanks for reading