Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-12-2011, 04:36 AM   PM User | #1
shanil
New Coder

 
Join Date: Mar 2011
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
shanil has a little shameless behaviour in the past
The images doesn't display with pagination in windows..

Hi all,

I am developing a student project using cakephp frame work in windows.I have to display all the details of a students with their images in a page , the students images are in the webroot/images folder. I am using <img src="../images/studentimage.jpg"> for displaying the students images and this working perfectly when no pagination is there but with pagination the images are not displayed in the next pages. Is there any problem with the image source path ? How can i solve this issue? If anyone knows please help me thanks in advance....
shanil is offline   Reply With Quote
Old 11-13-2011, 03:41 AM   PM User | #2
Inigoesdr
Super Moderator


 
Inigoesdr's Avatar
 
Join Date: Mar 2007
Location: Florida, USA
Posts: 3,601
Thanks: 2
Thanked 397 Times in 390 Posts
Inigoesdr is a jewel in the roughInigoesdr is a jewel in the roughInigoesdr is a jewel in the rough
Quote:
Originally Posted by shanil View Post
Hi all,

I am developing a student project using cakephp frame work in windows.I have to display all the details of a students with their images in a page , the students images are in the webroot/images folder. I am using <img src="../images/studentimage.jpg"> for displaying the students images and this working perfectly when no pagination is there but with pagination the images are not displayed in the next pages. Is there any problem with the image source path ? How can i solve this issue? If anyone knows please help me thanks in advance....
You really need to provide more information, such as the pagination URL, but if the images folder is in the web root you can make it simple and just make your image links web-root relative:
Code:
<img src="/images/studentimage.jpg">
That way your links work on any page, and in any subfolder.
Inigoesdr is offline   Reply With Quote
Reply

Bookmarks

Tags
<meta>

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:25 AM.


Advertisement
Log in to turn off these ads.