Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiple Queries

Status
Not open for further replies.

digatle

Technical User
Joined
Oct 31, 2003
Messages
85
Location
US
I'm trying to code our Intranet's homepage to be a little more dynamic rather than having multiple home pages. I'm trying to find out to what direction do I start looking at when coding this. Here's what I have:

We use MT (Movabletype). We have our sections setup and we have categories under it. We have 6 main sections and multiple categories under it.

I want to code our homepage to look at a dropdown menu. If you are looking at say section #1 I want to list all of #1's categories. If you look at say #1-#58 how does that code out?

Does this make any since? Basically the home page to everyone's going is going to look the same but the colors are going to be different (already figured that part out).

Digatle
 
I don't understand what you need then to be able to answer this question!

I'll try it like this.

I have 2 variables:

$siteID
$siteDepartment

$siteID has 6 known variables:

B, O, MS, F, M & CD

These are represented on the page at
B = Breakroom
O = Operations
MS = Member Services
F = Finance
M = Marketing
CD = Corporate Development

Under each of these are a list of other groups passed through as #'s ranging from 1 - 520.

I'm trying to figure out how to pass the $siteID and $siteDepartment through the browser so I can have 1 page rather than 520+ pages. Like the following:


This then makes my index page look like Finance (using finance colors) and using includes show me the 153 menu. How do I code my index.php page to allow this type of get?

Digatle
 
I have not accomplished this. The page does NOT do this. How do I program the page TO do this. Here's my homepage code:

====================================

<?php
// global variables
require('/var/
// define page type (home or blocks)
$pageType = &quot;home&quot;;
$siteID = O;

// define block information if applicable
$blockTitle = &quot;Holiday&quot;;

// define home information if applicable
$siteDepartment = O1;
// $siteTitle = 'Merry Christmas';

// start page creation
include(FS_WEB_ROOT.$pageType.&quot;.php&quot;);

// BEGIN YOUR CONTENT
?>

Merry Christmas to all and to all a good night.

<?php
// END YOUR CONTENT


// end page creation
include(FS_WEB_ROOT.&quot;includes/&quot;.$pageType.&quot;/footer.php&quot;);
?>

====================================
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top