
November 28th, 2012, 01:19 AM
|
|
Contributing User
|
|
Join Date: Nov 2012
Posts: 56
Time spent in forums: 13 h 10 m 2 sec
Reputation Power: 1
|
|
|
PHP-General - Parse error:syntax error, unexpected '/'
Hi,
I am saving images into a folder and storing their names in the MySQL database. I need to fetch and display in a php webpage, but I am receiving an error:
Quote: | Parse error: syntax error, unexpected '/' in C:\Program Files\Abyss Web Server\htdocs\My MOVIES\showreport1.php on line 122 |
The following is part of the code I am trying to use:
Code:
$counter=0; while($row=mysql_fetch_array($result)) { $m_id=$row['m_id']; $mtitle=$row['mtitle']; $myear=$row['myear']; $mcountry=$row['mcountry']; $mgenres=$row['mgenres']; $filename=$row['mfilename'];
}
if($counter>=0)
{
echo "<td valign=top>\n
<table width=340 border=1 align=left class=allborder> \n
<tr> \n
<td rowspan=4 colspan=3 class=topBorder> <? echo '<img src="./images/'.$row['mfilename'].'" width="90" height="120" alt="" />'; ?>\n </tr>\n <tr> \n
<td width=120> Title: <td>$mtitle\n
</tr>\n
<tr> \n <td> Year: <td> $myear\n </tr>\n <tr> \n <td> Country: <td> $mcountry\n </tr>\n </tr>\n <tr> \n <td colspan=6 class=topBorder> <a href=viewdetail.php?m_id=$m_id>View Detail Info</a>\n </tr>\n </table>\n</td>\n
I will appreciate your help.
Joseph
|