当前位置: 首页>>代码示例>>PHP>>正文


PHP db::get_record方法代码示例

本文整理汇总了PHP中db::get_record方法的典型用法代码示例。如果您正苦于以下问题:PHP db::get_record方法的具体用法?PHP db::get_record怎么用?PHP db::get_record使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在db的用法示例。


在下文中一共展示了db::get_record方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: db

 function display_block_sosmedia($model = '')
 {
     global $app;
     $dbu = new db();
     $config = $dbu->get_record("configuration", "id", 1);
     if (!$model) {
         include "{$app['path']}/bagian/bag_sosmedia.php";
     } else {
         include "{$app['path']}/bagian/bag_sosmedia_" . $model . ".php";
     }
 }
开发者ID:salomay,项目名称:refreshin,代码行数:11,代码来源:usrlib.php

示例2: header

*******************************************************************************/
if ($act == "set_hot") {
    $admlib->validate('tour_edit');
    $dbu->set_hot("berita", "id", $p_id, $hot, "hit");
    $_SESSION['msg'] = "status hot destinasi berhasil di update ....";
    $_SESSION['alt'] = "info";
    header("location: " . $urlx->get_referer());
}
/*******************************************************************************
* Action : view
*******************************************************************************/
if ($act == "view") {
    $admlib->validate('tour_view');
    $admlib->set_aktip("tourcms_destinasi");
    $formix->init();
    $page = $dbu->get_record("destinasi", "id", $p_id);
    $form = $page;
    $formix->populate($form);
    include "tmp_view.php";
    exit;
}
/*******************************************************************************
* Action : add
*******************************************************************************/
if ($act == "add") {
    $admlib->set_aktip("tourcms_destinasi");
    $admlib->validate('tour_add');
    $formix->init();
    if ($step == 1) {
        $formix->populate($form);
        //print_r($app[me]);
开发者ID:salomay,项目名称:refreshin,代码行数:31,代码来源:index.php

示例3: stats

<?php

$stats = new stats();
$dbu = new db();
$appx = new app();
$appx->load_lib('feed');
$feedex = new feed();
$stats->log_stats($rs_act["nama"], $act, $p_id, $sub, $step, $cat, $status, $tab);
$app['nopage'] = $rs_act["action"];
//echo $p_id;exit;
$pid = str_replace("-", "%", $p_id);
$idnya = $dbu->lookup("id", $app[table][komunitas], "nama LIKE '%" . $pid . "%'");
$komm = $dbu->get_record($app[table][komunitas], "id = '" . $idnya . "'");
$komm[logo] = $appx->cekFile('/komunitas/logo/', $komm[logo], 'default.png');
$komm[logo] = $app[data_www] . '/komunitas/logo/' . $komm[logo];
include "fill/fill_community_detail.php";
开发者ID:salomay,项目名称:refreshin,代码行数:16,代码来源:coretan_community_detail.php

示例4: app

<?php

include "../application.php";
$appx = new app();
$appx->load_lib('stats', 'url', 'msg', 'form', 'nav', 'file', 'admlib', 'usrlib');
## START #######################################################################
$appx->set_default($act, '');
$appx->set_default($step, 1);
$admlibx = new admlib();
$dbu = new db();
$formix = new form();
$msgx = new msg();
$dbu->connect();
if ($act == "" || $act == 'traveler_friend') {
    $formix->populate($form);
    $pgconfig = $dbu->get_record("konfig", "id", 1);
    if ($_SESSION['adminsession']) {
        header("location: {$app['webmin']}/index.php?act=home");
    } elseif ($_SESSION['membersession']) {
        header("location: {$app['webmin']}/index.php?act=member");
    } else {
        include "dsp_login.php";
    }
    exit;
}
/*******************************************************************************
* login
* gambaran : validasi login
*******************************************************************************/
if ($act == "login") {
    $formix->init();
开发者ID:salomay,项目名称:refreshin,代码行数:31,代码来源:index.php

示例5: db

 function get_top_parent($id, &$parent)
 {
     global $app;
     // $appx = new app();
     $dbu = new db();
     $adminlib = new admlib();
     $data = $dbu->get_record('product_parent', 'id', $id);
     $parent[] = $data['name'];
     if ($data['parent_id'] != 0) {
         $admlib->get_top_parent($data['parent_id'], $parent);
     } else {
         $parent = array_reverse($parent);
         $parent = implode(" => ", $parent);
     }
     return $parent;
 }
开发者ID:salomay,项目名称:refreshin,代码行数:16,代码来源:admlib.php

示例6: set_lang

 function set_lang($model = '')
 {
     global $app;
     if (!$model) {
         $config = db::get_record("configuration", "id", 1);
         $bahasa = $config[default_lang];
     } else {
         if ($model == "eng") {
             $bahasa = "ina";
         } elseif ($model == "ina") {
             $bahasa = "eng";
         }
         //$app[bahasa] = $model;
     }
     return $bahasa;
 }
开发者ID:salomay,项目名称:refreshin,代码行数:16,代码来源:app.php

示例7:

						</li>
						<?php 
}
?>
					</ul>
					<img class="bg_destination_category" src="<?php 
echo $app["css_www"];
?>
/img/bg-destination-category.jpg">
				</div><!-- /.content_category -->
				<div class="latest_update add_fix">
					<h1>Latest Update<span class="border"></span></h1>
					<ul class="update_list add_fix">
						<?php 
while ($rsnew = $dbu->fetch($rstip)) {
    $newskat = $dbu->get_record('berita_kategori', "id='" . $rsnew[id_kat] . "' and id_bahasa='id'");
    $newsbhs = $dbu->get_record('berita_bahasa', "id_berita='" . $rsnew[id] . "' and id_bahasa='id'");
    ?>
							<li>
							<a href="<?php 
    echo $app["www"] . "/" . $dbu->lookup('nama', 'action', "action='51'") . "/" . $urlx->shortLink($newsbhs[judul]) . "_" . $rsnew[id] . "/";
    ?>
">

								<div class="img_box">
									<div class="icon"><img src="<?php 
    echo $app["data_www"];
    ?>
/berita/icon/<?php 
    echo $newskat[icon];
    ?>
开发者ID:salomay,项目名称:refreshin,代码行数:31,代码来源:fill_home.php

示例8: stats

<?php

$stats = new stats();
$dbu = new db();
$appx = new app();
$appx->load_lib('feed');
$feedex = new feed();
$stats->log_stats($rs_act["nama"], $act, $p_id, $sub, $step, $cat, $status, $tab);
$app['nopage'] = $rs_act["action"];
//echo $p_id;exit;
$pid = str_replace("-", "%", $p_id);
$idnya = $dbu->lookup("id", $app[table][pengguna], "username LIKE '%" . $pid . "%'");
$dprof = $dbu->get_record("pengguna", "id = '" . $idnya . "'");
$dprof[avatar] = $appx->cekFile("/pengguna/avatar/", $dprof[avatar]);
$rsact = $dbu->get_recordset("pengguna_feed", "id_user='" . $idnya . "' and status='aktif' ORDER BY tgl_post desc LIMIT 10");
//$rsnegara=$dbu->get_recordset("negara", "status ='aktif'");
$feed = "";
while ($dfeed = $dbu->fetch($rsact)) {
    if ($dfeed[tabel] == "cekin") {
        $feed = $feedex->feedCheckIn($dfeed, $_SESSION[bhs], $dprof);
    }
}
//exit;
include "fill/fill_profil.php";
开发者ID:salomay,项目名称:refreshin,代码行数:24,代码来源:coretan_profil.php

示例9: msg

$msgx = new msg();
$urlx = new url();
$filex = new file();
$appx->set_default($act, 'update');
$appx->set_default($step, 1);
$dbu->connect();
$admlib->validate("sett");
/*******************************************************************************
* Action : change
*******************************************************************************/
if ($act == "update") {
    $admlib->validate('sett_edit,sett_add');
    $formix->init();
    if ($step == "1") {
        $admlib->set_aktip("sett_configbhs");
        $config = $dbu->get_record("konfig", "id", 1);
        $form = $config;
        $formix->populate($form);
        include "tmp_config.php";
        exit;
    }
    if ($step == "2") {
        $formix->serialize_form();
        $formix->validate('', 'p_judul,p_judul_cms,p_domain');
        if ($formix->is_error()) {
            $msgx->build_msg();
            header("location: index.php?act=update&error=1&referer=" . $urlx->get_referer());
            exit;
        }
        $data = $dbu->get_record("konfig", "id", 1);
        $id = rand(1, 999) . date("dmYHis");
开发者ID:salomay,项目名称:refreshin,代码行数:31,代码来源:index.php


注:本文中的db::get_record方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。