CodeIgniter Forums
i am new CI error while inserting database - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forum-21.html)
+--- Thread: i am new CI error while inserting database (/thread-23815.html)



i am new CI error while inserting database - El Forum - 10-22-2009

[eluser]Unknown[/eluser]
i am not getting insert into the database. the error is

A PHP Error was encountered
Severity: Warning
Message: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set()
Filename: libraries/Email.php
Line Number: 1252

and

An Error Was Encountered
Unable to connect to your database server using the provided settings.


i am new CI error while inserting database - El Forum - 10-22-2009

[eluser]rogierb[/eluser]
Error 1: Do you have a email server setup? I guess not.
Error 2: Check your database settings in database.php. These are not correct, as the message suggests