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


PHP sql::get_row方法代码示例

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


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

示例1: sql

include "class/class.sql.php";
$sql = new sql();
include "class/class.core.php";
$core = new core();
include "class/class.form.php";
$form = new form();
include "class/class.pager.php";
$pager = new pager();
include "class/class.admin.php";
$admin = new admin();
include "class/class.site.php";
$site = new site();
if (!$site->musteri_online()) {
    $core->location("client_login.php");
}
$online_admin = $sql->get_row("musteriler", "*", "WHERE id='" . $_SESSION["client_id"] . "'");
if ($_GET["manage"] == "") {
    $dispatch = "musteriler.home";
    $_GET["s"] = "display";
    $_GET["manage"] = "musteriler.home";
} else {
    $dispatch = $_GET["manage"];
}
$dispatch = explode(".", $dispatch);
$active_module = $dispatch[0];
$site_general = $sql->get_row("site_general", "*", "WHERE id='1'");
?>
<!DOCTYPE html>
<!--[if IE 8]>         <html class="ie8"> <![endif]-->
<!--[if IE 9]>         <html class="ie9 gt-ie8"> <![endif]-->
<!--[if gt IE 9]><!--> <html class="gt-ie8 gt-ie9 not-ie"> <!--<![endif]-->
开发者ID:antalyaweb,项目名称:istakip,代码行数:31,代码来源:index.php

示例2: check_login

 /**
  * Checks if login true or false
  * If login mode is cookie you can leave $session empty
  * @param <string> $session
  * @return <bool>
  */
 public function check_login($session = null)
 {
     if (MODE_LOGIN == "cookie") {
         if (isset($_COOKIE["PHPSESSID"])) {
             $session = $_COOKIE["PHPSESSID"];
         } else {
             return false;
         }
     }
     $search = array(LOGIN_DB_SESSION => $session);
     $result = parent::get_row($search, SQL_LOGIN_DB);
     if ($result != false) {
         return true;
     } else {
         return false;
     }
 }
开发者ID:hendrik-weiler,项目名称:PHP-Worker-Environment-Lite,代码行数:23,代码来源:login.php

示例3: sql

include "class/class.sql.php";
$sql = new sql();
include "class/class.core.php";
$core = new core();
include "class/class.form.php";
$form = new form();
include "class/class.pager.php";
$pager = new pager();
include "class/class.admin.php";
$admin = new admin();
include "class/class.site.php";
$site = new site();
if (!$admin->online()) {
    $core->location("login.php");
}
$online_admin = $sql->get_row("admins", "*", "WHERE id='" . $_SESSION["admin_id"] . "'");
if ($_GET["dispatch"] == "") {
    $dispatch = "home.home";
    $_GET["s"] = "display";
    $_GET["dispatch"] = "home.home";
} else {
    $dispatch = $_GET["dispatch"];
}
$dispatch = explode(".", $dispatch);
$active_module = $dispatch[0];
$site_general = $sql->get_row("site_general", "*", "WHERE id='1'");
?>
<!DOCTYPE html>
<!--[if IE 8]>         <html class="ie8"> <![endif]-->
<!--[if IE 9]>         <html class="ie9 gt-ie8"> <![endif]-->
<!--[if gt IE 9]><!--> <html class="gt-ie8 gt-ie9 not-ie"> <!--<![endif]-->
开发者ID:antalyaweb,项目名称:istakip,代码行数:31,代码来源:admin.php

示例4: sql

if (!$_GET["s"]) {
    include "config.php";
    include "class/class.sql.php";
    $sql = new sql();
    include "class/class.core.php";
    $core = new core();
    include "class/class.form.php";
    $form = new form();
    // include("class/class.pager.php"); 	$pager = new pager;
    include "class/class.admin.php";
    $admin = new admin();
    include "class/class.site.php";
    $site = new site();
    if ($admin->online()) {
        $online_admin = $sql->get_row("admins", "*", "WHERE id='" . $_SESSION["admin_id"] . "'");
    }
}
if ($_GET["dispatch"]) {
    $dispatch = explode('.', $_GET["dispatch"]);
    $module = $dispatch[0];
    $file = $dispatch[1];
    if ($admin->online() || $module == "admins" && $file == "login") {
        /* DEFINES */
        define("MODULE_FOLDER", "admin/modules/" . $module . "/");
        define("MODULE_DISPLAY_FOLDER", "admin/modules/" . $module . "/display/");
        define("MODULE_PROCESS_FOLDER", "admin/modules/" . $module . "/process/");
        define("MODULE_LINK", $module);
        $inc = "admin/modules/" . $module . "/process/" . $file . ".php";
        if ($_GET["no_settings"] != 1) {
            $inc_settings = "admin/modules/" . $module . "/module.php";
开发者ID:antalyaweb,项目名称:istakip,代码行数:30,代码来源:process.php


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