if($_GET['do']=="viewentries"){ $fgallery=$DB_site->query("SELECT gallery_id,gallery_name FROM gallery_index"); print_cp_header("Entries:"); print_table_header("test2"); print_form_header('galleryadmin', 'galleryupdate'); $testing=array( while($gallery=$DB_site->fetch_array($fgallery)){ '$gallery[gallery_id]' => '$gallery[gallery_name]', } '40' => 'testing option fourty' ); print_select_row("test",test3,$testing,test8); print_submit_row($vbphrase['update'], 0); print_cp_footer(); }