raymondje21 Posted October 9, 2008 Share Posted October 9, 2008 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> Quote Link to comment https://forums.phpfreaks.com/topic/127723-images-in-php/ Share on other sites More sharing options...
F1Fan Posted October 9, 2008 Share Posted October 9, 2008 What happens when you view the image by itself? Quote Link to comment https://forums.phpfreaks.com/topic/127723-images-in-php/#findComment-660979 Share on other sites More sharing options...
kenrbnsn Posted October 9, 2008 Share Posted October 9, 2008 What does this have to do with PHP? It's looks like pure HTML to me. Ken Quote Link to comment https://forums.phpfreaks.com/topic/127723-images-in-php/#findComment-660982 Share on other sites More sharing options...
raymondje21 Posted October 9, 2008 Author Share Posted October 9, 2008 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 Quote Link to comment https://forums.phpfreaks.com/topic/127723-images-in-php/#findComment-660986 Share on other sites More sharing options...
wrathican Posted October 9, 2008 Share Posted October 9, 2008 the best advice i can offer you is to forget slicing up images, and using tables for layouts. learn XHTML and CSS before proceeding ANY further. sorry to be blunt. Quote Link to comment https://forums.phpfreaks.com/topic/127723-images-in-php/#findComment-660988 Share on other sites More sharing options...
kenrbnsn Posted October 9, 2008 Share Posted October 9, 2008 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 Quote Link to comment https://forums.phpfreaks.com/topic/127723-images-in-php/#findComment-660993 Share on other sites More sharing options...
budimir Posted October 9, 2008 Share Posted October 9, 2008 Damn Kenrbnsn. You've beat me for a second with your reply. ;D Quote Link to comment https://forums.phpfreaks.com/topic/127723-images-in-php/#findComment-660996 Share on other sites More sharing options...
raymondje21 Posted October 9, 2008 Author Share Posted October 9, 2008 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 <\td> <\td> <\td> <\tr> <\td> GAME GOES HERE <\td> <\td> <\tr> <\td> <\td> <\td> <\tr> <\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> Quote Link to comment https://forums.phpfreaks.com/topic/127723-images-in-php/#findComment-661003 Share on other sites More sharing options...
kenrbnsn Posted October 9, 2008 Share Posted October 9, 2008 Since this has nothing to do with PHP, I'm moving it to the HTML section. Ken Quote Link to comment https://forums.phpfreaks.com/topic/127723-images-in-php/#findComment-661004 Share on other sites More sharing options...
Chicken Little Posted October 9, 2008 Share Posted October 9, 2008 Shouldn't your switches be the other way? Quote Link to comment https://forums.phpfreaks.com/topic/127723-images-in-php/#findComment-661024 Share on other sites More sharing options...
raymondje21 Posted October 9, 2008 Author Share Posted October 9, 2008 You mean \ should be / thanks that was the problem It fixed the <\td> part but images still down't show What should i do about the images? Quote Link to comment https://forums.phpfreaks.com/topic/127723-images-in-php/#findComment-661031 Share on other sites More sharing options...
budimir Posted October 9, 2008 Share Posted October 9, 2008 Try this: <td align=”left” valign=”top”><img src=”images/left_top.gif” border=”0”></td> Are you sure that picture extension is .gif ??? Change slash \ to / for the picture path! Quote Link to comment https://forums.phpfreaks.com/topic/127723-images-in-php/#findComment-661162 Share on other sites More sharing options...
Chicken Little Posted October 9, 2008 Share Posted October 9, 2008 Check for typos in your code for the image filenames; make sure you type the correct extension (.gif, .jpg,...); verify the images are in the images folder. Quote Link to comment https://forums.phpfreaks.com/topic/127723-images-in-php/#findComment-661171 Share on other sites More sharing options...
raymondje21 Posted October 9, 2008 Author Share Posted October 9, 2008 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 Quote Link to comment https://forums.phpfreaks.com/topic/127723-images-in-php/#findComment-661185 Share on other sites More sharing options...
Chicken Little Posted October 9, 2008 Share Posted October 9, 2008 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. Quote Link to comment https://forums.phpfreaks.com/topic/127723-images-in-php/#findComment-661289 Share on other sites More sharing options...
raymondje21 Posted October 9, 2008 Author Share Posted October 9, 2008 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? Quote Link to comment https://forums.phpfreaks.com/topic/127723-images-in-php/#findComment-661297 Share on other sites More sharing options...
Chicken Little Posted October 9, 2008 Share Posted October 9, 2008 On my keyboard the key is immediately to the left of the enter key. I use the shift key in tandem with that key to produce a quotation mark. Quote Link to comment https://forums.phpfreaks.com/topic/127723-images-in-php/#findComment-661416 Share on other sites More sharing options...
raymondje21 Posted October 10, 2008 Author Share Posted October 10, 2008 On my keyboard the key is immediately to the left of the enter key. I use the shift key in tandem with that key to produce a quotation mark. Well when i use that it gives me these quotues """" Quote Link to comment https://forums.phpfreaks.com/topic/127723-images-in-php/#findComment-661872 Share on other sites More sharing options...
raymondje21 Posted October 10, 2008 Author Share Posted October 10, 2008 Those quest are now set to """"" Still no result DO i tried using a nother path with a http:\\www.somerandowsite.com/somerandomthingy/image.jpg I tried something like that and it showed the img Quote Link to comment https://forums.phpfreaks.com/topic/127723-images-in-php/#findComment-661873 Share on other sites More sharing options...
Chicken Little Posted October 10, 2008 Share Posted October 10, 2008 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> Quote Link to comment https://forums.phpfreaks.com/topic/127723-images-in-php/#findComment-661922 Share on other sites More sharing options...
raymondje21 Posted October 10, 2008 Author Share Posted October 10, 2008 I fixed the problem another way now but now there is a new problem i all the images work but it messed 2 of them up http://sarion.site90.net You see one on the right and one on the left You can see some sort of spacing Quote Link to comment https://forums.phpfreaks.com/topic/127723-images-in-php/#findComment-661929 Share on other sites More sharing options...
Chicken Little Posted October 10, 2008 Share Posted October 10, 2008 I went to the site for one of the images (http://i179.photobucket.com/albums/w293/raymondje21/left_topgif.gif) and it matched what I saw on the main page. I viewed it in IE. What type of browser do you use? Quote Link to comment https://forums.phpfreaks.com/topic/127723-images-in-php/#findComment-661941 Share on other sites More sharing options...
raymondje21 Posted October 10, 2008 Author Share Posted October 10, 2008 i use Fire Fox Quote Link to comment https://forums.phpfreaks.com/topic/127723-images-in-php/#findComment-661949 Share on other sites More sharing options...
Chicken Little Posted October 10, 2008 Share Posted October 10, 2008 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. Quote Link to comment https://forums.phpfreaks.com/topic/127723-images-in-php/#findComment-661962 Share on other sites More sharing options...
slapdashgrim Posted October 24, 2008 Share Posted October 24, 2008 when you say "map" what do you mean? were are the images in relation to index.php if they are in the same directory then remove the images part of the src url Quote Link to comment https://forums.phpfreaks.com/topic/127723-images-in-php/#findComment-673360 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.