<?php
$dbhost = 'xxxx';
$dbuser = 'xxxx';
$dbpass = 'xxxx';
$dbname = 'xxxx';
$conn = mysql_connect($dbhost, $dbuser, $dbpass) or die ('Error connecting to mysql');
mysql_select_db($dbname);
$result = mysql_query("SELECT * FROM mytable");
$row = mysql_fetch_array($result)
?>
<?php foreach ($rows as $row): ?>
<tr align="center">
<td><?php echo htmlspecialchars($row['Picturedata']); ?></td>
</tr>
<?php endforeach; ?>
我得到一個錯誤: 警告:()提供的foreach無效參數我試圖做一個ASP像中繼器在PHP
這工作 Thans! – Joe 2009-10-16 21:41:30