Hi All,
I need to use the results of this query as an array to exclude files from a tree. The file and folder names that I enter into $exclude work fine but I can not seem to add the results from the query to the array. Below is the code that I am using. Can somebody please help me with this.
function home($exclude = '$testname|index.php|HR') {
$query = "SELECT * FROM doc WHERE status=0";
$result = mysql_query($query) or die(mysql_error());
while($row = mysql_fetch_array($result)){
$testname = "|".$row['full_path']."|";
}
$exclude_array = explode("|", $exclude);
Thank you,
Max