Hello guyse, i made this upload system wich is working.
But i got this problem with getting the pictures out im uploading to the mysql db.
I wanna know how i can get the pictures out and showing them, here my code:
( yes i know i spelled description wrong, just too lazy to fix itCode:<?php
$connect = mysql_connect("","","");
$select_db = mysql_select_db("",$connect);
$selectpic = mysql_query("SELECT picture, title, discription FROM upload");
while($rowpic = mysql_fetch_row($selectpic)) {
echo $rowpic[0];
echo "<br />";
echo $rowpic[1];
echo "<br />";
echo $rowpic[2];
}
?>)
thanks from flezria
this tutorial will help you alot.
Tutorial: Storing Images in MySQL with PHP / Part II / Display your images
You can't just echo the content of the picture in the middle of the web page. you need to follow some special ways, which is shown in that tutorial.
__________________________________________
I study Information Systems at Karlstad University when I'm not on CodeCall
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks