![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: Jan 2006
Location: England
Posts: 1,405
|
![]() http://bigtitsvideos.info/dl.php?id=5
I'm trying to display an image which is stored in a mediumblob table field, any ideas? Here is my code: Code:
<?php include "config.php"; $result = mysql_query("select * from [MASKED] where id = '$id'"); while($r=mysql_fetch_array($result)) { $content=$r["content"]; $type=$r["type"]; header("Content-type: $type"); echo ($content); } mysql_close($connection); ?> |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Oct 2007
Posts: 138
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 | |
Confirmed User
Join Date: Jan 2006
Location: England
Posts: 1,405
|
Quote:
Go to that url, for me it just shows "http://bigtitsvideos.info/dl.php?id=5" instead of an image... And I thought storing it in a DB would be easier but apparently not, I just can't see how its not working. Perhaps it is to do with my PHP settings? |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Join Date: Jan 2006
Location: England
Posts: 1,405
|
Ignore everything I just said, I am a fucking idiot. Thanks anyway
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Join Date: Oct 2007
Posts: 138
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Confirmed User
Join Date: Jan 2006
Location: England
Posts: 1,405
|
Nah I had
Code:
$content=$r["content"]; Code:
$content=$r["image"]; |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Confirmed User
Join Date: Aug 2007
Posts: 691
|
Not sure what book you have that is teaching you, but please burn it ASAP
__________________
Delete this account, i am done here |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
Confirmed User
Industry Role:
Join Date: Dec 2002
Location: Behind the scenes
Posts: 5,190
|
stored image in DB could also mean simply stored reference to it which is useful some times.
__________________
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
Confirmed User
Join Date: Jan 2006
Location: England
Posts: 1,405
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 | |
Confirmed User
Join Date: Oct 2007
Posts: 138
|
Quote:
![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |