CodeIgniter Forums
DB and Email - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: DB and Email (/showthread.php?tid=25257)



DB and Email - El Forum - 12-06-2009

[eluser]Innovative[/eluser]
Hi,
I have a db table with id, emailsender, emailreveiver and timestamp.
When the registered user on my site wants to send email to more than one frnds then all those ids will be stored in the emailreceiver columnn and senders id in sender column, before inserting the receivers id to db i need to check whether the ids exist in the db and present the result on the page else store to db, also i need to send the emails to the users whose ids did not exist in the db.

Can anyone of you experts kindly suggest me an efficient way to do this...