![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Programmer
|
i get this error:
Parse error: parse error, unexpected '}' in C:\Program Files\Apache Group\Apache2\htdocs\Name.php on line 4 this is the beginning of the script: 1. <?php 2. if ( isset ( $name ) ) { 3. print "<h1>".$name."</h1>" 4. } else { 5. print "<h1>"."Hello! Type in your name!"."</h1>" 6. } 7. ?> whats wrong |
|
|
|
|
|
#2 |
|
Programming Guru
![]() ![]() ![]() |
You have to have ; after your prints...
<?php
if ( isset ( $name ) )
{
print "<h1>".$name."</h1>";
}
else
{
print "<h1>"."Hello! Type in your name!"."</h1>";
}
?>
__________________
http://jasonpowers.net "There are a thousand hacking at the branches of evil to one who is striking at the root." |
|
|
|
|
|
#3 |
|
Programmer
|
:huh: infinite, do me a favor.
Next time im this retarded, slap me. thanks |
|
|
|
|
|
#4 |
|
Programming Guru
![]() ![]() ![]() |
10 4... but only if i can use a baseball bat.
![]()
__________________
http://jasonpowers.net "There are a thousand hacking at the branches of evil to one who is striking at the root." |
|
|
|
|
|
#5 |
|
Programming Guru
![]() |
lol, an anoying but happens error
![]()
__________________
"Put your hand on a hot stove for a minute, and it seems like an hour. Sit with a pretty girl for an hour, and it seems like a minute. THAT'S relativity." - Albert Einstein |
|
|
|
|
|
#6 |
|
Programming Guru
![]() ![]() ![]() |
Of course, happens ALL of the time to me in C++... and I've been coding for yearrrrrrrrrrrrrs.
__________________
http://jasonpowers.net "There are a thousand hacking at the branches of evil to one who is striking at the root." |
|
|
|
|
|
#7 |
|
Programming Guru
![]() ![]() |
heh, don't feel bad Berto, everybody does it.
__________________
Profanity is the one language that all programmers understand. Check out my Blog <---updated Nov 30 2007! |
|
|
|
|
|
#8 |
|
Programming Guru
![]() |
I dont wasnt my error
, My errors are normally so ridiculous that they make no sense
__________________
"Put your hand on a hot stove for a minute, and it seems like an hour. Sit with a pretty girl for an hour, and it seems like a minute. THAT'S relativity." - Albert Einstein |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|