June 22, 2012 at 11:20 am
<?php
if($errors == 0)
{
echo "success1!";
$DBConnect = @mysql_connect("db.start.ca", "nokeekwe", "1rcPass");
if($DBConnect === FALSE)
{
echo "<p>Unable to connect. " .
"Error code " . mysql_errno() . ": " .
mysql_error() . "</p>";
$errors++;
}
else
{
echo "success2!";
$DBName = "nokeekwe";
$result = @mysql_select_db($DBName, $DBConnect);
if($result === FALSE)
{
echo "<p>Unable to select DB. " .
"Error code " . mysql_errno($DBConnect) .
": " . mysql_error($DBConnect) .
"</p>";
$errors++;
}
}
}
if($errors > 0)
{
echo "<p>Please use your browser's BACK button" .
" to return to the form and fix your errors.</p>";
}
echo "success3!";
if($errors == 0)
{
echo "success4!";
if(isset($_COOKIE['jobID']))
{
$TableName = "tbljobs";
$SQLstring = "DELETE * FROM $TableName WHERE $TableName.jobID = {$_COOKIE['jobID']}";
$QueryResult = @mysql_query($SQLstring, $DBConnect);
echo "success5!" . $_COOKIE['jobID'] . "";
if($QueryResult === FALSE)
{
echo "<p>Unable to save your review. " .
" Error code " .
mysql_errno($DBConnect) . ": " .
mysql_error($DBConnect) . "</p>";
$errors++;
}
else
{
echo "success!";
}
}
}
}
}
?>
Server version: 5.1.50-log
Protocol version: 10
MySQL client version: 5.0.27
Used PHP extensions: mysql
returns blank page
June 22, 2012 at 12:14 pm
not sure how many posters here will be familiar enough to debug php and mysql functions;
with luck there might be a few folks out of the huge group of volunteers, but
there might be other forums better suited for this question than for SQL server.
Lowell
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply