<?php try{ $dsn='mysql:host=localhost;dbname=hpu'; $username='root'; $password='root'; $pdo = new PDO($dsn, $username, $password); $sql='INSERT t_mymanage(username,password,password2,realname,id_number,email) VALUES("king","'.md5('king').'","'.md5('king').'","qiaolexiang","410422199503051217","626829999@qq.com"';// echo $sql; $res=$pdo->exec($sql); echo "2222".$res."11111"; }catch (PDOException $e){ echo $e->getMessage(); } ?>
- 1 回答
- 0 关注
- 1098 浏览
添加回答
举报
0/150
提交
取消