~pollka-devs/pollka/trunk

1.1.4 by Amy Hendrix
Updated admin.php to allow editing poll options
1
<?php 
2
# GPLv3 - http://www.gnu.org/copyleft/gpl.html
3
# By Melissa Draper melissa@meldraweb.com
4
5
/**
6
  * Connect to db
7
  * I hope I don't need to tell you that
8
  * "root" is a bad user, and
9
  * "blah" is a bad password... but it is the default for the admin panel... shh.
10
  */
6 by Amy Hendrix
Updates to config
11
$con = mysql_connect('localhost','INSERT_DB_USER','INSERT_DB_PASSWORD');
1.1.4 by Amy Hendrix
Updated admin.php to allow editing poll options
12
if ( ! $con ) {
13
        echo "Fail.";
14
        die('Could not connect to the database. No pony for you: ' . mysql_error());
15
}
16
6 by Amy Hendrix
Updates to config
17
mysql_select_db('INSERT_DB_NAME', $con);
1.1.4 by Amy Hendrix
Updated admin.php to allow editing poll options
18
?>