473,327 Members | 2,103 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

PHP meets HTML: IMG display problems

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
7 2093
AricC
1,892 Expert 1GB
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
4,258 Expert 4TB
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
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
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
4,258 Expert 4TB
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
Sorry, I've made corrections in a new posting. This one can be closed.
Jan 19 '07 #7
Motoma
3,237 Expert 2GB
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

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

Similar topics

13
by: TinyTim | last post by:
I'm a newbie at ASP & HTML. It seems that when you use server side code and you're going to return a customized HTML form with several fields and labels, you have to do an extensive amount of...
72
by: Mel | last post by:
Are we going backwards ? (please excuse my spelling...) In my opinion an absolute YES ! Take a look at what we are doing ! we create TAGS, things like <H1> etc. and although there are tools...
6
by: Michael C | last post by:
Anyone know of a good HTML Rendering control? I need a control that will render and display HTML in a Windows form. It doesn't need to pull down HTML pages from the Web - I'll feed it all the...
4
by: cjm | last post by:
I have two problems that I suspect will be bread-and-butter problems for the more experienced guys on here, but I'm not the greatest with js. NB: Code snippets at the bottom The first problem...
25
by: Steal | last post by:
Hi at all I try to validate this page using the link: http://validator.w3.org/ but it return that this is not a valid HTML 4.01 page please where is it error? Steil <!DOCTYPE HTML PUBLIC...
2
by: ViperDK | last post by:
What is the best way for that? I store all Data in the original form in the Database. To prevent output fields (especially the fields everyone can use) to do bad things like killing the...
1
by: Nogusta123 | last post by:
Hi, I have had a lot of problems getting web pages, master pages and content pages to render in VS2005 design view the same as they would in Internet Explorer. I did a lot of looking on the...
15
by: lxyone | last post by:
Using a flat file containing table names, fields, values whats the best way of creating html pages? I want control over the html pages ie 1. layout 2. what data to show 3. what controls to...
18
by: coachjerry | last post by:
I'm a senior citizen with a tech background, though a newbie to programming and style sheets. I'm usually able to make HTML and css changes to existing designs, but I'm stuck on this one and would...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.