imaginashaun / php-imap

Automatically exported from code.google.com/p/php-imap
GNU Lesser General Public License v3.0
0 stars 0 forks source link

Excellent! #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello Sergey,

I just tried your code and it's perfect ! But i wonder if u have any CSS file 
to make it better... I'm new in PHP and i was thinking, instead of having for 
example : "public $mId" we can put an "echo '$mId';" ?
It would be easier to CSS this ? No ? 

Original issue reported on code.google.com by m.heilik...@gmail.com on 24 Oct 2012 at 8:37

GoogleCodeExporter commented 9 years ago
Hi! Thanks for report :) But I don't understand how php-imap corresponds to 
CSS? 

Original comment by barbushin on 24 Oct 2012 at 2:33

GoogleCodeExporter commented 9 years ago
Hi!
Actually i wanted to put in form a administration system where u can get your 
mails from a box... I manage to get my emails with your code however i'd love 
to stylish this just like google do with a table with the sender, the subject 
and the date and time, and when u click on it u access to your mail.

Actually as i'm new in php i don't know how i can transform ur code to make 
this!

Do i have to transform arrays in echo or something like that ??

Thank you for your amazing code !! 

Original comment by m.heilik...@gmail.com on 24 Oct 2012 at 2:42

GoogleCodeExporter commented 9 years ago
Try

echo '<table><tr><td>from</td><td>subject</td></tr>';

foreach($mails as $mail) {
  echo '<tr><td>'.$mail->fromAddress.'</td><td>'.$mail->subject.'</td></tr>';
}

echo '</table>';

Original comment by barbushin on 25 Oct 2012 at 5:32