So I am really cornfused about the include function.
If I use the include function to make my code readable and neat where
does the included code go. For instance:
if (some variable){
include(page.php);
}
Does the code go into the current page where the include statement is
located on the pa
What is it that you are trying to accomplish? Normally no if statement is
needed for an include to take place unless a certain condition triggers the use
of the include.
Sent via BlackBerry from T-Mobile
-Original Message-
From: Matthew Gonzales <[EMAIL PROTECTED]>
Date: Fri, 09 May 200
Your code would essentially be "inserted" in the place where your include
statement is called. Let's say that your in 'page.php' you had the
following code:
echo "I AM IN PAGE.PHP!";
and then in your script you have your code:
if (some variable) {
include('page.php');
}
This would essenti
On 9 May 2008, at 18:56, Bradley Stahl wrote:
Your code would essentially be "inserted" in the place where your
include
statement is called. Let's say that your in 'page.php' you had the
following code:
echo "I AM IN PAGE.PHP!";
and then in your script you have your code:
if (some variable)