|
|
主营业务 |
|
require('left-achi.php');
?>
|
|
include("config/config.php");
$id=intval($_GET['id']);
try{ // PDO连接数据库若错误则会抛出一个PDOException异常
$PDO = new PDO($serve,$username,$password);
$result = $PDO->query("SELECT * FROM hp_newstitle where id=".$id."");
foreach ($result as $row) {
print("".$row['contents']." | ");
}
} catch (PDOException $error){
//echo 'connect failed:'.$error->getMessage();
}
?>
|
require('foot.php');
?>
|