<html> <body> <form name="form1" method="post" action="insert.php"> <p> <?php $hostname="localhost"; $user="root"; $password=""; $dbname="member"; $tbname="user_name"; mssql_connect($hostname,$user,$password) or die("ติดต่อฐานข้อมูลไม่ได้"); mssql_select_db($suser_name) or die("เลือกฐานข้อมูลไม่ได้"); $sql = "SELECT * from $user_name"; $dbquery= mysql_db_query($member,$user_name); $num_rows= mysql_num_rows($dbquery); $num_fields=mysql_num_fields ($dbquery); echo "show $dbuser database $dbname for sql<hr>"; $i=0; while ($i<$num_fields) { $field_name[$i]=mysql_field_name($dbquery,$i); $i++; $i=0; while ($i< num_rows) { $r=mysql_fetch_array($dbquery); $u_UserID=$r[u_UserID]; $u_username=$r[u_username]; $u_name=$r[u_name]; $u_password=$r[u_password]; $u_status=$r[u_status]; $u_hdate=$r[u_hdate]; $u_address=$r[u_address]; $i++; } mysql_close(); } ?> <table width="810" height="235" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="213" height="58">Us erID <input name="name2" type="text" id="name2"></td> <td colspan="6"> Username <input name="name3" type="text" id="name3"></td> </tr> <tr> <td height="52">Name <input name="name4" type="text" id="name4"></td> <td colspan="2">Password <input name="name5" type="text" id="name5"> </td> <td width="314" colspan="4">Status <input name="name6" type="text" id="name6"></td> </tr> <tr> <td colspan="7">วันที่เกิด <input name="date" type="date" id="date" /> </td> </tr> <tr> <td height="79" colspan="7">ที่อยู่ปัจจุบัน <label for="textarea"></label> <textarea name="textarea" id="textarea" cols="45" rows="5"></textarea></td> </tr> </table> <p> <input type="submit" name="Submit" value="เพิ่มข้อมูล"> <input type="reset" name="Submit2" value="Reset"> </p> </form> </body> </html> </html>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง