<?php if (isset($_GET['uid'])){ $haina = 123; if (isset($Haina)) { print 55; } } ?> <a href="?uid=22">asdasd</a>
if (isset($_GET['edit'])) { $useresult = mysql_query("SELECT * FROM " . DB_TABLE_I . " WHERE ID='". $_GET['uid'] . "'"); if ($userow = mysql_fetch_array($useresult)) { ?> <form id="editfrom" method="post" enctype="multipart/form-data" action="<?=$PHP_SELF?>"> <table border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td>Username : </td> <td><input type="text" name="txt_username" require /></td> </tr> <tr> <td>Password : </td> <td><input type="password" name="txt_password" require /> </td> </tr> <tr> <td>FirstName : </td> <td> <input type="text" name="txt_firstname" require /> </td> </tr> <tr> <td>LastName : </td> <td> <input type="text" name="txt_lastname" require /> </td> </tr> <tr> <td>Nickname : </td> <td><input type="text" name="txt_nickname" require /></td> </tr> <tr> <td>Facebook :</td> <td><input type="text" name="txt_facebook" require /></td> </tr> <tr> <td>Email :</td> <td><input type="email" name="txt_email" require /></td> </tr> <tr> <td>PhoneNumber :</td> <td><input type="text" name="txt_phonenumber" require /></td> </tr> <tr> <td>Address Link :</td> <td><textarea name="txt_address" require="require"></textarea></td> </tr> <tr> <td>Status : </td> <td><textarea name="txt_status"></textarea></td> </tr> <tr> <td>Class :</td> <td><input type="text" name="txt_room" require /></td> </tr> <tr> <td>Upload your picture : </td> <td><input type="file" name="fileupload" /></td> </tr> <tr> <td colspan="2"><div align="right"><input type="submit" name="bt_submit" value="Submit" /></div></td> </tr> </table> </form> <?php } }
<?php session_start(); ?> <!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"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link href="Script/main.css" rel="stylesheet" type="text/css" /> <title>Show Data - ID</title> <style type="text/css"> a:link{color: #999;text-decoration: none;} a:visited{color: #999;text-decoration: none;} a:hover{color: #F00;text-decoration: none;} a:active {color: #999;text-decoration: none;} </style> </head> <body> <div id="header" align="center"> <div align="right"> <div id="page" align="center"> <div align="left"> <? if (isset($_GET['edit'])) { $useresult = mysql_query("SELECT * FROM " . DB_TABLE_I . " WHERE ID='". $_GET['uid'] . "'"); if ($userow = mysql_fetch_array($useresult)) { ?> <form id="editfrom" method="post" enctype="multipart/form-data" action="<?=$PHP_SELF?>"> <table border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td>Username : </td> <td><input type="text" name="txt_username" require /></td> </tr> <tr> <td>Password : </td> <td><input type="password" name="txt_password" require /> </td> </tr> <tr> <td>FirstName : </td> <td> <input type="text" name="txt_firstname" require /> </td> </tr> <tr> <td>LastName : </td> <td> <input type="text" name="txt_lastname" require /> </td> </tr> <tr> <td>Nickname : </td> <td><input type="text" name="txt_nickname" require /></td> </tr> <tr> <td>Facebook :</td> <td><input type="text" name="txt_facebook" require /></td> </tr> <tr> <td>Email :</td> <td><input type="email" name="txt_email" require /></td> </tr> <tr> <td>PhoneNumber :</td> <td><input type="text" name="txt_phonenumber" require /></td> </tr> <tr> <td>Address Link :</td> <td><textarea name="txt_address" require="require"></textarea></td> </tr> <tr> <td>Status : </td> <td><textarea name="txt_status"></textarea></td> </tr> <tr> <td>Class :</td> <td><input type="text" name="txt_room" require /></td> </tr> <tr> <td>Upload your picture : </td> <td><input type="file" name="fileupload" /></td> </tr> <tr> <td colspan="2"><div align="right"><input type="submit" name="bt_submit" value="Submit" /></div></td> </tr> </table> </form> <?php } } if (isset($_GET['uid'])){ $useresult = mysql_query("SELECT * FROM " . DB_TABLE_I . " WHERE ID='" . $_GET['uid'] . "'"); print "555"; } else { $useresult = mysql_query("SELECT * FROM " . DB_TABLE_I ); $numrows = mysql_num_rows($useresult); print l_SDT_NB . "<br>"; print "<table>"; print "<tr>"; print "<th><font size='2'>" . l_SDT_FN . "\n"; print "<th>" . l_SDT_LN . "\n"; print "<th>" . l_SDT_NN. "\n"; print "<th>" . l_SDT_PF . "</font>\n"; while ($userow = mysql_fetch_array($useresult)){ print "<tr>"; print "<td><font size='2'>" . $userow['firstname'] . "</font> \n"; print "<td><font size='2'>" . $userow['lastname'] . "</font> \n"; print "<td><font size='2'>" . $userow['nickname'] . "</font> \n"; print "<td><a href='?uid=" . $userow['ID'] . "'><img src='uploadimg/user.png' width='25' height='25' /></a>"; } print "</table>"; } ?> </div> </div> </div> </div> <div id="footer" align="center"> <?php print l_SDT_FT; ?> </div> </body> </html>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง