source:
code/Website/cfg/mysql.php@
7856
Last change on this file since 7856 was 7856, checked in by , 15 years ago | |
---|---|
File size: 241 bytes |
Rev | Line | |
---|---|---|
[7849] | 1 | <?php |
2 | function connectdb() | |
3 | { | |
[7856] | 4 | mysql_connect("localhost:3306", "root", "dennis") |
[7849] | 5 | or die("Error connecting to mysql: " . mysql_error()); |
6 | mysql_select_db('save_energy') | |
7 | or die("Error connecting to database: " . mysql_error()); | |
8 | } | |
9 | ?> |
Note:
See TracBrowser
for help on using the repository browser.