Going blind?
| From: | afrodriguez at att dot net | Date: | Wed, 21 Nov 2001 14:15:34 +0000 |
| Subject: | Going blind? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-75383@lists.php.net to get a copy of this message | ||
The following scrip is not updating the database:
<?php
// file: "root/reg/add/add_4.php", updated: 12/01/01
$connection=@mysql_connect("localhost","wagner","z") or
die ("No connection!");
$db=@mysql_select_db("sbwresearch",$connection) or die
("No database!");
$qry="update con_inf set
greeting='$greeting',
...
start_date='$start_date'
where username='$username'";
$result=@mysql_query($qry,$connection);
@mysql_free_result($result);
@mysql_close($connection);
header ("location:add_5.htm");
exit;
?>
Can some tell me why?
Thanks!
Anthony F. Rodriguez
(afrodriguez@att.net)