0
HTTP錯誤500 無法打開網頁....PHP MYSQL - 功能+ HTML文章
您好我無法用我的實際的index.php加載頁面(與成就) 代碼:
<?php
ini_set("display_errors", 0);
include '../endecrypt.php';
require '../connect.php';
dbc();
$id = decryptCookie($_COOKIE['uid']);
if (isset($id)) {
$u_data = mysql_fetch_assoc(mysql_query("SELECT * FROM user_data WHERE user_id = '".$id."' "));
$silver = $u_data["silver"];
$grzyby = $u_data["mushroom"];
$nick = $u_data['user_name'];
$lvl = $u_data['lvl'];
?>
<?php }
if($u_data['os1'] == 0){ $stringz = "<font color="red">Odebrano!</font>"; } else{ $stringz = "<font color="green">Odbierz!</font>"; }
if($u_data['os2'] == 0){ $stringz2 = "<font color="red">Odebrano!</font>"; } else{ $stringz2 = "<font color="green">Odbierz!</font>"; }
if($u_data['os3'] == 0){ $stringz3 = "<font color="red">Odebrano!</font>"; } else{ $stringz3 = "<font color="green">Odbierz!</font>"; }
if($u_data['os4'] == 0){ $stringz4 = "<font color="red">Odebrano!</font>"; } else{ $stringz4 = "<font color="green">Odbierz!</font>"; }
if($u_data['os5'] == 0){ $stringz5 = "<font color="red">Odebrano!</font>"; } else{ $stringz5 = "<font color="green">Odbierz!</font>"; }
if($u_data['os6'] == 0){ $stringz6 = "<font color="red">Odebrano!</font>"; } else{ $stringz6 = "<font color="green">Odbierz!</font>"; }
if($u_data['os7'] == 0){ $stringz7 = "<font color="red">Odebrano!</font>"; } else{ $stringz7 = "<font color="green">Odbierz!</font>"; }
if($u_data['os8'] == 0){ $stringz8 = "<font color="red">Odebrano!</font>"; } else{ $stringz8 = "<font color="green">Odbierz!</font>"; }
if($u_data['os9'] == 0){ $stringz9 = "<font color="red">Odebrano!</font>"; } else{ $stringz9 = "<font color="green">Odbierz!</font>"; }
if($u_data['os10'] == 0){ $stringz10 = "<font color="red">Odebrano!</font>"; } else{ $stringz10 = "<font color="green">Odbierz!</font>"; }
if($u_data['os11'] == 0){ $stringz11 = "<font color="red">Odebrano!</font>"; } else{ $stringz11 = "<font color="green">Odbierz!</font>"; }
if($u_data['os12'] == 0){ $stringz12 = "<font color="red">Odebrano!</font>"; } else{ $stringz12 = "<font color="green">Odbierz!</font>"; }
function os($u_data){ ?>
<article class="col-1-3">
<div class="wrap">
<center><img src="images/os.png" /> <img src="images/grzyb.png" />
<font color="white">+ 10</font></center>
<br>
<center><a class="button" href="go.php?typ=os&item=1"><?php"" . $stringz3 . ""?></a></center>
<br>
<br>
<div class="content">
<br><font color="white" size="5">Osiągnięcie 10 lvl<br></font>
<font color="white" size="2">Dodaje 10 grzybów</font>
</div>
</div>
</article>
<article class="col-1-3">
<div class="wrap">
<center><img src="images/zpet.png" /> <img src="images/grzyb.png" /><font color="white">+ 15</font></center>
<br>
<center><a class="button" href="go.php?typ=os&item=2"><?php"" . $stringz2 . ""?></a></center>
<br>
<br>
<div class="content">
<br><font color="white" size="5">Posiadaj Gryfosmoka = Smokogryfa!<br></font>
<font color="white" size="2">Dodaje 15 grzybów</font>
</div>
</div>
</article>
這裏我剪了10篇文章...
如何取代ifs?也許是短版?
<article class="col-1-3">
<div class="wrap">
<center><img src="images/zgold.png" /> <img src="images/grzyb.png" /><font color="white">+ 750</font></center>
<br>
<center><a class="button" href="go.php?typ=os&item=12"><?php"" . $stringz12 . ""?></a></center>
<br>
<br>
<div class="content">
<br><font color="white" size="5">Kup złotą ramke (Bogactwo Skurwysyny)<br></font>
<font color="white" size="2">Dodaje 750 grzybów</font>
</div>
</div>
</article>
<?php
}
?>
我不知道什麼是一個問題:/
的Och神文字太短,我不能POST,計算器上那個該死的問題...
錯誤?獲取錯誤? – devpro
Chk錯誤日誌以及chk文件或文件夾權限。權限必須是755 – devpro
'HTTP錯誤500' 不能打開頁面:/ 在另一個文件中我有'if($ u_data ['vip_time']> = 1){$ info =「」。 number_format($ vip,0,「。」,「。」)。 「 dni」; } else { $ info =「 Brak!」; }'與print_f' VIP:<字體顏色= \ 「#FFFF33 \」> 「($信息)」'和它的工作好 許可644,無需要755 :) –