Savedb php

Page 1

<?php include("connectdb.php"); $sql="INSERT INTO `stu` (`id` ,`id_stu` ,`name` ,`surname` ,`sex` ,`level` ,`adress` ,`count` ,`day` ,`mount` ,`year`) VALUES ('NULL', '$idname', '$name', '$surname', '$radio', '$level', '$textarea', '$idl', '$day', '$Mount', '$year')"; //$sql="INSERT INTO `stu` (`id` ,`name` ,`surname`)VALUES ('NULL', '$name', '$surname')"; mysql_query($sql); mysql_close($con); ?> <script language="javascript"> alert("บันทึกข้อมูลเรียบร้อยแล้ว") window.location.href="insert.php" </script>


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.