I have a table with two fields:
1) folder: with the folder path;
2) name: the name of png files
With php code I need to take all the complete path (example frames/1.png and frames/2.png) and with this Path I need to get the real image and insert their in an array as if they were all blobs.
at the moment I use this code but with this I have only the path and not the real image. can you help me please?
<?php
require("db.php");
session_start();
$sql = "SELECT concat('C:/wamp/www/Tecnitalia_Optic/app/webroot/img/',folder, thumb) as mini FROM frames ";
$result = array();
if ($resultdb = $mysqli->query($sql)) {
while($record = $resultdb->fetch_assoc()) {
array_push($result, $record);
}
$resultdb->close();
}
//send back information to extjs
echo json_encode(array(
"success" => $mysqli->connect_errno == 0,
"data" => $result
));
/* close connection */
$mysqli->close();
?>