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!
/home/capous/public_html/update_webdemo.php: line 1: ?php: No such file or directory
/home/capous/public_html/update_webdemo.php: line 2: syntax error near unexpected token `"localhost",'
/home/capous/public_html/update_webdemo.php: line 2: `mysql_connect("localhost", "username", "username") or die("Could not connect to database.");'
<?php
mysql_connect("localhost", "username", "password") or die("Could not connect to database.");
mysql_select_db("main") or die("Could not select database.");