|
Web design and Programming Discuss website creation and other programming topics. |
![]() |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
||
|
Coding Error?
What is wrong? hmm
<?php $user=1 If ($user == 1) { include ("./index1.php"); } If ($user != 1) { include ("./admin.php"); } ?>
__________________
![]() ![]() ![]() ![]() |
#2
|
|||
|
Re: Coding Error?
Quote:
__________________
![]() 04' Dodge SRT-4, Mopar Stage 3, 406whp/436wtq |
#3
|
||
|
ahh, stupid php, yah don't have to do that in C++
__________________
![]() ![]() ![]() ![]() |
#4
|
||
|
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"); } ?>
__________________
![]() ![]() ![]() ![]() |
#5
|
||||
|
Re: Re: Coding Error?
Quote:
Quote:
|
#6
|
||
|
Hehehe duh....I was kidding get it straight bro.
__________________
![]() ![]() ![]() ![]() |
#7
|
||
|
Sorry just didnt seem like a "joke"
|
#8
|
||
|
If you knew me yah'd know it was
![]()
__________________
![]() ![]() ![]() ![]() |
#9
|
||
|
Roger that!
|
#10
|
||
|
it was only the ; that was missing yes.
read on php.net what the difference is between a number with "" and without ![]() |
#11
|
||
|
well why?
__________________
![]() ![]() ![]() ![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
![]() |
||||
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 |