The following segment of code (below) is to create a drop down menu from the "lkgroup" column from the table - lk_group.
But it is giving me the error:
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING
Any help is appreciated.
Thanks,
Shiyam
<SELECT NAME="group">
<?php
while($row = mysql_fetch_array( $result ))
{
echo "<option VALUE=\"$row[\'lkgroup\']\">$row[\'lkgroup\']</option>";
# echo $row['lkgroup']. "<br/>";
}
?>
</SELECT>
Edited by John, 31 August 2008 - 09:33 PM.
Please use [code] or [php] tags when posting code.


Sign In
Create Account


Back to top









