Search found 2 matches
- Sat Jun 13, 2009 11:13 am
- Forum: PHP - Code
- Topic: adding records to the database
- Replies: 3
- Views: 593
adding records to the database
I pasted the wrong dbconnect.php. Here is the correct one. dbconnect.php: <?php mysql_connect('localhost','root','root') or die("<h3>could not connect to MySQL</h3>\n"); mysql_select_db('guestbook') or die("<h3>could not select database 'guestbook'</h3>\n"); ?>
- Sat Jun 13, 2009 11:11 am
- Forum: PHP - Code
- Topic: adding records to the database
- Replies: 3
- Views: 593
adding records to the database
Hello All, I'm a total newbie and am trying to learn MySQL and PHP. I'm following the book MySQL/PHP Database Appplications by Bulger, Greenspan, & Wall. I'm using MAMP and created the db and wrote the code as the book says. Everything works ok except(Always an exception :wink: ), I can't seem t...