PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Hi, I am new to php and have been doing quite well learning it. I have just come upon a problem that has me completely stumped however. I can successful create the database, select the table and even add content. When I attempt viewing the content I get a message that says "Warning: mysql_connect() [function.mysql-connect]: Unknown MySQL server host 'database3' (11004)" I get this even though at the other points before it (create database, create and select table) all come back with Successfully connected and selected. The add content page has just 2 fields, subject and body. I get no errors on tis page, it appears to be working well. If anyone has any idea for me to try I'd really appreciate if they'd let me know. Thanks a lot in advance! Here is the code for viewing the input data. It's supposed to be very simple.