PDA

View Full Version : menu issues?


student101
07-12-2008, 10:30 AM
I am knocking my head trying to find a solution to my query, queries or design.
I have a few tables:
category:
- id (primary key)
- catname
images:
- id (primary key)
- name
- thumb
- imgcode
- catid (foreign key to category)
linkedimages: (linked to images)
- id (primary key)
- name
- thumb
- imgcode
- catid (foreign key to category)
- imgid (foreign key to images)

--------
What I am trying to achieve:
--------
Have three menus to show one image.
On the left have the repeated categories as a menu.
On the top have the repeated thumbnails as a menu.
On the bottom have the repeated thumbnails linking to images as a menu.

In the middle one big image that gets displayed after clicking on the top or bottom nav.

Any idea how could achieve this?
Cheers

student101
07-12-2008, 09:58 PM
I may have solved it;
Using the image name in the URL param...
?catid=1&img=image1.jpg&id=1
and the image get the correct URL value, ie: img=
<img src="<?php echo 'images/'.$_GET['img']; ?>" width="200" height="200" />

Well it works, so I think that's it.

Cheers

student101
07-13-2008, 09:08 PM
Now that I have this idea created, very odd but cool nevertheless.

If I wanted "for arguments sake" to add a wishlist system,
could/would it be easier to have a registration - login system, or have a complete cart system?

Cheers

davidj
07-13-2008, 09:27 PM
wish lists can be cookie driven or login driven

you could have a remember me feature which uses both

student101
07-13-2008, 09:35 PM
If you or any other user wanted to add an item to their wishlist,
wouldn't a login feature be better for future as well?

In my opinion, a register - login system (It's what I understand due to my lack of cookie knowledge)

davidj
07-13-2008, 09:39 PM
yes

to store the favs in a db would be the best way

student101
07-13-2008, 09:41 PM
Thanks, it seems safer for me.
Also wiery of cookies in that not all machines allow/store them.

Cheers

davidj
07-13-2008, 09:44 PM
my thoughts were when they login after registering they can check a box which sets a cookie

like this forum

so they dont have to keep logging in

student101
07-13-2008, 09:47 PM
That sound even cooler - will have to get some tuts on that
Thanks.