database to combobox
Posted: Thu Jun 05, 2003 8:46 am
Hi
I'm (still) new to php and html and need to do the following:
I have a database and I get values by
while ($R = ibase_fetch_row($Q))
{
echo "$R[0]";
}
Now I want to insert those values in a combobox so the user can select them again. I've tried:
print "<Select>"
while ($R = ibase_fetch_row($Q))
{
print"<Option>";
}
print "</Select>"
As far as I can image 'Print' writes directly to html and you can insert html code directly from php. If 'print' doesn't do the job, what does?
tx
I'm (still) new to php and html and need to do the following:
I have a database and I get values by
while ($R = ibase_fetch_row($Q))
{
echo "$R[0]";
}
Now I want to insert those values in a combobox so the user can select them again. I've tried:
print "<Select>"
while ($R = ibase_fetch_row($Q))
{
print"<Option>";
}
print "</Select>"
As far as I can image 'Print' writes directly to html and you can insert html code directly from php. If 'print' doesn't do the job, what does?
tx