Super Dexta
New Member
- Joined
- Aug 15, 2002
- Messages
- 7,841
hi lads,
my code here may well be kinda ridiculous, all my PHPing is basically flailing in the dark until something works.
basically i have a URL to an image stored in my database, and I want to be able to pull out different URLs with PHP and display the actual images. at the moment i'm just getting a red X. I can get the URL out no bother, it's making it into an actual picture that's the problem.
at the moment i'm doing
my code here may well be kinda ridiculous, all my PHPing is basically flailing in the dark until something works.
basically i have a URL to an image stored in my database, and I want to be able to pull out different URLs with PHP and display the actual images. at the moment i'm just getting a red X. I can get the URL out no bother, it's making it into an actual picture that's the problem.
at the moment i'm doing
PHP:
$result = @mysql_query("SELECT pic FROM gradinfo where email ='$email' and pass ='$pass' ");
if (!$result) {
exit('Error performing query: ' . mysql_error());
}
while ($row = mysql_fetch_array($result)) {
echo "<img src=<'".$row['pic']."'>";
}