<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <!-- DW6 --> <head> <!-- Copyright 2005 Macromedia, Inc. All rights reserved. --> <title></title> </head> <tr> <td height="156" class="bodyText"><p align="center" class="style17"> <? include ("connect.php"); $Sql = "select * from pvc1-1 where sid=$_REQUEST[sid]"; //คำสั่ง ในการเลือกข้อมูลจากฐานข้อมูล $Result = mysql_query($Sql); //คำสั่งการกระทำคิวรี่ ?> <table border=1> <tr> <td>You ID :</td><td>Password:</td> </tr> <?$Row = mysql_fetch_array($Result)//ดึงข้อมูลจากผลลัพธ์มาเก็บไว้ที่ตัวแปรข้อมูล ?> <tr> <td><? echo $sid ?></td> <td><? echo $sname?></td> </tr> </table> <p> </p> <p><a href=membermain.html>Back</a><br> <br> </body> </html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <TITLE> New Document </TITLE> <META NAME="Generator" CONTENT="EditPlus"> <META NAME="Author" CONTENT=""> <META NAME="Keywords" CONTENT=""> <META NAME="Description" CONTENT=""> </HEAD> <BODY> <td height="156" class="bodyText"><p align="center" class="style17"><form action="select.html"> include ("select.html"); <center>Enter your Student ID<br></center> <br> <table border=1 align=center> <tr><td>ป้อนเลข ID ที่ต้องการดูข้อมูล:</td> <td><input type=text name=sid></td></tr> <tr><td colspan=2 align=center> <input type=submit value=" send "></td></tr> </table> </form><br> </BODY> </HTML>
$Sql = "select * from pvc1-1 where sid=$_REQUEST[sid]"; //คำสั่ง ในการเลือกข้อมูลจากฐานข้อมูล
$Sql = "select * from pvc1-1 where sid = '".$_REQUEST['sid']."' "; //คำสั่ง ในการเลือกข้อมูลจากฐานข้อมูล
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <!-- DW6 --> <head> <!-- Copyright 2005 Macromedia, Inc. All rights reserved. --> <title></title> </head> <td height="156" class="bodyText"><p align="center" class="style17"> <? include ("connect.php"); $Sql = "select * from pvc1-1 where sid=$_REQUEST[sid]"; //คำสั่ง ในการเลือกข้อมูลจากฐานข้อมูล $Result = mysql_query($Sql); //คำสั่งการกระทำคิวรี่ ?> <table border=1> <tr> <td>You ID :</td><td>Password:</td> </tr> <?$Row = mysql_fetch_array($Result)//ดึงข้อมูลจากผลลัพธ์มาเก็บไว้ที่ตัวแปรข้อมูล ?> <tr> <td><? echo $Row[sid]; ?></td> <td><? echo $Row[sname];?></td> </tr> </table> <p> </p> <p><a href=membermain.html>Back</a><br> <br> </body> </html>
<? $host="localhost"; $userName="root"; $password="159753"; $databaseName=student"; mysql_connect($host,$userName,$password) or die ("ไม่สามารถติดต่อฐานข้อมูลได้"); mysql_select_db($databaseName) or die ("ไม่สามารถติดต่อแฟ้มข้อมูลได้"); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <!-- DW6 --> <head> <!-- Copyright 2005 Macromedia, Inc. All rights reserved. --> <title></title> </head> <td height="156" class="bodyText"><p align="center" class="style17"> <? include ("connect.php"); $Sql = "select * from pvc1-1 where sid=$_REQUEST[sid]"; //คำสั่ง ในการเลือกข้อมูลจากฐานข้อมูล $Result = mysql_query($Sql); //คำสั่งการกระทำคิวรี่ ?> <table border=1> <tr> <td>You ID :</td><td>Password:</td> </tr> <?$Row = mysql_fetch_array($Result) //ดึงข้อมูลจากผลลัพธ์มาเก็บไว้ที่ตัวแปรข้อมูล ?> <tr> <td><? echo $Row[sid]; ?></td> <td><? echo $Row[sname];?></td> </tr> </table> <p> </p> <p><a href=membermain.html>Back</a><br> <br> </body> </html>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง