Home > Backend Development > PHP Tutorial > php-新手在此 谢谢各位前辈了!!

php-新手在此 谢谢各位前辈了!!

WBOY
Release: 2016-06-02 11:32:59
Original
880 people have browsed it

php

$dbms='mysql';
$dbName='luo';
$user='root';
$pwd='root';
$host='localhost';
$dsn="$dbms:host=$host;dbname=$dbName";
try{
$pdo=new PDO($dsn,$user,$pwd);
$query="select * from tb_affiche";
$result=$pdo->prepare($query);
$result->execute();
while($res=$result->fetch(PDO::FETCH_ASSOC)){
?>

删除

}
echo "PDO链接Mysql";
}catch(Exception $e){
echo $e->getMessage()."
";
}
?>
出现Notice: Use of undefined constant createtime - assumed 'createtime' in D:\WWW\aff.php on line 24
错误

Related labels:
php
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template