Of all the functions to use @ with, and to ignore error messages and warnings, IMAP is the *last* one you want to do that with. Add some error checking, and just forget using @ Meanwhile, both your questions didn't actually have a question, nor any explanation of what was going wrong or right or... http://www.catb.org/~esr/faqs/smart-questions.html On Mon, June 19, 2006 5:00 pm, CodeHeads wrote: > Hello all, > > I am having a problem trying to get the subject corenspond with the > message ID on a search. > > here is my code so far: > echo "<h1>Search Results</h1>"; > $WORDS = $_POST['words']; > $search1 = "BODY \"$WORDS\""; > $SEARCH = @imap_search($conn, $search1, SE_UID); > $arrData = $SEARCH; > $mailHeader = @imap_headerinfo($conn, $arrData); > if($SEARCH == FALSE) { > echo "<p>Sorry, did not find anything you were searching for</p>"; > } else { > foreach ($arrData as $ID) { > echo "$ID - TOOK OUT THE HTML<br>\n"; > } > } > > This is the first for messing with IMAP! LOL > > Thanks in advance, > Will > -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php