Order |
Title |
Name |
Brief |
Date |
See |
include("config.inc.php");
mysql_connect($host,$user,$passwd);
$sql = "select * from c2 order by id desc";
//$sql6="select * from img_webboard where no='$No' and la='C' order by idimg ASC";
$result=mysql_query($sql);
mysql_select_db($dbname);
$NRow = mysql_num_rows($result);
if($NRow==0) {
//echo "ไม่พบข้อมูลที่ท่านต้องการ ต้องขอโทษด้วยนะค๊ะ";
echo " ";
}else{ ?>
while ($row = mysql_fetch_array($result)){
$i++;
//$row = mysql_fetch_array($result);
$id = $row["id"];
$title =$row["title"];
$title1 = $row["title1"];
$name = $row["name"];
$b1 = $row["b1"];
//echo "$b1";
$y1=$row["y1"];
$see=$row["see"];
echo "$i | ";
echo "";
if($title1){
echo "$title";
}
echo" | $name | ";
echo "";
if($b1){
echo " ";
}
echo " | $y1 | $see | ";
}
}
?>
|