<td>Kategori</td>
<td><select name="kategori">
<option value=0 selected>- kategori -</option>
<?
$resultCOMBO = mysql_query("SELECT nama_kategori FROM kategori") or die(mysql_error());
while($dataCOMBO = mysql_fetch_array($resultCOMBO)){
echo "<option value= $dataCOMBO['nama_kategori']>$dataCOMBO['nama_kategori']</option>";}?>
</select></td>
Hey, I am trying to create a combo box but receive this error when I run it:
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in C:\xampp\htdocs\Masterlink\cgoods\product_edit.php on line 8
Why is it?