 |
|
นี่ค่ะคำสั่ง เพิ่มพาสเวิร์ดเข้าดาต้าเบสค่ะ
if ( $action == "U" )
{
$sql = "SELECT * FROM $tabName WHERE userid='$userid'";
$result = mysql_query( $sql );
$errmsg =mysql_error();
echo "$errmsg";
if ($authen_level == 1) {
$chk_superadmin = 1;
}
if( mysql_affected_rows( ) > 0 ) {
$sql = "UPDATE $tabName SET authorize_type = '$authen_level', acllevel = '$authen_acl', dept = '$authen_dept', useremail = '$useremail', chk_superadmin = '$chk_superadmin' WHERE userid='$userid'";
} else {
$sql = "INSERT INTO $tabName (userid, pwd, authorize_type, acllevel, dept, useremail, chk_superadmin) VALUES ('$code', password('$pwd'), '$authen_level', '$authen_acl', '$authen_dept', '$useremail', '$chk_superadmin')";
}
$result = mysql_query( $sql );
$errmsg =mysql_error();
echo "$errmsg";
if( mysql_affected_rows( ) > 0 )
{
msgbox( $alreadysaved );
}//end check any insert data?
$action = "";
}
อยากรู้ว่าถ้าเราใช้ password('possword จริง') แบบนี้จะมีคำสั่งไหนที่สามารถถอดรหัสได้บ้างค่ะ
|
 |
 |
 |
 |
Date :
2009-04-02 16:41:59 |
By :
ammyamm |
|
 |
 |
 |
 |
|
|
 |