Webmaster Forums 101 - Free Help and Discussions
 
 
 

MEMBER REWARDS - Earn free advertising by participating in these forums! Click here for details.

Welcome to Webmaster Forums 101!

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

Reply
 
Thread Tools Search this Thread Display Modes
Old 8th April 2003, 11:03 AM   #1

Username: mr t
Rank: WF101 Newbie
Join Date: Apr 2003
Posts: 20
Points: 0.00
Default some php and frames questions.

before i get into my questions, heres my temp site

http://www.illconcepts.puregraffiti....frametest.html

first off, the text on the left will be linked to pictures which will load in the right frame. now, i know how to target frames(target="right_frame"), but that loads the picture with no background or anything. what i am looking to do is be able to load the picture inside the table in the right frame. that is beyond my level in html.

numero two. when a name is click, and the picture loads(hopefully inside the table ), i was wondering, is it possible for a little table to load underneath the pic with some artist information? for example, the artist, and where the picture was taken, or something like that. the cell is not set up in the link by the way.

any ways, just to let you know, i am trying these things on my own. im not depending on other people to make my website. i am intrested in learning these things, and if you know where i could find any tutorials that would help me with these problems, i would be more thna happy to read them. again, thanks for the help.

cheers.
mr t is offline   Reply With Quote
Old 8th April 2003, 11:09 AM   #2
Mr. Tech's Avatar

Username: Mr. Tech
Rank: Problem Solver
Join Date: Dec 2004
Location: Gold Coast, Australia
Posts: 2,166
Points: 1,025.61
Send a message via MSN to Mr. Tech
Default

I think it might be a good idea for you to read some tutorials on HTML. You'll find some tutorials on tables here:

http://www.webwondersnews.com/resour...ex.php?cat=154

Now, to get an image to load inside a table, it's as simple as this:

Code:
<table border="0"> <tr> <td><img src="image.gif" border="0"></td> </tr> </table>

and it's the same with text:

Code:
<table border="0"> <tr> <td>This is your text.</td> </tr> </table>

Does that explain it?
__________________
Please read the Forum Rules

Get rewarded for posting
- free advertising!

.::. [ Webmaster Resources ] .::. [ Web Design ] .::. [ Developer Tutorials ] .::.
Mr. Tech is offline   Reply With Quote
Old 8th April 2003, 11:25 AM   #3

Username: mr t
Rank: WF101 Newbie
Join Date: Apr 2003
Posts: 20
Points: 0.00
Default

thanks for the template link, im reading through them right now. any ways, i know the easy way to put an image and text into a table, but i do not want to have to make a new page for every picture because i would have to make over 600 new pages. i was hoping there would be a way to link from my left frame into a table on my right frame.

actually, i just did some looking up, and something like this can be done with asp.

http://visualorgasm.com/listviewer.a...=14&type=walls

when you click a picture, it loads in the temp frame. well, i may have to read up on asp now.

thanks again

cheers.
mr t is offline   Reply With Quote
Old 8th April 2003, 12:57 PM   #4
Mr. Tech's Avatar

Username: Mr. Tech
Rank: Problem Solver
Join Date: Dec 2004
Location: Gold Coast, Australia
Posts: 2,166
Points: 1,025.61
Send a message via MSN to Mr. Tech
Default

I could easily write ytou a simple script with PHP. Have you got it on your server?
__________________
Please read the Forum Rules

Get rewarded for posting
- free advertising!

.::. [ Webmaster Resources ] .::. [ Web Design ] .::. [ Developer Tutorials ] .::.
Mr. Tech is offline   Reply With Quote
Old 9th April 2003, 08:23 AM   #5

Username: mr t
Rank: WF101 Newbie
Join Date: Apr 2003
Posts: 20
Points: 0.00
Default

yes i do. thanks, this is greatly appreated! thats what i have so far. will you need my scripts for the left and right frame?
http://www.illconcepts.puregraffiti....rametest2.html

cheers
mr t is offline   Reply With Quote
Old 9th April 2003, 10:07 AM   #6
Mr. Tech's Avatar

Username: Mr. Tech
Rank: Problem Solver
Join Date: Dec 2004
Location: Gold Coast, Australia
Posts: 2,166
Points: 1,025.61
Send a message via MSN to Mr. Tech
Default

This will be in your right hand side page. Change $imagedir.

Code:
<?php // Image Directory $imagedir = "images"; if (IsSet($HTTP_GET_VARS['image']) && IsSet($HTTP_GET_VARS['text']) && file_exists("$imagedir/$HTTP_GET_VARS[image]")) { ?> <table border="0" width="100%"> <tr> <td><img src="<?php echo "$imagedir/$HTTP_GET_VARS[image]"; ?>" border="0"></td> </tr> <tr> <td><?php echo "$HTTP_GET_VARS[text]"; ?></td> </tr> </table> <?php } else { echo "File Not Found"; } ?>

Now with your left side links you need to put something like this:

Code:
<a href="right.php?image=image.gif&text=This Is My Text" target="right_frame">Photo</a>

Replace:

image=image.gif&text=This Is My Text

With your images info.

Hope that helps!
__________________
Please read the Forum Rules

Get rewarded for posting
- free advertising!

.::. [ Webmaster Resources ] .::. [ Web Design ] .::. [ Developer Tutorials ] .::.
Mr. Tech is offline   Reply With Quote
Old 9th April 2003, 01:13 PM   #7

Username: mr t
Rank: WF101 Newbie
Join Date: Apr 2003
Posts: 20
Points: 0.00
Default

hi again. i cant stress how thankful i am. but speaking of stress, it isnt working. ive been trying to get this to work for about half an hour now and i just understand why it isnt working. here is what i have so far:

- my image directory is http://illconcepts.puregraffiti.com/images
- my $imagedir is "images"

i set up an image.gif file in the images directory and it still wont work. as soon as i load the page i get the file not found error in my table. here is what i have so far.

Code:
// Image Directory $imagedir = "images"; if (IsSet($HTTP_GET_VARS['image']) && IsSet($HTTP_GET_VARS['text']) && file_exists("$imagedir/$HTTP_GET_VARS[image]")) { ?> <table border="0" width="100%"> <tr> <td><img src="<?php echo "$imagedir/$HTTP_GET_VARS[image]"; ?>" border="0"></td> </tr> <tr> <td><?php echo "$HTTP_GET_VARS[text]"; ?></td> </tr> </table> <?php } else { echo "File Not Found"; } ?>

and

Code:
<tr> <td width="90" class="td.rowpic" nowrap="nowrap"><span class="gensmall"><a href="right.php?image=image.gif&text=test" target="right_frame"> 45 Lies</a> 2 3 4 5</td></span> </tr>

again, all this help is greatly appreated. cheers.
mr t is offline   Reply With Quote
Old 9th April 2003, 01:29 PM   #8
viper's Avatar

Username: viper
Rank: WF101 Fanatic
Join Date: Apr 2003
Location: Canada
Posts: 172
Points: 28.21
Default php

well if you put a image.gif directory in your images directory then your im deirectory will be images/.gif .gif bieing your directory inside your image directory.


and for your second code maybeet hat's where your problem is in the link image=image.gif thats what you have it should be images/image.gif try this first.
__________________
viper is offline   Reply With Quote
Old 10th April 2003, 08:25 AM   #9
Mr. Tech's Avatar

Username: Mr. Tech
Rank: Problem Solver
Join Date: Dec 2004
Location: Gold Coast, Australia
Posts: 2,166
Points: 1,025.61
Send a message via MSN to Mr. Tech
Default

The reson is your frmae page is here:

files/tests/

and your images file is here:

images/

So what you need to do is change the $imagedir to this:

/images/

And then it should work.

:cheesygr:
__________________
Please read the Forum Rules

Get rewarded for posting
- free advertising!

.::. [ Webmaster Resources ] .::. [ Web Design ] .::. [ Developer Tutorials ] .::.
Mr. Tech is offline   Reply With Quote
Old 10th April 2003, 10:52 AM   #10

Username: mr t
Rank: WF101 Newbie
Join Date: Apr 2003
Posts: 20
Points: 0.00
Default

its still not working . i have tried moving the pages around. like, i put frametest.html, leftframe.php, and right.php in the images directory and still nothing. any ways, heres my right.php page:

Code:
</style> </head> <table> <table width="350" border="0" cellspacing="1" cellpadding="3" class="forumline"> <tr> <th width="610" class="catHead">Ill Concepts :: Home</td> </tr> <table width="610" border="0" cellspacing="1" cellpadding="3" class="forumline"> <tr> <td height="480" class="td.rowpic" nowrap="nowrap"><span class="gensmall"> <?php // Image Directory $imagedir = "/images/"; if (IsSet($HTTP_GET_VARS['image']) && IsSet($HTTP_GET_VARS['text']) && file_exists("$imagedir/$HTTP_GET_VARS[image]")) { ?> <table border="0" width="100%"> <tr> <td><img src="<?php echo "$imagedir/$HTTP_GET_VARS[image]"; ?>" border="0"></td> </tr> <tr> <td><?php echo "$HTTP_GET_VARS[text]"; ?></td> </tr> </table> <?php } else { echo "File Not Found"; } ?> </td></span> </tr> <br></br>
thats the majority of the code, the rest is the style sheet info. this is leftframe.php:

Code:
</head> <table> <table width="90" border="0" cellspacing="1" cellpadding="3" class="forumline"> <tr> <th width="90" class="catHead">Artist</td> </tr> <br></br> <tr> <td width="90" class="td.rowpic" nowrap="nowrap"><span class="gensmall"><a href="right.php?image=images/image.gif&text=test" target="right_frame"> 45 Lies</a> 2 3 4 5</td></span> </tr>
again, not the whole page, but the more important sections.

i have no idea what is going on and why this is not working. as soon as i load the page, i get the file not found error in my table.

cheers.
mr t is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Login
User Name
Password


Featured Members


Featured Links


Useful Resources
Webmaster Resources
Developers Tools
Developer Tutorials


Partners

All times are GMT +10. The time now is 10:37 AM.


Powered by vBulletin Version 3.5.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.3.2
 
 
WEBMASTER FORUMS 101
ARCHIVE
CONTACT US
TOP
   
© Webmaster Forums 101 2005. All Rights Reserved.
Design by: vBCore