Here is the current listing, sorted as you requested.
'); } mysql_select_db('database_webdata',$dbcnx); if(!@mysql_select_db('database_webdata')){ die ('Unable to locate that database at this time.
'); } if (isset($_POST['sortinfo'])){ $sortorder = $_POST['sortorder']; } /*$lastname = $_POST['lastname']; $phone = $_POST['phone']; $email = $_POST['email']; $sql = "SELECT * from contacts SET firstname = '$firstname', lastname = '$lastname', phone = '$phone', email = '$email'"; WHERE lastname LIKE "%j%" OR lastname LIKE "%mi%" */ //Request the lines $result=@mysql_query("SELECT * from contacts ORDER BY $sortorder"); if (!$result) { die('Error performing query: ' .mysql_error().'
'); } //Display the text of each line in a table echo ('| '.$row['firstname'] .' | '. $row['lastname'].' | '.$row['phone'].' | '.''.$row['email'].' |
Return to Sort page.
Return to Contact page.
Return to WebData home.