本文整理汇总了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;未经允许,请勿转载。 |
请发表评论