本文整理汇总了PHP中LoadRowValues函数的典型用法代码示例。如果您正苦于以下问题:PHP LoadRowValues函数的具体用法?PHP LoadRowValues怎么用?PHP LoadRowValues使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了LoadRowValues函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: LoadRow
function LoadRow()
{
global $conn, $Security, $categories;
$sFilter = $categories->SqlKeyFilter();
if (!is_numeric($categories->id->CurrentValue)) {
return FALSE;
// Invalid key, exit
}
$sFilter = str_replace("@id@", ew_AdjustSql($categories->id->CurrentValue), $sFilter);
// Replace key value
// Call Row Selecting event
$categories->Row_Selecting($sFilter);
// Load sql based on filter
$categories->CurrentFilter = $sFilter;
$sSql = $categories->SQL();
if ($rs = $conn->Execute($sSql)) {
if ($rs->EOF) {
$LoadRow = FALSE;
} else {
$LoadRow = TRUE;
$rs->MoveFirst();
LoadRowValues($rs);
// Load row values
// Call Row Selected event
$categories->Row_Selected($rs);
}
$rs->Close();
} else {
$LoadRow = FALSE;
}
return $LoadRow;
}
示例2: LoadRow
function LoadRow()
{
global $conn, $Security, $hoturls, $view;
$sFilter = $hoturls->SqlKeyFilter();
if (!is_numeric($hoturls->id->CurrentValue)) {
return FALSE;
// Invalid key, exit
}
$sFilter = str_replace("@id@", ew_AdjustSql($hoturls->id->CurrentValue), $sFilter);
// Replace key value
// Call Row Selecting event
$hoturls->Row_Selecting($sFilter);
// Load sql based on filter
$hoturls->CurrentFilter = $sFilter;
$sSql = "SELECT * FROM `hoturls` WHERE id=" . @$_GET["id"] . "";
if ($rs = $conn->Execute($sSql)) {
if ($rs->EOF) {
$LoadRow = FALSE;
} else {
$LoadRow = TRUE;
$rs->MoveFirst();
LoadRowValues($rs);
// Load row values
// Call Row Selected event
$hoturls->Row_Selected($rs);
}
$rs->Close();
} else {
$LoadRow = FALSE;
}
return $LoadRow;
}