Skip to content

Commit

Permalink
woops! Accidentally didn't add the include/ folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Timothy Arnold committed Jun 30, 2010
1 parent 635b745 commit 472d9c0
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions include/functions.inc
@@ -0,0 +1,15 @@
<?php
session_start();

function dbConnect($server='localhost', $username='root', $password='7ynMELdb')
{
@ $db = mysql_connect("$server", "$username", "$password") or die(mysql_error());
if (!$db) {
echo "Error: Could not connect to database. Try again later.";
exit();
}

return $db;
}

?>

0 comments on commit 472d9c0

Please sign in to comment.