source:
code/Website/cfg/mysql.php
Last change on this file was 7887, checked in by , 15 years ago | |
---|---|
File size: 239 bytes |
Line | |
---|---|
1 | <?php |
2 | function connectdb() |
3 | { |
4 | mysql_connect("localhost:3306", "root", "root") |
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.