One should take care when checking the return value.
0 == false which is not equal with failed delete.
if(!$res)
echo "Nothing was deleted";
![]() |
|
||||||||||
|
pg_deleteОписаниеmixed pg_delete ( resource connection, string table_name, array assoc_array [, int options] )
pg_delete() deletes records from a table specified by
the keys and values in Список параметров
Возвращаемые значения
Возвращает TRUE в случае успешного завершения или FALSE в случае возникновения ошибки. Returns string if PGSQL_DML_STRING is passed
via Примеры
pg_delete
27-Apr-2004 03:47
One should take care when checking the return value. |