header('Content-Type: text/html; charset=tis-620'); /* * Script Name: PHP Webboard * Version : 1.0 * License : Free * Date : 24/02/2018 * Web URI: http://phpscrip.com * Begin SourceCode : Thaicreate.com * Modify By : newaiman * Last Modify : 24/02/2018 */ $objConnect = mysql_connect("localhost","board","4051") or die("Error Connect to Database"); $objDB = mysql_select_db("board"); mysql_query("set names tis620"); if($_GET["Action"] == "Save" and ! empty($_POST["txtQuestion"]) and ! empty($_POST["txtName"])) { //*** Insert Question ***// $strSQL = "INSERT INTO webboard1 "; $strSQL .="(CreateDate,Question,Details,Name) "; $strSQL .="VALUES "; $strSQL .="('".date("Y-m-d H:i:s")."','".$_POST["txtQuestion"]."','".$_POST["txtDetails"]."','".$_POST["txtName"]."') "; $objQuery = mysql_query($strSQL); header("location:index.php"); } ?>
¡ÅѺä»Âѧ˹éÒºÍÃì´ ¾¹Ñ¡§Ò¹ÃÒª¡ÒÃ/ÍѵÃÒ¨éÒ§ ʾ».ÈÃÕÊÐà¡É ࢵ 1