本文整理匯總了PHP中connection::showDBDate方法的典型用法代碼示例。如果您正苦於以下問題:PHP connection::showDBDate方法的具體用法?PHP connection::showDBDate怎麽用?PHP connection::showDBDate使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類connection
的用法示例。
在下文中一共展示了connection::showDBDate方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: selectAction
public function selectAction($where = "")
{
$db = new connection();
$tableName = $this->table_name;
if ($tableName != "") {
$result = array();
$sel = "SELECT * FROM `{$tableName}` WHERE {$where}";
if ($res = mysql_query($sel)) {
if (mysql_num_rows($res) > 0) {
$select_Data = array();
$i = 0;
while ($row = mysql_fetch_array($res)) {
$select_Data[$i]['sys_user_id'] = $row['sys_user_id'];
$select_Data[$i]['sys_name'] = $row['sys_name'];
$select_Data[$i]['sys_role_id'] = $row['sys_role_id'];
$select_Data[$i]['dob'] = $db->showDBDate($row['dob']);
$select_Data[$i]['email'] = $row['email'];
$select_Data[$i]['mobile'] = $row['mobile'];
$select_Data[$i]['address'] = $row['address'];
$select_Data[$i]['user_name'] = $row['user_name'];
$select_Data[$i]['password'] = $db->encodeData($row['password']);
$select_Data[$i]['created_by'] = $row['created_by'];
$select_Data[$i]['created_at'] = $row['created_at'];
$select_Data[$i]['modified_by'] = $row['modified_by'];
$select_Data[$i]['modified_at'] = $row['modified_at'];
$select_Data[$i]['flag'] = 0;
$i++;
}
return $select_Data;
}
} else {
return false;
}
}
}