Hello everyone, I use a local server on my computer and I'm working on how to access server files already uploaded .
I have a file named poge.jpg, and I used the SQL statement to insert the path of the file in the table with VARCHAR(225) type. but when I try to see the image in the web browser, nothing is shown. would anyone please help me ?
the file is on the server with the path /files/images/, and the path is inserted in mysql table named profile, in the table row named pic. when I use the SQL statement to see the image on the browser, nothing is shown.
here is the php code :
I have a file named poge.jpg, and I used the SQL statement to insert the path of the file in the table with VARCHAR(225) type. but when I try to see the image in the web browser, nothing is shown. would anyone please help me ?
the file is on the server with the path /files/images/, and the path is inserted in mysql table named profile, in the table row named pic. when I use the SQL statement to see the image on the browser, nothing is shown.
here is the php code :
Code:
<?php $conn = new PDO("mysql:host=localhost;dbname=$databasename", $user, $password); $sql = "SELECT pic FROM profile"; $image = $conn->exec($sql); echo $image; <?
Comment