include('system/inc/connect.inc'); $id = $_GET['id']; $sql = "select * from bmr_news_detail where id = '$id'"; $rows = mysql_query( $sql); if (!$rows ) { echo $sql."SQL指令錯誤!"; exit; } if($row = mysql_fetch_row($rows)){ $id = $row[0]; $main_id = $row[1]; $product_pic = $row[2]; $data_time = date('Y/m/d',strtotime($row[4])); $title = $row[5]; $content_1 = $row[3]; $main_type = $row[8]; } if($product_pic == ''){$product_pic = "up_img/01.jpg";} // $sql_ad = "select * from kd_web_set where id = 1"; // $rows_ad = mysql_query( $sql_ad); // if (!$rows_ad ) { // echo $sql_ad."SQL 指令錯誤!"; // exit; // } // if($row_ad = mysql_fetch_row($rows_ad)){ // $keywords = $row_ad[1]; // $description = $row_ad[2]; $desc = strip_tags($content_1); $desc = str_replace (" ","",$desc); $desc = str_replace (" ","",$desc); // // } //?>