Quote:$sql .= " Where 1 order by MemberID desc LIMIT $Page_start , $Per_Page";
$sql .= " order by MemberID desc LIMIT $Page_start , $Per_Page";
<meta http-equiv="Content-Type" content="text/html; charset=windows-874"> <? //============ กรณีที่ทำการล็อกอินสมาชิก if($_GET["action"]=="Login") { //============ ตรวจสอบสมาชิก $resultLogin=select("member","where 1 and Email='".$_POST["txtEmailSC"]."' and Password='".$_POST["txtPassSC"]."' "); if(!$resultLogin) { echo "<script language=\"JavaScript\">"; echo "alert('อีเมล์ และ รหัสผ่าน ไม่ถูกต้อง');"; echo "</script>"; } else { //============ บันทึกข้อมูลสมาชิก $_SESSION["strEmail"]=$_POST["txtEmailSC"]; $_SESSION["strPassword"]=$_POST["txtPassSC"]; session_write_close(); header("location:product.php"); } } ?> <table width="168" height="22" border="0" align="center" cellpadding="0" cellspacing="0" id="Table_01"> <tr> <td width="8"> <img src="image/menu01.jpg" width="8" height="22" alt=""></td> <td width="151" background="image/menu02.jpg"><div align="center"><strong>เข้าสู่ระบบ</strong> </div></td> <td width="9"> <img src="image/menu03.jpg" width="9" height="22" alt=""></td> </tr> </table> <table width="168" border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="#66CC66"> <tr> <td bgcolor="#FFFFFF"> <? if($_SESSION["strEmail"] =="") { ?> <table width="100%" height="75" border="0" cellspacing="0" bgcolor="#000000"> <form action="?action=Login" method="post" name="frmLogin"> <tr bgcolor="#FFFFFF"> <td width="45%" class="style5 style45">อีเมล์ : </td> <td width="55%"><input name="txtEmailSC" type="text" class="txtbox" id="txtEmailSC" size="15" /></td> </tr> <tr bgcolor="#FFFFFF"> <td>รหัสผ่าน :</td> <td><input name="txtPassSC" type="password" class="txtbox" id="txtPassSC" size="15" /> </td> </tr> <tr bgcolor="#FFFFFF"> <td height="26" colspan="2" align="center"><p> <input name="submit" type="submit" class="button" value="เข้าสู่ระบบ" /> <br> <img src="image/i-sticky.gif" width="13" height="16" border="0" align="absbottom"> <a href="rule.php"> สมัครสมาชิก<br> </a><img src="image/i-sticky.gif" width="13" height="16" border="0" align="absbottom"> <a href="forget.php"> ลืมรหัสผ่าน</a><br> </p> </td> </tr> </form> </table> <? } else { ?> <table width="100%" height="75" border="0" cellspacing="0" bgcolor="#000000"> <tr bgcolor="#FFFFFF"> <td width="100%" colspan="2" class="style5 style45"><div align="center"><strong>ยินดีต้อนรับ</strong></div></td> </tr> <tr bgcolor="#FFFFFF"> <td colspan="2" class="style5 style45"> <div align="center"> <strong> <? echo $_SESSION["strEmail"]; ?> </strong> </div></td> </tr> <tr bgcolor="#FFFFFF"> <td colspan="2"><div align="center"><a href="profile.php">แก้ไขข้อมูลส่วนตัว</a><br /> <a href="pass.php">เปลี่ยนรหัสผ่าน</a><br /> <a href="cusorder.php">รายการสั่งซื้อ</a><br> <a href="logout.php"><font color="#FF0000">ออกจากระบบ</font></a></div></td> </tr> </table> <? } ?> <div align="center"> <br> <img src="image/cart.gif" width="23" height="17" align="absmiddle"> <a href="cart.php">สินค้าในตะกร้า</a><br> <br> </div></td> </tr> </table> <div align="center"><br /> <table width="168" height="22" border="0" align="center" cellpadding="0" cellspacing="0" id="Table_01"> <tr> <td width="8"><img src="image/menu01.jpg" width="8" height="22" alt="" /></td> <td width="151" background="image/menu02.jpg"><div align="center"><strong>ค้นหาสินค้า</strong></div></td> <td width="9"><img src="image/menu03.jpg" width="9" height="22" alt="" /></td> </tr> </table> <table width="168" border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="#66CC66"> <tr> <td bgcolor="#FFFFFF"><table width="100%" height="51" border="0" cellspacing="0" bgcolor="#000000"> <form action="search.php" method="get" name="frmSearch" id="frmSearch"> <tr> <td width="100%" height="25" bgcolor="#FFFFFF" class="style5 style45"><div align="center"> <input name="txtSearch" type="text" class="txtbox" id="txtSearch2" value="<?=$_GET["txtSearch"];?>" size="20" maxlength="35" /> </div></td> </tr> <tr> <td height="26" align="center" bgcolor="#FFFFFF"><p align="center"> <input name="submit2" type="submit" class="button" id="submit" value="ค้นหา" /> </p></td> </tr> </form> </table> <br /> </td> </tr> </table> <br> </div> <table width="168" height="22" border="0" align="center" cellpadding="0" cellspacing="0" id="Table_01"> <tr> <td width="8"> <img src="image/menu01.jpg" width="8" height="22" alt=""></td> <td width="151" background="image/menu02.jpg"><div align="center"><span class="style3"><strong>ผู้ชมเว็บไซต์ทั้งหมด </strong></span> </div></td> <td width="9"> <img src="image/menu03.jpg" width="9" height="22" alt=""></td> </tr> </table> <table width="168" border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="#66CC66"> <tr> <td bgcolor="#FFFFFF"> <div align="center"><br> <? IF ($_SESSION["strStatus"] == "") { update("counter","COUNTER=COUNTER+1","where 1"); $_SESSION["strStatus"]="Yes"; session_write_close(); } $result=select("counter","where 1=1"); $counter = "$result[COUNTER]"; for ($i = 0; $i < strlen($counter); $i++) { echo "<img src=\"image/$counter[$i].gif\" align=\"absbottom\">"; } ?> <br> <br> </div></td> </tr> </table> <div align="center"><br> <strong> </strong><br> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="130" height="140"> <param name="movie" value="flash/clockcalendarwhite.swf" /> <param name="quality" value="high" /> <embed src="flash/clockcalendarwhite.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="130" height="140"></embed> </object> <br> <br> <strong> <?=date("d-m-Y H:i");?> </strong><br> <br> </div> <div align="center"><br> <br> </div>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง