?
Path : /home/admin/public_html/old/ |
Current File : /home/admin/public_html/old/headerrr.php |
<? @session_start(); ob_start(); $usermem = $_SESSION["usermem"]; $host="localhost"; $user="admin_happykorea"; $pw="my;iNgdks]u2011"; $dbname="admin_happykorea"; $connect=mysql_connect("localhost","admin_happykorea","my;iNgdks]u2011"); mysql_select_db("admin_happykorea",$connect)or die("can not connect database"); mysql_query("set NAMES utf-8"); $host="localhost"; $username = "admin_happykorea"; $password = "my;iNgdks]u2011"; $db="admin_happykorea"; $connect=mysql_connect($host,$username,$password) or die ("Cannot Connect to MySQL"); mysql_select_db($db) or die ("Cannot connect to Database"); mysql_query("set NAMES utf-8"); if(empty($usermem)) { $showmember = " <table width=100% border=0 align=center cellpadding=1 cellspacing=1> <form method=post action=SignIn.php><tr> <td width=32% align=right>ชื่อสมาชิก :</td> <td width=68%><input name=usermem type=text size=15></td> </tr> <tr> <td align=right>รหัสผ่าน :</td> <td><input name=passmem type=password size=15></td> </tr> <tr> <td> </td> <td><input name=submit type=submit class=submit value=เข้าสู่ระบบ!></td> </tr> <tr> <td> </td> <td>! <a href=ForgetPass.php>ลืมรหัสผ่าน</a></td> </tr></form> </table> "; }else{ $sql="select * from member where usermem='$usermem'"; $db_query=mysql_db_query($db,$sql); $result=mysql_fetch_array($db_query); $idxx=$result[id]; $usename=$result[name]; $user_mem=$result[usermem]; $pass_mem=$result[passmem]; $showmember = " <div align=center><img src=images/user.gif width=25 height=15>ยินดีต้อนรับ :$usename <br>[ <a href=CheckMyOrder.php>ประวัติสั่งซื้อสินค้า</a> ] <br>[ <a href=ChangePass.php>เปลี่ยนรหัสผ่าน</a> ] <br>[ <a href=Profiles.php>ข้อมูลส่วนตัว</a> ] <br>[<a href=Logout.php>ออกจากระบบ</a>] </div> "; $myorder = "<a href=CheckMyOrder.php><img src=images/myorder.gif border=0><a>"; } $sqlcc="update counter set count = count+1 where id=1"; $db_query=mysql_db_query($db,$sqlcc); ?> <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <style> .jc{ position:relative; } </style> </head> <div align="center"> <table width="1000" border="0" cellspacing="0" cellpadding="0"> <tr> <td> </td> </tr> <tr> <td><img src="head2.jpg" width="1020" height="300"></td> </tr> </table> </div> </head></div>