當前位置: 首頁>>代碼示例>>PHP>>正文


PHP truyvan函數代碼示例

本文整理匯總了PHP中truyvan函數的典型用法代碼示例。如果您正苦於以下問題:PHP truyvan函數的具體用法?PHP truyvan怎麽用?PHP truyvan使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了truyvan函數的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的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


注:本文中的truyvan函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。