Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Need alot of thought help...
Old 10-29-2011, 04:30 AM Need alot of thought help...
Brian07002's Avatar
Defies a Status

Posts: 2,162
Name: ...
Location: ...
Trades: 0
Hi,

As the title states, I need alot of thought help (regarding this message)

Scenario:

I have a database that is setup with two tables: A category and subcategory table. The database is setup correctly, working as expected.

I also have some php code to display the categories.

What I am trying to do with the php code, (being all too patient and having no success I will add). is I want to link the categories to display the subcategories, then the subcategories will link to a custom page. Let me define the custom page:

Custom page = It will contain one line of php code that will output some advertisements and that one line of code is slightly different for each page. Plus I might use some java to do pagination on that page as well for the ads. I don't know what java pagination I will use, but I will definitely be using java, as php will run a muck on the one line of code previously mentioned.

How would I construct this code, and specifically, how would the custom page(s) be created? Could they be done dynamically? The idea is to have to create as few a pages as possible by hand (manually) as I will have several thousand subcategories so the links to the pages *should* be dyanmic, just how would I do that.

So far, I have a php page to output my categories data into adjustable columns, but links or custom page(s) are not set.

Please do help!

Thanks again!
Brian
__________________
Made2Own

Please login or register to view this content. Registration is FREE
Brian07002 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-29-2011, 10:23 AM Re: Need alot of thought help...
Physicsguy's Avatar
404 - Title not found

Posts: 920
Name: Scott Kaye
Location: Ontario
Trades: 0
Why load an entire Java applet to do simple pagination?

As for executing code stored in a DB field, you'd need to use eval().

If you're trying to create the links to those pages, you'd also need to have those URLs stored along inside the DB record. If you didn't, a script would need to spider your entire website looking for one file several thousand times!
__________________
Check out my
Please login or register to view this content. Registration is FREE
or my
Please login or register to view this content. Registration is FREE
!
Physicsguy is offline
Reply With Quote
View Public Profile
 
Old 10-29-2011, 12:42 PM Re: Need alot of thought help...
lizciz's Avatar
Super Spam Talker

Posts: 807
Name: Mattias Nordahl
Location: Sweden
Trades: 0
I think that by "Java" you actually mean "Javascript". They are two different languages and apart from the name, they have little in common.

The "Custom page" can just be a php file that loads some DB content. The DB content should include your "one line of php code", the javscript to cycle the ads and any other actual information you have on this page.

Come to think of it, it sounds as if you'll want a simple CMS...
__________________
Your answers will only be as good as your question. Formulate it well and give all the necessary information.
lizciz is offline
Reply With Quote
View Public Profile Visit lizciz's homepage!
 
Old 10-29-2011, 05:31 PM Re: Need alot of thought help...
Brian07002's Avatar
Defies a Status

Posts: 2,162
Name: ...
Location: ...
Trades: 0
I meant javascript, as in something like dhtml to do that part. As far as the custom pages are concerned, none of the php code that is going into the custom pages can be 'cleanly' extracted from the db, that is why I am using the ad manager script for that purpose, it's the easiest way. Btw, the ad manager script is not customized, I purchased it and using it as is to (handle / display) the ads.so I don't plan on doing anything major to create a template. I would rather use a custom page that I would create from scratch and just paste the php code that is generated from the ad manager script and find a way to some how take only the part that is needed which is the zone and put it into the same template page so that it works for all pages. I just need help establishing / starting this process.

Thank you
Brian
__________________
Made2Own

Please login or register to view this content. Registration is FREE
Brian07002 is offline
Reply With Quote
View Public Profile
 
Old 11-05-2011, 06:26 AM Re: Need alot of thought help...
Brian07002's Avatar
Defies a Status

Posts: 2,162
Name: ...
Location: ...
Trades: 0
so can anyone help do this category structure? Basically a left column that lists all categories, then when you click on a category subcategories will open in a div multi column layout and the subcategories will be linked to the zone pages. Ex: each zone has it's own 'page structure' but it's not a url. It's some php code that will be put into a page that will display the ads from a particular zone. So I could have 50 zones for example, and I would need to have 50 pages, but I would like those pages to be created as they are needed.

I have the multi column code at this time, I do NOT have any other code put together, however I did try, so I am asking again, for your time and support.

Note: I will not be home until after 1:00pm est. today.

Thank you
Brian
__________________
Made2Own

Please login or register to view this content. Registration is FREE
Brian07002 is offline
Reply With Quote
View Public Profile
 
Old 11-08-2011, 06:03 PM Re: Need alot of thought help...
Brian07002's Avatar
Defies a Status

Posts: 2,162
Name: ...
Location: ...
Trades: 0
Anyone have a solution to this category structure dilemma?
__________________
Made2Own

Please login or register to view this content. Registration is FREE
Brian07002 is offline
Reply With Quote
View Public Profile
 
Old 11-09-2011, 01:44 AM Re: Need alot of thought help...
lizciz's Avatar
Super Spam Talker

Posts: 807
Name: Mattias Nordahl
Location: Sweden
Trades: 0
From the lack of responses I think it's rather clear that people (I at least) don't really understand what you're really looking for. Your information is pretty vague and unclear. Try to explain it in a more contructive way. Also, what is this "ad manager script", what does it do and how do you use it? And how does the code that this ad manager generate look like?
__________________
Your answers will only be as good as your question. Formulate it well and give all the necessary information.
lizciz is offline
Reply With Quote
View Public Profile Visit lizciz's homepage!
 
Reply     « Reply to Need alot of thought help...
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.25761 seconds with 12 queries