The Cache: Technology Expert's Forum
 
*
Welcome, Guest. Please login or register. September 19, 2019, 02:05:51 PM

Login with username, password and session length


Pages: [1]
  Print  
Author Topic: stuck at this ... little help please  (Read 1425 times)
NYDAz
Expert
****
Offline Offline

Posts: 212

The Night Stalker


View Profile
« on: September 21, 2009, 04:29:43 PM »

I've managed to create some sites with my new CMS

What I want to do is like this ....

Example :

I have 3 categories : Notebooks, Monitors, Scanners

And let's say I have 1 product - Dell Inspiron XXX which is in the Notebooks category !

On the page with the Dell Inspiron, I display the category which is from - Notebooks !

On the products pages I want to display all products from the respectives categories !

For example on the page with Dell Inspiron XXX I want to display all the products listed in the Notebooks category with a PHP include !

But how can I do this ... something like this is good to start ?

ON THE PRODUCT'S PAGE : If the category name = Notebooks then include this file else display nothing ....

 Violin

Ideas are appreciated !
Logged

what's up?
kurdt
Lifer
*****
Offline Offline

Posts: 1153


paha arkkitehti


View Profile
« Reply #1 on: September 21, 2009, 11:44:43 PM »

I'm not sure if I understand correctly but isn't this completely dependent of the way you have done your CMS? I mean if all your information is in MySQL db, then it's a simple query right? Do you have a template engine or does it generate everything on-the-fly?
Logged

I met god and he had nothing to say to me.
arms
Expert
****
Offline Offline

Posts: 235



View Profile
« Reply #2 on: September 22, 2009, 07:35:10 AM »

without knowing the cms you are using, or your schema if it a custom one - we can't help you.

Logged
Pages: [1]
  Print  
 
Jump to:  

Perkiset's Place Home   Best of The Cache   phpMyIDE: MySQL Stored Procedures, Functions & Triggers
Politics @ Perkiset's   Pinkhat's Perspective   
cache
mart
coder
programmers
ajax
php
javascript
Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS!