لا يتم تشكيل بقية الجدول وفيه قيم الاسطر المعادة من القاعدة /=
ما الحل؟
<html>
<head>
<style>
body {
font-family: verdana, tahoma, arial;
font-size: 12px;
color: black;
}
</style>
</head>
<body>
<?
$link = mysql_pconnect("localhost","user","pass");
$db = "mytable";
$table = "logs";
mysql_select_db($db,$link);
$query = "select * from $table order by id";
$result = mysql_query($query, $link);
if (!$result) {
$message = 'Invalid query: ' . mysql_error() . "\n";
$message .= 'Whole query: ' . $query;
die($message);
}
else {
echo <<<FOO
<table border=1 width=100% height=100% align='center'>
<tr>
<td align='center' height='20%'>ID</td>
<td align='center' height='20%'>IP</td>
<td align='center' height='20%'>Cookie</td>
<td align='center' height='20%'>Referer</td>
<td align='center' height='20%'>Date</td>
</tr>
<tr>
FOO;
// -------------- problem goes here
while ($row = mysql_fetch_row($result)) {
echo <<<BAR
<td align='center' height='80%'>$row[0]</td>
<td align='center' height='80%'>$row[1]</td>
<td align='center' height='80%'>$row[2]</td>
<td align='center' height='80%'>$row[3]</td>
<td align='center' height='80%'>$row[4]</td>
</tr>
</table>
BAR;
}
}
?>
</body>
</html>شكرا, السلام عليكم
