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