View Single Post
Old 11-12-2009, 06:27 AM   #20 (permalink)
cskott
The Wanderer
 
Join Date: Nov 2009
Posts: 13
Thanks: 0
cskott is on a distinguished road
Default

No it still goes to a blank page

<?PHP
// Take this out when you're ready to make the code live.
error_reporting(E_ALL);

// Connect to server and select database.
$hostname = 'localhost';
$username = 'xx';
$password = 'xx';
$database = 'xx';
$tbl_name = 'xx';

$link = mysql_connect($host, $username, $password) || die(mysql_error());
// mysql_select_db($database, $link)or die(mysql_error());



// update data in mysql database
$sql = "UPDATE " . $tbl_name .
" SET name='" . mysql_real_escape_string($name) .
"', lastname='" . mysql_real_escape_string($lastname) .
"', email='" . mysql_real_escape_string($email) .
"' WHERE id='" . mysql_real_escape_string($id) . "'";

$result = mysql_query($sql, $link);

?>
cskott is offline  
Reply With Quote