473,385 Members | 1,154 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,385 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 2095
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.