Re: UPDATE query

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> $query1 = "UPDATE news,autori SET
> news.titolo='$titolo', news.testo='$testo',
> news.data='$data', news.nome='$nome',
> autori.mail='$mail' WHERE news.nome =
> autori.nome AND id='$id'";

You can't do an update across tables the last time I checked. Even if it's
possible in newer versions, using mysql_error() after your query will tell
you what the error is.

---John Holmes...


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux