echo ' <table border="0" width="530" align="center" cellspacing="1">
<col width="100" align="right">
<col width="410" align="left">
<?php
$query = "SELECT cat_id,category from ffecategory";
$result = @mysql_query($query);
$options ="";
while ($row = mysql_fetch_array ($result)){
$cat_id = $row['id'];
$category = $row['category'];
echo'<option value=\"$cat_id\">".$category.'</option>';
}
?>
<tr><td>Category</td>
<td><SELECT NAME =cat_id>
<OPTION VALUE =0>Choose Category
<?=$options?>
</SELECT>
</td>
</tr>
It produces this error :
Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in /var/www/html/ffe/update.php on line 120
need some help please

New Topic/Question
Reply




MultiQuote





|