Hi,
I need som assistance placeing an HTML table within a PHP script. I thought I could just echo it, but I am getting a parse error. Here is the PHP code: (the parse error comes on line 339
<?php
/* declare some relevant variables */
$DBhost = "localhost";
$DBuser = "username";
$DBpass = "password";
$DBName = "allin1em_catalog";
$table = "items";
mysql_connect($DBhost,$DBuser,$DBpass) or die("Unable to connect to database");
@mysql_select_db("$DBName") or die("Unable to select database $DBName");
$sqlquery = "SELECT * FROM $table WHERE store = 'Luminescents'";
$result = mysql_query($sqlquery);
while($row = mysql_fetch_array($result)) {
echo "<table cellpadding="2" cellspacing="2" border="1"
style="text-align: left; width: 400px;">
<tbody>
<tr>
<td
style="background-color: rgb(51, 51, 255); height: 25px; width: 400px; text-align: center; vertical-align: middle;"><span
style="color: rgb(153, 0, 0);"><span style="font-weight: bold;"><font
size="+1"><span style="font-family: arial;">". $row[title] .
"</span></font></span></span><br>
</td>
</tr>
</tbody>
</table>
<table cellpadding="2" cellspacing="2" border="1"
style="text-align: left; width: 400px;">
<tbody>
<tr>
<td
style="background-color: rgb(153, 153, 153); height: 150px; width: 150px; text-align: center; vertical-align: middle;"><img
src="
http://www.allin1emall.com/images/". $row[thumb]. " title=" alt=""
style="width: 150px; height: 150px;"><br>
</td>
<td
style="text-align: center; vertical-align: middle; width: 250px; background-color: rgb(153, 153, 153); height: 150px;"><span
style="color: rgb(153, 0, 0);"><span style="font-weight: bold;"><font
size="+1"><span style="font-family: arial;">". $row[description]. "<br>". $row[retail]. "</span></font></span></span>
</td>
</tr>
</tbody>
</table>".;
}
if(mysql_num_rows($result)<1){
echo "<font face=Arial size=+0><b>No
Results!</b></font><br>";
}
mysql_free_result($result);
?>
Any help will be much appreciated.
Thanks,
Traci