Go Back   Novahq.net Forum > Computers > Web design and Programming
FAQ Community Calendar Today's Posts Search

Web design and Programming Discuss website creation and other programming topics.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 05-31-2004, 10:42 PM
atholon is offline atholon
"ath-hole"

Join Date: Jan 2003
Location: Failville.
Posts: 11,357

Send a message via MSN to atholon
Coding Error?

What is wrong? hmm

<?php
$user=1
If ($user == 1)
{
include ("./index1.php");
}
If ($user != 1)
{
include ("./admin.php");
}
?>
__________________
Reply With Quote
  #2  
Old 05-31-2004, 11:00 PM
Scott is offline Scott
Scott's Avatar
AKA. Panther

Join Date: Sep 2001
Location: Minneapolis, MN
Posts: 10,968

Re: Coding Error?

Quote:
Originally posted by atholon
What is wrong? hmm

<?php
$user=1
If ($user == 1)
{
include ("./index1.php");
}
If ($user != 1)
{
include ("./admin.php");
}
?>
$user="1";
__________________

04' Dodge SRT-4, Mopar Stage 3, 406whp/436wtq
Reply With Quote
  #3  
Old 06-01-2004, 02:28 PM
atholon is offline atholon
"ath-hole"

Join Date: Jan 2003
Location: Failville.
Posts: 11,357

Send a message via MSN to atholon
ahh, stupid php, yah don't have to do that in C++
__________________
Reply With Quote
  #4  
Old 06-01-2004, 02:32 PM
atholon is offline atholon
"ath-hole"

Join Date: Jan 2003
Location: Failville.
Posts: 11,357

Send a message via MSN to atholon
Wasn't it lol, it as a missing ; after the $user=1

This works:
<?php
$user=1;
If ($user == 1)
{
include ("./index1.php");
}
If ($user != 1)
{
include ("./admin.php");
}
?>
__________________
Reply With Quote
  #5  
Old 06-02-2004, 04:27 AM
SilentTrigger is offline SilentTrigger
-1PARA-

Join Date: Sep 2002
Location: Sweden
Posts: 3,972

Re: Re: Coding Error?

Quote:
Originally posted by atholon
Wasn't it lol, it as a missing ; after the $user=1
Quote:
Originally posted by Panther
$user="1";
__________________
-1PARA-AlexKall

My photography website



Reply With Quote
  #6  
Old 06-02-2004, 09:10 AM
atholon is offline atholon
"ath-hole"

Join Date: Jan 2003
Location: Failville.
Posts: 11,357

Send a message via MSN to atholon
Hehehe duh....I was kidding get it straight bro.
__________________
Reply With Quote
  #7  
Old 06-02-2004, 02:22 PM
SilentTrigger is offline SilentTrigger
-1PARA-

Join Date: Sep 2002
Location: Sweden
Posts: 3,972

Sorry just didnt seem like a "joke"
__________________
-1PARA-AlexKall

My photography website



Reply With Quote
  #8  
Old 06-02-2004, 02:28 PM
atholon is offline atholon
"ath-hole"

Join Date: Jan 2003
Location: Failville.
Posts: 11,357

Send a message via MSN to atholon
If you knew me yah'd know it was
__________________
Reply With Quote
  #9  
Old 06-03-2004, 04:08 PM
SilentTrigger is offline SilentTrigger
-1PARA-

Join Date: Sep 2002
Location: Sweden
Posts: 3,972

Roger that!
__________________
-1PARA-AlexKall

My photography website



Reply With Quote
  #10  
Old 06-10-2004, 03:53 AM
King is offline King
Registered User

Join Date: Jun 2004
Posts: 111

it was only the ; that was missing yes.
read on php.net what the difference is between a number with "" and without
__________________
www.sourcefreaks.com




Reply With Quote
  #11  
Old 06-16-2004, 09:06 AM
atholon is offline atholon
"ath-hole"

Join Date: Jan 2003
Location: Failville.
Posts: 11,357

Send a message via MSN to atholon
well why?
__________________
Reply With Quote
Reply


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
installing DFBHD, I get an error, “An error occurred during the move data process.” Steve Delta Force 1 01-09-2007 04:54 AM
Coding Sgt Eagle Web design and Programming 1 10-27-2006 10:05 AM
Coding Sgt Eagle Sigs and Graphics 4 12-19-2005 10:33 AM
Coding GeeFuss Web design and Programming 14 04-22-2005 04:14 PM
Coding careless phphq.Net Forums 0 11-29-2004 11:56 AM


All times are GMT -5. The time now is 08:09 PM.




Powered by vBulletin®