|
|
|
ช่วยผมหน่อยครับบบ ไม่รู้จะแก้ยังไงแล้วววจะสอบแล้วครับบ |
|
|
|
|
|
|
|
Code (PHP)
if ($_POST[keyword] !="") {
$strSQL = "SELECT stdUser, stdGroup, stdTitle, stdFirstName, stdLastName";
if (utf8_strlen(trim($_POST[keyword]))=="9") {
$strSQL .= " WHERE stdGroup = '$_POST[keyword]'";
}elseif (utf8_strlen(trim($_POST[keyword]))=="11") {
$strSQL .= " WHERE stdUser = '$_POST[keyword]'";
}else{
$strSQL .= " WHERE stdFirstName like '%$_POST[keyword]%'";
$strSQL .= " OR stdTitle like '%$_POST[keyword]%'";
$strSQL .= " OR stdLastName like '%$_POST[keyword]%'";
}
|
|
|
|
|
Date :
2014-12-06 15:13:21 |
By :
sabaitip |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 03
|