Thứ Tư, 12 tháng 11, 2008

code

<br><br>
<?php
    $id=$_GET['id'];
    $thuoc_menu=$tv_2['thuoc_menu'];
    $tv="select id,ten from san_pham where thuoc_menu='$thuoc_menu' and id<$id order by id desc limit 0,6 ";
    $tv_1=mysql_query($tv);
    while($tv_2=mysql_fetch_array($tv_1))
    {
        echo $tv_2['ten'];echo "<br>";
        echo $tv_2['id'];echo "<br>";
        echo "-------------------------";echo "<br>";
    }
?>