Hi all! I have the following code which works:
What I need to do is add another sql statement to occur at the same time but on the clients table. I need it to update $variable with $variablenew.PHP Code:if(isset($deletename)){
// create SQL statement to get newbw
$thesql = "SELECT * FROM clients WHERE id='$clientid'";
$theresult = mysql_query($thesql);
$amandarow = mysql_fetch_array($theresult);
$variable = $amandarow["variable"];
//newvariable
$variablenew = $variable + $passed_in_url_variable;
//delete from anothertablename db
$sql="DELETE FROM anothertablename WHERE username='$deletename'";
if(@mysql_query($sql)){
print("<DIV ALIGN=\"center\"><BR><BR><B>SUCCESS</B></DIV>");
}else{print("Error deleting: mysql_error()");
}
}
Any ideas?
Thanks much!
Amanda




So where within the code above would you stick the update query if you were me?
Bookmarks