Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,471
There are 1584 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     Programming     PHP and MySQL :

If Statements

Thread title: If Statements
Closed Thread  
Page 2 of 3 < 1 2 3 >
    Thread tools Search this thread Display Modes  
05-21-2008, 07:04 PM
#11
Jako is offline Jako
Jako's Avatar
Status: Jakowenko.com
Join date: Jun 2005
Location: Michigan
Expertise:
Software:
 
Posts: 2,199
iTrader: 3 / 100%
 

Jako is on a distinguished road

  Old

As soon as I add the code to the header page with the if and else if. Nothing loads on the page.

To be a bit more specific...

If you go to http://secure.brius.com/knowledgebase.php

Can you see the greyish bar that has Overview....etc, FAQ.

Those image links are included in the header of this script and I need to add a <strong> tag to the FAQ link when the user is on that page.

When they go to the order page, I then need to add a <strong> tag to the Order link and remove the tag from the FAQ.

Make a bit more sense lol

05-21-2008, 07:06 PM
#12
Village Genius is offline Village Genius
Village Genius's Avatar
Status: Geek
Join date: Apr 2006
Location: Denver, CO
Expertise: Software
Software: Chrome, Notepad++
 
Posts: 6,894
iTrader: 18 / 100%
 

Village Genius will become famous soon enough

  Old

Can I see the entire pages code?

05-21-2008, 07:10 PM
#13
Jako is offline Jako
Jako's Avatar
Status: Jakowenko.com
Join date: Jun 2005
Location: Michigan
Expertise:
Software:
 
Posts: 2,199
iTrader: 3 / 100%
 

Jako is on a distinguished road

  Old

Originally Posted by Village Idiot View Post
Can I see the entire pages code?
Updated post above with more info

05-21-2008, 07:14 PM
#14
Village Genius is offline Village Genius
Village Genius's Avatar
Status: Geek
Join date: Apr 2006
Location: Denver, CO
Expertise: Software
Software: Chrome, Notepad++
 
Posts: 6,894
iTrader: 18 / 100%
 

Village Genius will become famous soon enough

  Old

You may have to change your initial page extensions to .php, not all servers send .html pages though the PHP parser.

05-21-2008, 07:18 PM
#15
Jako is offline Jako
Jako's Avatar
Status: Jakowenko.com
Join date: Jun 2005
Location: Michigan
Expertise:
Software:
 
Posts: 2,199
iTrader: 3 / 100%
 

Jako is on a distinguished road

  Old

I did change the ones you gave me to .php. Do you want me to just send you the files and I'll give you some money via paypal if you can get it to work. I feel bad that your taking your time to help

05-21-2008, 07:19 PM
#16
Village Genius is offline Village Genius
Village Genius's Avatar
Status: Geek
Join date: Apr 2006
Location: Denver, CO
Expertise: Software
Software: Chrome, Notepad++
 
Posts: 6,894
iTrader: 18 / 100%
 

Village Genius will become famous soon enough

  Old

Is the variable set before the include command?

05-21-2008, 07:20 PM
#17
Jako is offline Jako
Jako's Avatar
Status: Jakowenko.com
Join date: Jun 2005
Location: Michigan
Expertise:
Software:
 
Posts: 2,199
iTrader: 3 / 100%
 

Jako is on a distinguished road

  Old

Originally Posted by Village Idiot View Post
Is the variable set before the include command?
No it is not. I don't know if I can set it before. Because the header file is always the first thing included on the page.

05-21-2008, 07:21 PM
#18
Village Genius is offline Village Genius
Village Genius's Avatar
Status: Geek
Join date: Apr 2006
Location: Denver, CO
Expertise: Software
Software: Chrome, Notepad++
 
Posts: 6,894
iTrader: 18 / 100%
 

Village Genius will become famous soon enough

  Old

You can, PHP includes files when commanded to. Otherwise the code being ran won't get the variable's value because it hasn't been set.

05-21-2008, 07:22 PM
#19
Jako is offline Jako
Jako's Avatar
Status: Jakowenko.com
Join date: Jun 2005
Location: Michigan
Expertise:
Software:
 
Posts: 2,199
iTrader: 3 / 100%
 

Jako is on a distinguished road

  Old

How would I go about adding the variable tag before then.

05-21-2008, 07:23 PM
#20
Village Genius is offline Village Genius
Village Genius's Avatar
Status: Geek
Join date: Apr 2006
Location: Denver, CO
Expertise: Software
Software: Chrome, Notepad++
 
Posts: 6,894
iTrader: 18 / 100%
 

Village Genius will become famous soon enough

  Old

PHP Code:
<?php
$page 
"page.html";
include 
"header.php";
?>

Closed Thread  
Page 2 of 3 < 1 2 3 >


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed