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

Popular posts from this blog

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

Is there a way to convert an HTML page styled with Bootstrap CSS into email-compatible html? -