while ( $row = mysql_fetch_array($sql) ) { if ( $_GET['ManageID'] == 'view' && $db_state == $row['state_id'] ) { echo '