Jump to content

Recommended Posts

Why doesn't this display the images in the table?

 

<table border=”0” cellpadding=”0” cellspacing=”0” width=”750”>
<tr>
<td align=”left” valign=”top”><img src=”images/site-template-sick-green_01” border=”0”></td>
<td align=”left” valign=”top”><img src=”images/site-template-sick-green_02” border=”0”></td>
<td align=”left” valign=”top”><img src=”images/site-template-sick-green_03” border=”0”></td>
</tr>
<tr>
<td align=left” valign=”top”><img src=”images/site-template-sick-green_04” border=”0”></td>
<td align=”left” valign=”top”>GAME GOES HERE</td>
<td align=left” valign=”top”><img src=”images/site-template-sick-green_06” border=”0”></td>
</tr>
<tr>
<td align=”left” valign=”top”><img src=”images/site-template-sick-green_21” border=”0”></td>
<td align=”left” valign=”top”><img src=”images/site-template-sick-green_22” border=”0”></td>
<td align=”left” valign=”top”><img src=”images/site-template-sick-green_23” border=”0”></td>
</tr>
</table>

Link to comment
https://forums.phpfreaks.com/topic/127723-images-in-php/
Share on other sites

Wajjooo

 

Fast response time here

 

Wel it hase to do with PHP beceuse its index.php

 

Second i learned that code form a book called

 

PHP game programming

 

What happens when you view the image by itself?

When i view them with paint and stuff its just a normal image but when look on my site it gives to no image drawing you that little box with a broken page in it

Link to comment
https://forums.phpfreaks.com/topic/127723-images-in-php/#findComment-660986
Share on other sites

This code is pure HTML, just because it's in a PHP file, doesn't make it PHP.

 

The problem is, most likely, that you aren't putting the file extension in the reference:

<td align="left" valign="top"><img src="images/site-template-sick-green_01.jpg" border="0"></td>

 

Ken

Link to comment
https://forums.phpfreaks.com/topic/127723-images-in-php/#findComment-660993
Share on other sites

I chande names of images to more logic names and also added .gif behind all and now this is the new error

 

 

The error i added smileys where small boxes with the broken page sign is

 

:D<\td> ;D<\td> ;D<\td>  ;D<\tr>

:D<\td> GAME GOES HERE ;D<\td> ;D<\td> <\tr>

:D<\td> ;D<\td> ;D<\td>  :D<\tr>  :D<\table>

 

The code

<html>
<body>


<table border=”0” cellpadding=”0” cellspacing=”0” width=”750”>
<tr>
<td align=”left” valign=”top”><img src=”images\left_top.gif” border=”0”><\td>
<td align=”left” valign=”top”><img src=”images\middel_top.gif” border=”0”><\td>
<td align=”left” valign=”top”><img src=”images\right_top.gif” border=”0”><\td>
<\tr>
<tr>
<td align=left” valign=”top”><img src=”images\left_center.gif” border=”0”><\td>
<td align=”left” valign=”top”>GAME GOES HERE<\td>
<td align=left” valign=”top”><img src=”images\right_center.gif” border=”0”><\td>
<\tr>
<tr>
<td align=”left” valign=”top”><img src=”images\left_down.gif” border=”0”><\td>
<td align=”left” valign=”top”><img src=”images\middel_downgif” border=”0”><\td>
<td align=”left” valign=”top”><img src=”images\right_down.gif” border=”0”><\td>
<\tr>
<\table>
</body>
</html>

Link to comment
https://forums.phpfreaks.com/topic/127723-images-in-php/#findComment-661003
Share on other sites

Ok the here is what the images are

 

-there not misspelled

-there are Graphics interchange format <--- i think thats GIF in short

-there in the same map as the index.php in a special image map <---- i also tried changing the code and image's with out the map but doesn't work

 

Maybe this help

 

Link to comment
https://forums.phpfreaks.com/topic/127723-images-in-php/#findComment-661185
Share on other sites

Ok. Try changing the quotes (from  ”  to  ") for one row of your table data, like

 

<html>
<body>
<table border="0" cellpadding="0" cellspacing="0" width="750">
<tr>
<td align="left" valign="top"><img src="images\left_top.gif" border="0"><\td>

 

If you see the image for that table cell then the problem is probably the quotes.

Link to comment
https://forums.phpfreaks.com/topic/127723-images-in-php/#findComment-661289
Share on other sites

Ok. Try changing the quotes (from  ”  to  ") for one row of your table data, like

 

<html>
<body>
<table border="0" cellpadding="0" cellspacing="0" width="750">
<tr>
<td align="left" valign="top"><img src="images\left_top.gif" border="0"><\td>

 

If you see the image for that table cell then the problem is probably the quotes.

 

How wouldi do that? how do you make those quotes?

Link to comment
https://forums.phpfreaks.com/topic/127723-images-in-php/#findComment-661297
Share on other sites

Try using this and watch your switches. Replace aaa.jpg with your image filename. It should work since it works for me. You will have to modify the height and width of the image to reduce distortion.

 

<table border=”0” cellpadding=”0” cellspacing=”0” width=”750”>
<tr>
<td align="left" valign="top"><img src="images/aaa.jpg" height="183" width="235" 

border="0"></td>
<td align="left" valign="top"><img src="images/aaa.jpg" height="183" width="235" 

border="0"></td>
<td align="left" valign="top"><img src="images/aaa.jpg" height="183" width="235" 

border="0"></td>
</tr>
<tr>
<td align="left" valign="top"><img src="images/aaa.jpg" height="183" width="235" 

border="0"></td>
<td align="left" valign="top">GAME GOES HERE</td>
<td align="left" valign="top"><img src="images/aaa.jpg" height="183" width="235" 

border="0"></td>
</tr>
<tr>
<td align="left" valign="top"><img src="images/aaa.jpg" height="183" width="235" 

border="0"></td>
<td align="left" valign="top"><img src="images/aaa.jpg" height="183" width="235" 

border="0"></td>
<td align="left" valign="top"><img src="images/aaa.jpg" height="183" width="235" 

border="0"></td>
</tr>
</table>

Link to comment
https://forums.phpfreaks.com/topic/127723-images-in-php/#findComment-661922
Share on other sites

I think the problem is because your images are different dimensions. The upper left image has a width="147" and height="183" and the upper right image has a width="142" and height="177". This is probably what is causing the spacing. Try fixing all images so the result is a square table.

Link to comment
https://forums.phpfreaks.com/topic/127723-images-in-php/#findComment-661962
Share on other sites

  • 2 weeks later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.