Ejemplo n.º 1
0
echo $navbar;
?>
	
	<div class="col-md-8" data-spy="scroll" data-target="#mynav">
        <div class="panel panel-primary">
			<div class="panel panel-heading">
				<h3><?php 
echo $temp['fullname'];
?>
's Photos</h3>
			</div>
			<div class="panel panel-body">
				<div class="col-md-12"  id="area">
				
					<?php 
$rs = photo::getImagePublic();
if ($rs == false) {
    echo "No Images Uploaded!";
} else {
    $id = 0;
    $files = glob('c:/xampp/htdocs/webproject/views/images/*');
    // get all file names
    foreach ($files as $file) {
        if (is_file($file)) {
            unlink($file);
        }
    }
    $paths = array();
    foreach ($rs as $row) {
        $paths[] = "c:/xampp/htdocs/webproject/views/images/" . $row['imgId'] . ".jpg";
        file_put_contents("c:/xampp/htdocs/webproject/views/images/" . $row['imgId'] . ".jpg", $row['imageFile']);