如题所述
<?php
$tablename = 'abc';
$user = $_POST['user']; //由表单传来
$passwd = $_POST['passwd'];//由表单传来
$passwd = md5($passwd); //change the password to its hash value
$sql = "INSERT INTO TABLE $tablename SET (user=$user ,passwd = $password";
this->db->exec($sql); //应用pear数据库
?>
$tablename = 'abc';
$user = $_POST['user']; //由表单传来
$passwd = $_POST['passwd'];//由表单传来
$passwd = md5($passwd); //change the password to its hash value
$sql = "INSERT INTO TABLE $tablename SET (user=$user ,passwd = $password";
this->db->exec($sql); //应用pear数据库
?>
温馨提示:答案为网友推荐,仅供参考