本文整理匯總了PHP中Province::Query1方法的典型用法代碼示例。如果您正苦於以下問題:PHP Province::Query1方法的具體用法?PHP Province::Query1怎麽用?PHP Province::Query1使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Province
的用法示例。
在下文中一共展示了Province::Query1方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: trim
require 'includes/variables.php';
include 'lib/phpFunctions-inc.php';
include 'class/province.class.php';
if ($sb == 'Submit') {
$bcode = str_replace(" ", " ", trim($bcode));
$nQuery = "select * from {$preft} where {$prefd}='{$bcode}'";
echo $nQuery;
$nProvince = new Province();
$nProvince->Query1($nQuery);
$nRecord = $nProvince->dbResultOut;
if ($nRecord == 0) {
$bname = strtoupper($bname);
$sQuery = "select * from {$preft} where {$prefc}='{$bname}' and blgf_code='{$blgf_codes}'";
$nProvince = new Province();
$nProvince->Query1($sQuery);
$chkDuplicate = $nProvince->dbResultOut;
if ($chkDuplicate == 0) {
$dQuery = "insert into {$preft} values ('{$bname}', '{$bname}',now(),now(),'{$usern}', '{$blgf_codes}')";
$nProvince = new Province();
$nProvince->InsertQuery($preft, $dQuery);
?>
<body onLoad='javascript:alert("Record Successfully Saved");'></body>
<?php
} else {
?>
<body onload='javascript:alert("Duplicate Record Found");'></body>
<?php
// echo "<div align=center>DUPLICATE RECORD</div>";
}
} elseif ($com == 'edit') {