note 70523 deleted from function.unlink by bobby

From: Date: Thu, 19 Oct 2006 15:50:33 +0000
Subject: note 70523 deleted from function.unlink by bobby
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-118778@lists.php.net to get a copy of this message
Note Submitter: Gonzalo Aguirre ---- most of PHP pages do not use blob type with images (or any kind of files), instead use link to them, due to that integrity must be keep programing, so don't forget to unlink those references on your database before delete it. $logo_query = "select logo_link logo from company where id=".$id; $logo_result = mysql_query($logo_query) or die ($query); while( $row = mysql_fetch_array($logo_result, MYSQL_ASSOC) ) unlink( $row['logo'] ); $query = "delete from company where id=".$id; enjoy it and happy integrity!!

« previous php.notes (#118778) next »