Re: [PHP] PHP - MySQL Query...

2003-08-14 Thread Marcus Edvardsson
I'm used to do like this: $query = 'SELECT * FROM cities'; $result = mysql_query($query); if($row = mysql_fetch_array($result)) do { echo ('tr td class=city' . $row[0] . ', ' . $row[1] . '/td td' . $row[2] . '/td td' . $row[3] . /td /tr\n); } while ($row = mysql_fetch_array($result));

[PHP] Reading mail with PHP?

2003-08-14 Thread Marcus Edvardsson
Hi! * I'd like to connect to a mail server * Confirm the senders email addresses * Download the attached file from a speciall email * Read the message body How can I do this? Someone who have tried this? I found some functions for IMAP built in PHP, do you recommend that I dig deeper in