include("func/DB_HANDLE.inc.php"); $auto_id = $_REQUEST["auto_id"]; $strSQL = "select a.*, b.Type_name, b.Type_color from news a, news_type b where a.News_type = b.News_type and Auto_id='$auto_id'"; $sql_result = mysql_query($strSQL); $row = mysql_fetch_array($sql_result); $type_name = $row["Type_name"]; $news_title = $row["News_title"]; $news_cont = $row["News_cont"]; $news_date = $row["News_date"]; $type_color = $row["Type_color"]; if($row["News_url"]!=''){ $news_url = "" . $row["News_url"] . ""; }else{ $news_url = "無"; } if($row["News_file"]!=""){ $news_file[] = "" . $row["File_desc"] . ""; } if($row["News_file_1"]!=""){ $news_file[] = "" . $row["File_desc_1"] . ""; } if($row["News_file_2"]!=""){ $news_file[] = "" . $row["File_desc_2"] . ""; } if($row["News_file_3"]!=""){ $news_file[] = "" . $row["File_desc_3"] . ""; } if($row["News_file_4"]!=""){ $news_file[] = "" . $row["File_desc_4"] . ""; } ?>
|
|||||||||||||||||||||||||||||