Skip to main content

Posts

Showing posts from January 15, 2022

PHP#19MySQL#15 - Loại tin, Thêm, Sửa, Xử lý

//connect.php <?php $link=@mysqli_connect("localhost","root","") or die("Không tìm thấy Sever"); mysqli_select_db($link,"tintuc") or die("Không tồn tại DB"); mysqli_query($link,"set names 'utf8'"); ?> //loaitin.php <!doctype html> <html> <head> <meta charset="utf-8"> <title>Loại Tin</title> </head> <body> <?php include("../connect.php"); if(isset($_GET['lang'])) $lang=$_GET['lang']; else $lang="vi"; ?> <form method="get" id="form1" name="form1"> <p> <label for="loaitin">Chọn ngôn ngữ:</label> <select name="lang" id="lang" onChange="form1.submit();"> <option value="vi">Việt</option> <option value="en"<?php if($lang=="en") echo "...