PHP meets HTML: IMG display problems

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kansaschuck
    New Member
    • Jan 2007
    • 9

    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
  • AricC
    Recognized Expert Top Contributor
    • Oct 2006
    • 1885

    #2
    I think this is more of a PHP problem I'm going to move this thread to the PHP forum.

    Comment

    • ronverdonk
      Recognized Expert Specialist
      • Jul 2006
      • 4259

      #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:

      Comment

      • kansaschuck
        New Member
        • Jan 2007
        • 9

        #4
        Originally posted by ronverdonk
        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.sm ugmug.com/photos/116430303-L.jpg">
        <img border="2" src="http://IamaReporter.sm ugmug.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.

        Comment

        • kansaschuck
          New Member
          • Jan 2007
          • 9

          #5
          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.



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


          <body bgcolor="#FFFFF F">

          </body>


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

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

          <BR>
          Large
          <img src="http://IamaReporter.sm ugmug.com/photos/123959854-L.jpg" alt="Large" />
          <BR>
          Med
          <img src="http://IamaReporter.sm ugmug.com/photos/123959854-M.jpg" alt="Med" />
          <BR>
          Small
          <img src="http://IamaReporter.sm ugmug.com/photos/123959854-S.jpg" alt="Small" />
          <BR>
          Thumbs
          <img src="http://IamaReporter.sm ugmug.com/photos/123959854-Th.jpg" alt="Thumb" width="73" height="68" />
          <BR>
          Tiny
          <img src="http://IamaReporter.sm ugmug.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

          Comment

          • ronverdonk
            Recognized Expert Specialist
            • Jul 2006
            • 4259

            #6
            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:

            Comment

            • kansaschuck
              New Member
              • Jan 2007
              • 9

              #7
              Sorry, I've made corrections in a new posting. This one can be closed.

              Comment

              • Motoma
                Recognized Expert Specialist
                • Jan 2007
                • 3236

                #8
                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.

                Comment

                Working...