本文整理汇总了PHP中sql_db::findByColumnOnce方法的典型用法代码示例。如果您正苦于以下问题:PHP sql_db::findByColumnOnce方法的具体用法?PHP sql_db::findByColumnOnce怎么用?PHP sql_db::findByColumnOnce使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类sql_db
的用法示例。
在下文中一共展示了sql_db::findByColumnOnce方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: strftime
$subject = str_replace("%member%", "-", $subject);
$subject = str_replace("%name%", $_POST["name"] . " " . $_POST["surname"], $subject);
$text = str_replace("%created%", strftime("%Y-%m-%d %H:%M", $created), $text);
$text = str_replace("%changed_at%", "-", $text);
$text = str_replace("%request_id%", $request_id, $text);
$text = str_replace("%type%", "add", $text);
$text = str_replace("%state%", "awaiting", $text);
$text = str_replace("%member_id%", "-", $text);
$text = str_replace("%member%", "-", $text);
$text = str_replace("%admin_id%", "-", $text);
$text = str_replace("%admin%", "-", $text);
$text = str_replace("%reason%", "-", $text);
$text = str_replace("%admin_response%", "-", $text);
$text = str_replace("%ip%", $_SERVER["REMOTE_ADDR"], $text);
$text = str_replace("%ptr%", gethostbyaddr($_SERVER["REMOTE_ADDR"]), $text);
$distro = $db->findByColumnOnce("cfg_templates", "templ_id", $_POST["distribution"]);
$location = $db->findByColumnOnce("locations", "location_id", $_POST["location"]);
$application = '
Nickname: ' . $_POST["nick"] . '
Name: ' . $_POST["name"] . ' ' . $_POST["surname"] . '
Email: ' . $_POST["email"] . '
Adresa: ' . $_POST["address"] . ", " . $_POST["zip"] . " " . $_POST["city"] . ", " . $_POST["country"] . '
Year of birth: ' . $_POST["birth"] . '
Jabber:
How: ' . $_POST["how"] . '
Note: ' . $_POST["note"] . '
Currency: ' . $_POST["currency"] . '
Distribution: ' . $distro["templ_id"] . ' ' . $distro["templ_label"] . '
Location: ' . $location["location_id"] . ' ' . $location["location_label"] . '
';
$text = str_replace("%changed_info%", $application, $text);