function upload($tieude, $key, $dis) { $ketnoi_maychu = ketnoi_MC(); chon_CSDL($ketnoi_maychu); $truyvan = "UPDATE `he_thong` SET `tieude` = '{$tieude}',\n`dis` = '{$dis}',`key` = '{$key}' WHERE `id` =1;\n"; $ketqua_truyvan = truyvan($truyvan, $ketnoi_maychu); if ($ketqua_truyvan) { dichuyen_taptin_vaothumuc($tentaptin); } else { echo "Upload không thành công.Bạn thử lại xem"; } mysql_close($ketnoi_maychu); }
function upload($noidung, $noidung_en) { $ketnoi_maychu = ketnoi_MC(); chon_CSDL($ketnoi_maychu); $truyvan = "update du_lieu_1_tin set noidung='{$noidung}', noidung_en='{$noidung_en}' where id='2'"; $ketqua_truyvan = truyvan($truyvan, $ketnoi_maychu); if ($ketqua_truyvan) { dichuyen_taptin_vaothumuc($tentaptin); } else { echo "Upload không thành công.Bạn thử lại xem"; } mysql_close($ketnoi_maychu); }
function upload($noidung, $tentaptin, $tieude, $mota, $trangchu, $noidung_en, $tieude_en, $mota_en, $chuoi) { $ketnoi_maychu = ketnoi_MC(); chon_CSDL($ketnoi_maychu); $truyvan = "INSERT INTO tintuc (`id` ,`hinhanh` ,`noidung` ,`mota` ,`tieude`, `trangchu`, `noidung_en`, `tieude_en`, `mota_en` , `ngay`) VALUES (NULL, '{$tentaptin}', '{$noidung}', '{$mota}', '{$tieude}', '{$trangchu}', '{$noidung_en}', '{$tieude_en}', '{$mota_en}', '{$chuoi}')"; $ketqua_truyvan = truyvan($truyvan, $ketnoi_maychu); if ($ketqua_truyvan) { dichuyen_taptin_vaothumuc($tentaptin); } else { echo "Upload không thành công.Bạn thử lại xem"; } mysql_close($ketnoi_maychu); }
function upload($noidung, $tentaptin, $tieude, $id, $thuoc_menu, $trangthai, $khuyenmai, $giaban, $trangchu, $noidung_en, $tieude_en, $trangthai_en, $khuyenmai_en) { $ketnoi_maychu = ketnoi_MC(); chon_CSDL($ketnoi_maychu); $truyvan = "update san_pham set hinhanh='{$tentaptin}' , tieude='{$tieude}', noidung='{$noidung}', thuoc_menu='{$thuoc_menu}', trangthai='{$trangthai}', khuyenmai='{$khuyenmai}', giaban='{$giaban}', trangchu='{$trangchu}', noidung_en='{$noidung_en}', tieude_en='{$tieude_en}', trangthai_en='{$trangthai_en}', khuyenmai_en='{$khuyenmai_en}' where id='{$id}'"; $ketqua_truyvan = truyvan($truyvan, $ketnoi_maychu); if ($ketqua_truyvan) { dichuyen_taptin_vaothumuc($tentaptin); } else { echo "Upload không thành công.Bạn thử lại xem"; } mysql_close($ketnoi_maychu); }
function upload($macdinh, $tentaptin, $noidung, $masp, $trangchu, $thuocloai, $kichthuoc, $xuatxu, $banchay) { $ketnoi_maychu = ketnoi_MC(); chon_CSDL($ketnoi_maychu); $truyvan = "INSERT INTO sanpham (`hinhanh` ,`thuocloai` ,`noidung` ,`trangchu` ,`kichthuoc` ,`xuatxu` ,`banchay` ,`masp` ,`macdinh` ) VALUES ('{$tentaptin}', '{$thuocloai}', '{$noidung}', '{$trangchu}', '{$kichthuoc}', '{$xuatxu}','{$banchay}', '{$masp}' ,'{$macdinh}')"; $ketqua_truyvan = truyvan($truyvan, $ketnoi_maychu); if ($ketqua_truyvan) { dichuyen_taptin_vaothumuc($tentaptin); } else { echo "Upload không thành công.Bạn thử lại xem"; } mysql_close($ketnoi_maychu); }
function upload($noidung, $tentaptin, $tieude, $mota, $trangchu, $id) { $ketnoi_maychu = ketnoi_MC(); chon_CSDL($ketnoi_maychu); $truyvan = "UPDATE `doi_tac` SET \n`hinhanh` = '{$tentaptin}',\n\n`noidung` = '{$noidung}',\n`mota` = '{$mota}',\n`tieude` = '{$tieude}', `trangchu`='{$trangchu}' where id='{$id}'"; $ketqua_truyvan = truyvan($truyvan, $ketnoi_maychu); if ($ketqua_truyvan) { dichuyen_taptin_vaothumuc($tentaptin); } else { echo "Upload không thành công.Bạn thử lại xem "; } mysql_close($ketnoi_maychu); }
function upload($noidung, $tentaptin, $tieude, $thuocloai) { $ketnoi_maychu = ketnoi_MC(); chon_CSDL($ketnoi_maychu); $truyvan = "INSERT INTO chuong_trinh (noidung, hinhanh, tieude, thuocloai) VALUES ('{$noidung}', '{$tentaptin}', '{$tieude}', '{$thuocloai}')"; $ketqua_truyvan = truyvan($truyvan, $ketnoi_maychu); if ($ketqua_truyvan) { dichuyen_taptin_vaothumuc($tentaptin); } else { echo "Upload không thành công.Bạn thử lại xem"; } mysql_close($ketnoi_maychu); }
function upload($noidung, $tentaptin, $tieude, $thuocloai, $mota, $trangchu, $id, $noidung_en, $tieude_en, $mota_en) { $ketnoi_maychu = ketnoi_MC(); chon_CSDL($ketnoi_maychu); $truyvan = "UPDATE `du_an` SET `hinhanh` = '{$tentaptin}',\n`noidung` = '{$noidung}',\n`trangchu` = '{$trangchu}',\n`mota` = '{$mota}',\n`tieude` = '{$tieude}',\n`tieude_en` = '{$tieude_en}',\n`noidung_en` = '{$noidung_en}',\n`mota_en` = '{$mota_en}' WHERE `id` ={$id};"; $ketqua_truyvan = truyvan($truyvan, $ketnoi_maychu); if ($ketqua_truyvan) { dichuyen_taptin_vaothumuc($tentaptin); } else { echo "Upload không thành công.Bạn thử lại xem `hinhanh` = '{$tentaptin}',`thuocloai` = '{$thuocloai}',`noidung` = '{$noidung}',`mota` = '{$mota}',`tieude` = '{$tieude}', `trangchu`='{$trangchu}', noidung_en='{$noidung_en}', tieude_en='{$tieude_en}' , mota_en='{$mota_en}' where id='{$id}'"; } mysql_close($ketnoi_maychu); }
function upload($noidung, $tentaptin, $tieude, $thuocloai, $trangthai, $khuyenmai, $giaban, $trangchu, $noidung_en, $tieude_en, $trangthai_en, $khuyenmai_en) { $ketnoi_maychu = ketnoi_MC(); chon_CSDL($ketnoi_maychu); $truyvan = "INSERT INTO san_pham (noidung, hinhanh, tieude, thuoc_menu, trangthai, khuyenmai, giaban, trangchu, noidung_en, tieude_en, trangthai_en, khuyenmai_en) VALUES ('{$noidung}', '{$tentaptin}', '{$tieude}', '{$thuocloai}', '{$trangthai}', '{$khuyenmai}', '{$giaban}', '{$trangchu}', '{$noidung_en}', '{$tieude_en}', '{$trangthai_en}', '{$khuyenmai_en}')"; $ketqua_truyvan = truyvan($truyvan, $ketnoi_maychu); if ($ketqua_truyvan) { dichuyen_taptin_vaothumuc($tentaptin); } else { echo "Upload không thành công.Bạn thử lại xem"; } mysql_close($ketnoi_maychu); }
function upload($tentaptin, $noidung, $tencongtrinh, $diachi, $dientich, $thuoctheloai) { $ketnoi_maychu = ketnoi_MC(); chon_CSDL($ketnoi_maychu); $truyvan = "INSERT INTO congtrinh_thicong (hinhanh, mota, tencongtrinh, diachi, dientich, thuoctheloai) VALUES ('{$tentaptin}', '{$noidung}', '{$tencongtrinh}', '{$diachi}', '{$dientich}', '{$thuoctheloai}')"; $ketqua_truyvan = truyvan($truyvan, $ketnoi_maychu); if ($ketqua_truyvan) { dichuyen_taptin_vaothumuc($tentaptin); } else { echo "Upload không thành công.Bạn thử lại xem"; } mysql_close($ketnoi_maychu); }
function upload($tentaptin, $id) { $ketnoi_maychu = ketnoi_MC(); chon_CSDL($ketnoi_maychu); $truyvan = "update hinh_banner set hinhanh='{$tentaptin}' where id='{$id}'"; $ketqua_truyvan = truyvan($truyvan, $ketnoi_maychu); if ($ketqua_truyvan) { dichuyen_taptin_vaothumuc($tentaptin); } else { echo "Upload không thành công.Bạn thử lại xem"; } mysql_close($ketnoi_maychu); }
function upload($noidung, $tentaptin, $tieude, $mota, $chuoi, $trangchu, $id) { $ketnoi_maychu = ketnoi_MC(); chon_CSDL($ketnoi_maychu); $truyvan = "update tintuc set noidung='{$noidung}', hinhanh='{$tentaptin}', tieude='{$tieude}', mota='{$mota}', ngay='{$chuoi}', trangchu='{$trangchu}' where id='{$id}'"; $ketqua_truyvan = truyvan($truyvan, $ketnoi_maychu); if ($ketqua_truyvan) { dichuyen_taptin_vaothumuc($tentaptin); } else { echo "Upload không thành công.Bạn thử lại xem"; } mysql_close($ketnoi_maychu); }
function upload($noidung, $tentaptin, $tieude, $mota, $chuoi, $trangchu) { $ketnoi_maychu = ketnoi_MC(); chon_CSDL($ketnoi_maychu); $truyvan = "INSERT INTO tintuc (noidung, hinhanh, tieude, mota, ngay, trangchu) VALUES ('{$noidung}', '{$tentaptin}', '{$tieude}', '{$mota}', '{$chuoi}', '{$trangchu}')"; $ketqua_truyvan = truyvan($truyvan, $ketnoi_maychu); if ($ketqua_truyvan) { dichuyen_taptin_vaothumuc($tentaptin); } else { echo "Upload không thành công.Bạn thử lại xem"; } mysql_close($ketnoi_maychu); }
function upload($tentaptin, $noidung, $tencongtrinh, $diachi, $dientich, $thuoctheloai, $id) { $ketnoi_maychu = ketnoi_MC(); chon_CSDL($ketnoi_maychu); $truyvan = "update congtrinh_thicong set hinhanh='{$tentaptin}', mota='{$noidung}', tencongtrinh='{$tencongtrinh}', diachi='{$diachi}', dientich='{$dientich}', thuoctheloai='{$thuoctheloai}' where id='{$id}'"; $ketqua_truyvan = truyvan($truyvan, $ketnoi_maychu); if ($ketqua_truyvan) { dichuyen_taptin_vaothumuc($tentaptin); } else { echo "Upload không thành công.Bạn thử lại xem"; } mysql_close($ketnoi_maychu); }
function upload($tentaptin) { $ketnoi_maychu = ketnoi_MC(); chon_CSDL($ketnoi_maychu); $truyvan = "INSERT INTO hinh_banner ( hinhanh) VALUES ('{$tentaptin}')"; $ketqua_truyvan = truyvan($truyvan, $ketnoi_maychu); if ($ketqua_truyvan) { dichuyen_taptin_vaothumuc($tentaptin); } else { echo "Upload không thành công.Bạn thử lại xem"; } mysql_close($ketnoi_maychu); }
function upload($macdinh, $tentaptin, $noidung, $masp, $trangchu, $thuocloai, $kichthuoc, $xuatxu, $banchay, $id) { $ketnoi_maychu = ketnoi_MC(); chon_CSDL($ketnoi_maychu); $truyvan = "update san_pham_khac set hinhanh='{$tentaptin}' , thuocloai='{$thuocloai}', noidung = '{$noidung}' , trangchu='{$trangchu}' , kichthuoc = '{$kichthuoc}' , xuatxu = '{$xuatxu}' , banchay = '{$banchay}' , masp = '{$masp}' , macdinh = '{$macdinh}' where id='{$id}'"; $ketqua_truyvan = truyvan($truyvan, $ketnoi_maychu); if ($ketqua_truyvan) { dichuyen_taptin_vaothumuc($tentaptin); } else { echo "Upload không thành công.Bạn thử lại xem"; } mysql_close($ketnoi_maychu); }