include "../j2hblock.php";
$dbhostname = "www.j2h.tw";// host
$dbusername = "jeff"; //user
$dbuserpass = "love";// //password
$dbname = "lovematch"; //database
$memberpower="memberpower";
$table="love";
$conID = @mysql_pconnect($dbhostname, $dbusername, $dbuserpass) or die ("資料連結錯誤");
mysql_select_db( "$dbname",$conID);
$sql_select = "select * from $memberpower where username='$memberuser'";
$result = mysql_query ($sql_select,$conID) or die ($sql_select);
$row = mysql_fetch_array($result) ;
if ($row ==0){ echo "
"; exit;}
$id=$row["id"];
$j2h1=$row["j2h1"];
$j2h2=$row["j2h2"];
$j2h3=$row["j2h3"];
$j2h4=$row["j2h4"];
$j2h5=$row["j2h5"];
$j2h6=$row["j2h6"];
$j2h7=$row["j2h7"];
$j2h8=$row["j2h8"];
$j2h9=$row["j2h9"];
$j2h10=$row["j2h10"];
$username=$row["username"];
$password=$row["password"];
$date=$row["date"];
if ($j2h6 >= 20 && $j2h2 <= 2){
$sql = "update $memberpower set j2h2=j2h2+1 ,j2h4=j2h4+5 ,j2h5=j2h5+5 ,j2h6=j2h6-20 where username='$memberuser'"; $result = mysql_query($sql,$conID); header("Refresh:1");}
$sql_select = "select * from $table where username='$username' and password='$password'"; $result = mysql_query ($sql_select,$conID) or die ($sql_select);
$row = mysql_fetch_array($result) ;
$stop=$row["stop"];
if ($stop ==""){
setcookie("gamepower",$j2h2, time()+86400*1,"/bbs/");}
include "../top.php"; ?>
|
|
職位: |
|
等級: |
|
生命指數: |
|
戰鬥力: |
|
防禦力: |
|
J 幣: |
| |
|
|
|
|