Hello, I have been working on this for a few days and I can't figure it out. I have a drop down menu and I would like to take the values that show up in it and use them as buttons rather than having the drop down. The database is timeclock, the table is punchlist and then punchitems is a row in that table and in punchitems there are the values of in, out, lunch, break. I want to be able to make a button for in, out, lunch, break. Any help would be greatly appreciated.
// query to populate dropdown with punchlist items inout box//
$query = "select punchitems from ".$db_prefix."punchlist";
$punchlist_result = mysql_query($query);
echo " <option value =''>...</option>\n";
while ($row = mysql_fetch_array($punchlist_result)) {
echo " <option>".$row['punchitems']."</option>\n";
}
echo " </select></td></tr>\n";
mysql_free_result( $punchlist_result );