View Single Post
Old 11-13-2012, 12:29 AM   PM User | #17
stevenryals
New Coder

 
Join Date: Jul 2012
Posts: 60
Thanks: 4
Thanked 0 Times in 0 Posts
stevenryals is an unknown quantity at this point
ok, i've made those changes.. and am whitescreened... still not working..

see file:

Code:
<?php

$db_host = 
$db_user = 
$db_pwd = 
$database = 
$table = 


if (!mysql_connect($db_host, $db_user, $db_pwd))
    die("Can't connect to database");

if (!mysql_select_db($database))
    die("Can't select database");

$t = mysql_real_escape_string($_POST['tval']);
$c = mysql_real_escape_string($_POST['cval']);
settype($c, 'float');

$sql = mysql_query("DELETE FROM {$table} WHERE `tag` = '$t' AND `cpm` = $c" );

if (!$sql) {
    die(mysql_error());
}
else  {
echo "Well.. They're gone.. for good..";
echo "<BR>";
echo "<a href='pyflightsearchresults.php'>Back to Results</a>";
}


echo "<a href="pyflightsearchresults.php">That's it. They're gone.. you can't get them back.. gone forever...  click here to return to strikesearch results</a>";

mysql_free_result($result);

?>
I have placed vardump on the 2 variables.. and they show good to that point:
Quote:
float(9) string(8) "testing3"
in firebug i see the post values & 500 internal server error

Last edited by stevenryals; 11-13-2012 at 01:27 AM..
stevenryals is offline   Reply With Quote