Ron Piggott wrote:
How do I test if an UPDATE query worked

$query = "UPDATE `clients` SET `company` = '$company', `contact` =
'$contact', `phone` = '$phone', `city` = '$city' WHERE
`clients`.`reference` =$client LIMIT 1";


If it returns 0 that could mean:
- no row was originally found with that condition
- no update was performed (the data stayed the same)

Postgresql & php tutorials

PHP Database Mailing List (
To unsubscribe, visit:

Reply via email to