Jump to content

need a script for 3 pages


fiddler80

Recommended Posts

I have a customer who wants me to set up a site with a number of pages with the following requirements:

 

Page A - which resides in a private directory so only he as access to it (this part is set up, btw) -needs to have a list of items on the page - along with a checkbox for each item.  When he checks a box, at his discretion, it will appear in a list on Page B so that until the box is checked, that item does not show on page B.

 

On Page B, the item will appear as a Name and Thumbnail graphic for that item, along with an abbreviated description of that item.  The Name, Thumbnail and "learn more..." at the end of the abbreviated description will all link to Page C, which will be a full description of the item, along with a couple of more pictures/graphics.

 

Both Page B and C will be visible to the public.

 

The items are categorized by type (such as restaurants, transportation, accommodations), and some of those items may appear in more than one category.  Page B would be considered the category page, so there will be a number of Page B's, as well as a number of Page C's (one for each item).

 

If an item is checked, it should already be cross-referenced by category so that if it falls into two different categories, it will appear an two different Page B's, according to category (something like if Holiday Inn was an item and he checked it, it would appear on the Page B for restaurants and also on Page B for accommodations).

 

Thanks much for any direction you can give me with this project.

 

 

Link to comment
https://forums.phpfreaks.com/topic/178515-need-a-script-for-3-pages/
Share on other sites

Oh, sorry.  I need a script as described above.  Can anyone point me in the direction where I can either learn how to build such a script, or is there anyone out there who knows where such a script exists?  If I have to build it from scratch, I guess I can, I just don't know how to get the checked info to appear on another page. 

 

Thanks kindly.

 

Yeah, you might have misinterpreted the description of this board. Its for help with php coding problems.

 

I'm not sure anyone is going to describe in detail how to do something as specific as you require, nor do I like your chances of finding something that specific either.

 

You'll likely need to hire someone to write it for you (we have a freelance board), or spend some time learning php and go from there.

Set up a table for your items, in this table you need to have columns for 'status',  'category' and 'id' (aswell as some others, thumb, description, etc.).

 

When an item is checked you should change the 'status' of the item from 0 to 1, on the private page do a query for status=0 and on the public pages to a query for status=1.

 

As for the 3rd page that's just a case of querying the db for the unique id as well as making sure the status=1.

 

I am no expert but this is how I would go about doing this.

 

 

 

 

Thanks, isedeasy,

Thanks exactly what I needed, someone to point me in the right direction.  I can build the scripts, I just couldn't see what I needed to do to make them all work together to get the results I required (forest for the trees kinda thing, I guess).

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.