By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,729 Members | 1,386 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,729 IT Pros & Developers. It's quick & easy.

PHP meets HTML: IMG display problems

P: 9
Well I love PHP and MySQL and things have been going great. PHP is straight forward and clear.

But now I outputing to HTML and thing are sooooooooo inconsistant. What worked yesterday doesn't work today, toss in a boat load of browsers and I'm pulling my hair out.

It's simple enough. I have a list of images I need to display along with some comment. PHP has the data ready and I just need to loop thru the code and punch out the <IMG SRC code.

The caption info goes into the table fine... the image acts like it's loading and then doesn't and displays ALT value. I expect (hope) that it's just something simple. I seem soooo close to having it. I'm a newbie at all this.
http://www.elementope.com/indexbbb.php

help!

KC
Jan 18 '07 #1
Share this Question
Share on Google+
7 Replies


Expert 100+
P: 1,892
I think this is more of a PHP problem I'm going to move this thread to the PHP forum.
Jan 18 '07 #2

ronverdonk
Expert 2.5K+
P: 4,258
Don't let us guess. Show your php code. And don't forget to enclose your code within php tags!!!

One question on this: do get your images from the database or from a server file?

Ronald :cool:
Jan 18 '07 #3

P: 9
Don't let us guess. Show your php code. And don't forget to enclose your code within php tags!!!

One question on this: do get your images from the database or from a server file?

Ronald :cool:
the image are at <a href="http://IamaReporter.smugmug.com/photos/116430303-L.jpg">
<img border="2" src="http://IamaReporter.smugmug.com/photos/116430303-S.jpg" width="256" height="192" HSPACE=30 VSPACE=10 >

But for the moment it might be an image problem. It works for some images.

Let me look at it for now.
Jan 18 '07 #4

P: 9
Ok...
Here's the site. If someone could try and help determine if it's my browser...or laptop... or network....or code...
The image are very inconsistent in their displays. I see no solid pattern to why or why not.

Would it help to drop the http:// ?

I read somewhere that the url should be all lowercase? Could that be an issue?

Could it by the other website? Do I need a retry or option to get the network more time to load them?


Here is the site.
http://www.elementope.com/indextest.html


<html>
<head>
<title></title>
</head>


<body bgcolor="#FFFFFF">

</body>


<BR>
Original
<img src="http://IamaReporter.smugmug.com/photos/123964789-O.jpg" alt="Org" />
<BR>
Large
<img src="http://IamaReporter.smugmug.com/photos/123964789-L.jpg" alt="Large" />

<BR>
Med
<img src="http://IamaReporter.smugmug.com/photos/123964789-M.jpg" alt="Med" />
<BR>
Small
<img src="http://IamaReporter.smugmug.com/photos/123964789-S.jpg" alt="Small" />
<BR>
Thumbs
<img src="http://IamaReporter.smugmug.com/photos/123964789-Th.jpg" alt="Thumb" width="73" height="68" />
<BR>
Tiny
<img src="http://IamaReporter.smugmug.com/photos/123964789-Ti.jpg" alt="Tiny" />
<BR>
<BR>
<BR>
Original
<img src="http://IamaReporter.smugmug.com/photos/123959854-O.jpg" alt="Org" />

<BR>
Large
<img src="http://IamaReporter.smugmug.com/photos/123959854-L.jpg" alt="Large" />
<BR>
Med
<img src="http://IamaReporter.smugmug.com/photos/123959854-M.jpg" alt="Med" />
<BR>
Small
<img src="http://IamaReporter.smugmug.com/photos/123959854-S.jpg" alt="Small" />
<BR>
Thumbs
<img src="http://IamaReporter.smugmug.com/photos/123959854-Th.jpg" alt="Thumb" width="73" height="68" />
<BR>
Tiny
<img src="http://IamaReporter.smugmug.com/photos/123959854-Ti.jpg" alt="Tiny" />

</html>

Read the Posting Guidelines before you dump your code in this forum, with special emphasis on enclosing your code within code or php tags.

moderator
Jan 19 '07 #5

ronverdonk
Expert 2.5K+
P: 4,258
I have asked you before, at one of the first posts in this thread http://www.thescripts.com/forum/post2317151-3.html , to follow the Posting Guidelines and to enclose your shown code within the tags. Since you choose to ignore this request, I will not read it.

Ronald :cool:
Jan 19 '07 #6

P: 9
Sorry, I've made corrections in a new posting. This one can be closed.
Jan 19 '07 #7

Motoma
Expert 2.5K+
P: 3,235
The images you are referencing aren't there.
They don't exist. Either you typed the URL wrong in the SRC and HREF tags, or they were removed from the server they were hosted on.
Jan 19 '07 #8

Post your reply

Sign in to post your reply or Sign up for a free account.