Hey there, i have a index.php page with the following code on it. Its a drop down box.
for($i=0; $i < count($c); $i++){
$tub_tbl .= "
<tr>
<td class='items'>
<form name='frmprods' action='index.php' method='post'>Products:
$prodchecks = 'SELECT product FROM state_accounts';
$resultOptions = mssql_query($prodchecks);
echo '<select name='p' onchange='ReloadPage()'>';
echo '<option value=". $c[$i][0] .">Select Product...</option>';
while($opt = mssql_fetch_array($resultOptions))
{
echo '<option value=''>".$opt['product']."</option>';
}
echo '</select>';
</form></td>
</tr>";
}
}
The problem is that it comes out printing the following,
Products: = 'SELECT product FROM state_accounts'; = mssql_query(); echo ''; echo 'Select Product...'; while( = mssql_fetch_array()) { echo ''; } echo '';
It doesnt wanna read through the php query "$prodchecks",
Please if anybody could assist me in this i would really appreciate it
thanks in advance