I'm trying to update two tables in the same database like this
$sql = "UPDATE table1 SET name = '$name'";
$res = mysql_query($sql) or die(mysql_error());
$sql2 = "UPDATE table2 SET row = '$row'";
$res2 = mysql_query($sql2) or die(mysql_error());
but it doesn't work. I've also looked at w3schools and tried this
$sql = "UPDATE table1, table2 SET table1.name = '$name' table2.row = '$row'";
$res = mysql_query($sql) or die(mysql_error());
Any ideas?