Re: UPDATE query

From: Date: Mon, 14 Jul 2003 18:35:17 +0000
Subject: Re: UPDATE query
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-29244@lists.php.net to get a copy of this message
> $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...

« previous php.db (#29244) next »