nworst Posted August 20, 2009 Author Share Posted August 20, 2009 Now it says Unknown database 'my_db', however I did save the file as my_db.mysql :SI think I'm making a really stupid mistake somewhere..By the way, I'm leaving now I'll be back tomorrow, hopefully it works out then Link to comment Share on other sites More sharing options...
justsomeguy Posted August 20, 2009 Share Posted August 20, 2009 I don't know what you mean by saving the database as my_db.mysql. I've never saved a .mysql file. That's not the way to set up a database, you need to set up the database in MySQL. Check the manual:http://dev.mysql.com/doc/refman/5.1/en/database-use.html Link to comment Share on other sites More sharing options...
nworst Posted August 20, 2009 Author Share Posted August 20, 2009 Ah, I knew it was a dumb fault. Worked out properly now. Thanks very much, you really helped me out. Gotta say you really know a lot about PHP Link to comment Share on other sites More sharing options...
nworst Posted August 21, 2009 Author Share Posted August 21, 2009 I've made a mailform, but sending the mail doesn't yet work out as it should. This is the error code I get when sending the email: Warning: 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() in C:\xampp\htdocs\Testweb\startpagina.php on line 106 What port should I be using if 25 (default) doesn't work? Link to comment Share on other sites More sharing options...
justsomeguy Posted August 21, 2009 Share Posted August 21, 2009 Whatever port the mail server is listening on. It sounds like you probably don't have a mail server installed. Most home ISPs block outgoing mail ports, if you want to test mail it's best to upload your pages to a live server that already has a mail server set up. Link to comment Share on other sites More sharing options...
nworst Posted August 21, 2009 Author Share Posted August 21, 2009 Oh ok, I just wanted to experiment a bit with mailforms et cetera, so I'll just give up mailforms for now Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.