include("/var/www/html/thidh07dt/chung/connect.php"); $sql="select * from SANPHAM"; $rs=mysql_query($sql); $num_rs=mysql_num_rows($rs); if($num_rs>0) for($i=0;$i<$num_rs;$i++) { $row=mysql_fetch_array($rs); $st =$st."\n"; $st2 =$st2." | (".$row["F_MASP"].")".$row["F_TENSP"].""; } mysql_close(); ?>
echo $st2; ?>