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


PHP ketnoi_MC函数代码示例

本文整理汇总了PHP中ketnoi_MC函数的典型用法代码示例。如果您正苦于以下问题:PHP ketnoi_MC函数的具体用法?PHP ketnoi_MC怎么用?PHP ketnoi_MC使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: xoataptin

function xoataptin($tentaptin)
{
    $ketnoi_maychu = ketnoi_MC();
    chon_CSDL($ketnoi_maychu);
    $masotaptin = mysql_insert_id();
    $truyvan = "DELETE FROM xe_dao WHERE id = {$masotaptin} ";
    $ketqua_truyvan = truyvan($truyvan, $ketnoi_maychu);
}
开发者ID:hieu-pv,项目名称:phudatthanh,代码行数:8,代码来源:nhap_them_nick.php

示例2: upload

function upload($noidung)
{
    $ketnoi_maychu = ketnoi_MC();
    chon_CSDL($ketnoi_maychu);
    $truyvan = "update  footer set noidung='{$noidung}'   where id='1'";
    $ketqua_truyvan = truyvan($truyvan, $ketnoi_maychu);
    if ($ketqua_truyvan) {
        echo "Upload  thành công";
    } else {
        echo "Upload không thành công.Bạn thử lại xem";
    }
    mysql_close($ketnoi_maychu);
}
开发者ID:hieu-pv,项目名称:phudatthanh,代码行数:13,代码来源:sua_footer.php

示例3: upload

function upload($noidung, $noidung_en, $email)
{
    $ketnoi_maychu = ketnoi_MC();
    chon_CSDL($ketnoi_maychu);
    $truyvan = "update  thong_tin_lh set noidung='{$noidung}', noidung_en='{$noidung_en}', email='{$email}' where id='2'";
    $ketqua_truyvan = truyvan($truyvan, $ketnoi_maychu);
    if ($ketqua_truyvan) {
        echo "Upload  thành công";
    } else {
        echo "Upload không thành công.Bạn thử lại xem";
    }
    mysql_close($ketnoi_maychu);
}
开发者ID:hieu-pv,项目名称:phudatthanh,代码行数:13,代码来源:sua_lien_he.php

示例4: kiemtra_hoten_thanhvien

function kiemtra_hoten_thanhvien()
{
    $ketnoi_maychu = ketnoi_MC();
    chon_CSDL($ketnoi_maychu);
    $hoten = $_POST['txt_hoten'];
    $matkhau = base64_encode(trim($_POST['txt_matkhau']));
    $truyvan = "SELECT user,pass,quyen FROM quantri WHERE user like '{$hoten}' AND pass = '{$matkhau}'";
    $ketqua_truyvan = truyvan($truyvan, $ketnoi_maychu);
    $somautin = @mysql_num_rows($ketqua_truyvan);
    if ($somautin > 0) {
        $rows = mysql_fetch_array($ketqua_truyvan, MYSQL_BOTH);
        if ($rows['quyen'] == "admin") {
            $_SESSION['ky_danh__bcd'] = $hoten;
            $_SESSION['mat_khau__bcd'] = $rows['quyen'];
            echo "<form name='frm_dangnhap'>\n\t\t\t        <input type='hidden' name='chuyentrang' value='quan_tri.php?p=1'>\n\t\t\t\t\t</form>";
        } else {
            $_SESSION['ky_danh__bcd'] = $hoten;
            echo $hoten;
        }
    } else {
        loi();
    }
    mysql_close($ketnoi_maychu);
}
开发者ID:hieu-pv,项目名称:phudatthanh,代码行数:24,代码来源:xn_dang_nhap.php

示例5: loi

function loi($hoten)
{
    $ketnoi_maychu = ketnoi_MC();
    chon_CSDL($ketnoi_maychu);
    $truyvan = "SELECT * FROM lienhe WHERE hoten='{$hoten}'";
    $kequa_truyvan = truyvan($truyvan, $ketnoi_maychu);
    $somautin = @mysql_num_rows($kequa_truyvan);
    if ($somautin > 0) {
        echo "<font color='red'>Lưu Không Thành Công. Vì tên khách hàng {$hoten} đã tồn tại.Hãy nhập mới";
    } else {
        echo "<font color='red'>Lưu Không Thành Công. Nhập tên khách hàng {$hoten} sai.Hãy nhập lại";
    }
}
开发者ID:hieu-pv,项目名称:phudatthanh,代码行数:13,代码来源:lien_he.php

示例6: ketnoi_MC

<div class="title1">
<div style="padding-top:10px; padding-left:55px">
Sản Phẩm Bán Chạy</div>
</div>
<div class="sanpham" align="center">



<?php 
include_once "phan_trang.php";
require 'database.php';
$ketnoi_maychu = ketnoi_MC();
chon_CSDL($ketnoi_maychu);
$p = new pager();
$limit = 1;
$start = $p->findStart($limit);
$count = mysql_num_rows(mysql_query("SELECT*FROM du_an"));
$pages = $p->findPages($count, $limit);
$id = $_REQUEST["id"];
$result = mysql_query("SELECT * FROM du_an where id like '{$id}' order by id desc limit {$start},{$limit}");
// hiển thị DL
if (mysql_num_rows($result) != 0) {
    echo " <table width='100%' border='0' align='left'>";
    /*echo "<tr>
        <td colspan='5' background='menu_top.gif'><div align='center' class='style1'><font color='#FFFFFF' face='Verdana, Arial, Helvetica, sans-serif'>THÔNG TIN CHI TIẾT SẢN PHẨM</font></div></td>
      </tr>";*/
    $stt = 0;
    while ($row = mysql_fetch_object($result)) {
        //$masp=$row[0];
        $tieude = $row->tieude;
        $noidung = $row->noidung;
开发者ID:hieu-pv,项目名称:phudatthanh,代码行数:31,代码来源:chitiet_duan.php


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