Blogger Information
Blog 32
fans 0
comment 0
visits 23506
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
PDO的基本操作-2019年6月5日
小李广花荣
Original
584 people have browsed it

PDO 操作数据库可以分为六步


  1. 连接数据库  require __DIR__ .'';

  2. 创建SQL语句  $sql= CURD;

  3. 创建对象   $stmt=$pdo->prepare($sql);

  4. 绑定数据  $stmt->bindParam();

  5. 执行语句 $stmt->execute();

  6. 销毁pdo  $pdo=null;

Correction status:qualified

Teacher's comments:
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!