Fatal error: main(): Failed opening required '/home/i4boredo/marlins/db.php' (include_path='.:/usr/local/lib/php') in /home/i4boredo/public_html/marlins/processo.php on line 3
db.php
Code: Select all
I have vars up here with pws that are corrent but ive taken out for privacy reasons
#connection info
$connection = mysql_connect("$dbhost","$dbusername","$dbpasswd")
or die ("Couldn't connect to server.");
$db = mysql_select_db("$database_name", $connection)
or die("Couldn't select database.");
?>Code: Select all
<?
ob_start();
require_once("/home/i4boredo/marlins/db.php");
$Name = $_POST['Name'];
$G = $_POST['G'];
$AB = $_POST['AB'];
$Runs = $_POST['Runs'];
$Hits = $_POST['Hits'];
$B2 = $_POST['2B'];
$B3 = $_POST['3B'];
$HR = $_POST['HR'];
$RBI = $_POST['RBI'];
$BB = $_POST['BB'];
$SO = $_POST['SO'];
$CS = $_POST['CS'];
$HBP = $_POST['HBP'];
$SAC = $_POST['SAC'];
$sql = mysql_query("UPDATE `offensive_stats` SET G='{$G}',AB='{$AB}',Runs='{$Runs}',Hits = '{$Hits}',2B = '{$B2}',3B = '{$B3}',HR = '{$HR}',RBI = '{$RBI}',BB = '{$BB}',SO = '{$SO}',CS = '{$CS}',HBP = '{$HBP}',SAC = '{$SAC}' WHERE Name = '{$Name}'");
if(!$sql){
$error.= 'There has been an error posting your comment. Please contact the webmaster.';
} else {
echo 'Stat Added!';
}
?>