How to echo all fields/rows from a MYSQL Table?
Posted: Mon Feb 06, 2006 7:20 am
Hello!
I need to make a listbox including all fields/rows/whatever in a table. The code I have so far:
Can someone quickly "fill" my code?
I need to make a listbox including all fields/rows/whatever in a table. The code I have so far:
Code: Select all
<?php
foreach ( as $item)
{
echo '<option value="'.$item.'">'.$item.'</option>';
}
?>