How to add a prefix to a php recordset variable -
How to add a prefix to a php recordset variable -
iam deleting record database , trying delete associated images, main total size image , thumbnail. can delete database entry , big image don't know how add together prefix thumbnail delete part. want "th" before sec file_name deletes thumbnail image well. please see code below:
chdir('../gallery/'); $do = unlink($row_recordset1['file_name']); $do = unlink($row_recordset1['file_name']); if($do=="1"){ header(sprintf("location: cpanel.php")); } else { echo "there error trying delete file."; }
use . concatenation operator.
$do = unlink('th' . $row_recordset1['file_name']); php
Comments
Post a Comment