<td>
<select name="sourceitems">
<?php
$Qry1->text = "SELECT * FROM sourceitems";
$Qry1->openSQL();
$Qry1->first();
while(!$Qry1->eof){
$SourceID=$Qry1->fieldByName("SourceID");
$ItemName=$Qry1->fieldByName("ItemName");
$selected="";
if ($SourceID == $_POST['SourceID'] )
$selected="selected";
print "<option value=\"$SourceID\" $selected> $ItemName </option>";
$Qry1->next();
}
?>
</select>
</td>
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in D:\Webroot\TM\editData.php on line 179
It keeps show the error above at around $ItemName
.... that line...Please help me~