PV.Pat File Manager
Kernel Version: Linux webm010.cluster127.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
Domains: CANT READ named.confSites Server IP: 10.127.20.10 [Bing Search] [Zone-H]
| Path : /home/s/p/t/sptporgazz/www/ex_backoffice/ |
| Current File : /home/s/p/t/sptporgazz/www/ex_backoffice/delete.php |
<?php
function delete_entree($table,$nom_id,$id) {
if(($table=="")||($nom_id="")||($id=="")||!is_numeric($id)) {
return 0;
} else {
$sql = "DELETE FROM $table WHERE $nom_id=$id";
if(mysql_query($sql)) {
return 1;
} else {
return 0;
}
}
}
?>