Blulagoon wrote:@
It is a mystery to me why the script works, except that he does the query with the line before the $rs one.
Going back to his code
$sql = mysql_query("UPDATE request1 set forwmail='$forwmail' WHERE qid='$qid'");
$rs = mysql_query($sql, $db);
if($rs)
He would be better off to delete the line beginning $rs as it doesn't achieve anything even if it doesn't actually error, and replace if($rs) with if($sql)
Blu
Thanks, the first real constructive solution.
I did what yolu said, now it works perfectly.
Previously it did update, but never echoed the if, but that is fixed with:
$conn= mysql_connect( "localhost", "root", "password" );
$db = mysql_select_db( "snow", $conn);
$sql = mysql_query("UPDATE request1 set forwmail='$forwmail' WHERE qid='$qid'");
if($sql)
{
I'll take the sarcasm, as long as it resolves challenges.
Peace