I need to update mysql after an onclick without leaving the page and am using this JS, php code combination, believing it should work. The queries run perfectly if independantly applied to mysql.
[script language="javas cript"]
function delimg() {
[PHP]
$updtspec = "update tspec set img='' where object ='$object' and suffix='$suffix '";
$upd1= mysql_query($up dtspec);
$updtimg = "update timg set img='' where object ='$object' and suffix='$suffix '";
$upd1= mysql_query($up dtimg);
[/PHP]
}
[/script]
Awesome forum !
[script language="javas cript"]
function delimg() {
[PHP]
$updtspec = "update tspec set img='' where object ='$object' and suffix='$suffix '";
$upd1= mysql_query($up dtspec);
$updtimg = "update timg set img='' where object ='$object' and suffix='$suffix '";
$upd1= mysql_query($up dtimg);
[/PHP]
}
[/script]
Awesome forum !
Comment