i have couple of PHPs run of Lycos free server without any problem, but now I moved the files to other paid server in HK.
Now, on the new server, when i access some files, the Internet Explorer prompt me a box "The Sysmtem cannot find the file specified".
All files are located in the same directory(root).
Code 1 is ok, it wont' give me any error message.
but Code 2 will prompt me error.
Code 1:
<?PHP
session_start();
include "conn.php";
include "checklogin.php";
include "init_var.php";
//if (isset($_POST['submit']))
//{
//$sql = "select * from user_account order by (amount_win-amount_used) desc";
$sql = "select * from user_account order by amount_win desc";
$result = mysql_query($sql);
$i=0;
while ($row = mysql_fetch_array($result))
{
if (($i % 2) ==0)
{
$c = $c1;
}
else
{
$c = $c2;
}
$i++;
$table_row .= '<tr bgcolor='.$c.'><td>'.$row["nickname"].'</td><td>'.$row["amount_win"].'</td></tr>';
}
//}
?>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=big5">
</head>
<body>
<?PHP include "top_table.php";
?>
<form action="list.php" method="post">
<!--<select name="sMonth">
<?PHP
//echo $opt;
?>
</select>-->
<!--<input type="submit" name="submit" value="Submit">-->
</form>
<table>
<tr bgcolor="#66FFFF">
<td width="150">¦W</td><td width="200">¤wŨú¤À¼Æ</td>
</tr>
<?PHP
echo $table_row;
?>
</table>
</body>
</html>
Code 2:
<?PHP
session_start();
include "conn.php";
include "checklogin.php";
include "init_var.php";
$sql = "select * from user_account where user_id=".$_SESSION['user_id'];
$result = mysql_query($sql);
$row = mysql_fetch_array($result);
?>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=big5">
</head>
<body>
<?PHP include "top_table.php";?>
<table>
<tr>
<td width="200">¶}©l¤À¼Æ:</td><td width="200"><?PHP echo $row["startup_amount"];?></td>
</tr>
<tr>
<td>¨Ï¥Î¤À¼Æ:</td><td><?PHP echo $row["amount_used"];?></td>
</tr>
<tr>
<td>Ũú¤À¼Æ:</td><td><?PHP echo $row["amount_win"];?></td>
</tr>
<tr>
<td>µ²¾l:</td><td><?PHP echo $row["startup_amount"] + $row["amount_win"] - $row["amount_used"]?></td>
</tr>
</table>
</body>
</html>