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 01-17-2010, 06:25 AM   PM User | #1
cosmicsea
Regular Coder

 
Join Date: Jan 2010
Location: Washington
Posts: 223
Thanks: 34
Thanked 0 Times in 0 Posts
cosmicsea is an unknown quantity at this point
Question grabbing data

Im going to try to describe what im trying to do the best i can.
I have a search engine and when you do a search you goto the results page like any other search engine, but when you click a result it takes you to another page and displays all the data about the particular search inside a table on that page.
how it works is I use a include code that will display the data of the search result that has been chosen and it automatically displays the data like display name etc "whatever data i want it to have" into the table. The problem is i want to make the data that is in the table to be available on the entire page and not just inside the table. lets say i want the display name of the result to show somewhere besides the table, well I cant do that because the rest of the page is lacking the data. I can make the table display any info i want it to display because it is grabbing the data from another page using the include code. I tried to use an include code on the same page for the same info to grab from but it just displays blank data. I have tried adding in my normal functions into the page but with no result.

I guess what im saying is, is there any way to grab the data available from that table and be used elsewhere on the page?

I hope you can understand what im explaining. Thanks.
cosmicsea is offline   Reply With Quote
Old 01-17-2010, 06:40 AM   PM User | #2
oesxyl
Master Coder


 
Join Date: Dec 2007
Posts: 6,682
Thanks: 436
Thanked 890 Times in 879 Posts
oesxyl is a jewel in the roughoesxyl is a jewel in the roughoesxyl is a jewel in the rough
Quote:
Originally Posted by cosmicsea View Post
Im going to try to describe what im trying to do the best i can.
I have a search engine and when you do a search you goto the results page like any other search engine, but when you click a result it takes you to another page and displays all the data about the particular search inside a table on that page.
how it works is I use a include code that will display the data of the search result that has been chosen and it automatically displays the data like display name etc "whatever data i want it to have" into the table. The problem is i want to make the data that is in the table to be available on the entire page and not just inside the table. lets say i want the display name of the result to show somewhere besides the table, well I cant do that because the rest of the page is lacking the data. I can make the table display any info i want it to display because it is grabbing the data from another page using the include code. I tried to use an include code on the same page for the same info to grab from but it just displays blank data. I have tried adding in my normal functions into the page but with no result.

I guess what im saying is, is there any way to grab the data available from that table and be used elsewhere on the page?

I hope you can understand what im explaining. Thanks.
I'm not sure I understand, a example or at least a link would be better.

best regards
oesxyl is offline   Reply With Quote
Users who have thanked oesxyl for this post:
cosmicsea (01-17-2010)
Old 01-17-2010, 06:43 AM   PM User | #3
cosmicsea
Regular Coder

 
Join Date: Jan 2010
Location: Washington
Posts: 223
Thanks: 34
Thanked 0 Times in 0 Posts
cosmicsea is an unknown quantity at this point
Quote:
Originally Posted by oesxyl View Post
I'm not sure I understand, a example or at least a link would be better.

best regards
I really dont want to post my link on a forum so I will pm you my link.
cosmicsea is offline   Reply With Quote
Old 01-18-2010, 06:35 PM   PM User | #4
genecyber
New to the CF scene

 
Join Date: Jan 2010
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
genecyber is an unknown quantity at this point
Cool

I suggest, you include your page near the top of the page, your variables should be available to the "calling or parent" page, I personally suggest staying away from tables, and using div/css whenever possible as it allows for much better control.

-Shannon
genecyber is offline   Reply With Quote
Reply

Bookmarks

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 11:51 PM.


Advertisement
Log in to turn off these ads.