![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: Jan 2004
Location: Nebraska
Posts: 4,344
|
PHP help please
heres the error
Parse error: parse error, unexpected T_ECHO, expecting ',' or ';' and here is the line "Free ", $myTxt[$pick], " E·Zine</span></a>\n"; how do i fix it? Thank you
__________________
NOOOOOOOOOOOOOOOOOOOOOOO-Darth Vader |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Feb 2004
Location: Vancouver, Canada
Posts: 7,662
|
CTR + ALT + DEL
Does this work still?
__________________
ICQ: 2262.73945 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Industry Role:
Join Date: Sep 2002
Location: In your mind
Posts: 3,766
|
google it..
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Industry Role:
Join Date: May 2003
Posts: 3,765
|
i think it needs to be "Free ". $myTxt[$pick]. " E·Zine</span></a>\n";
but i'm still an intermediate on PHP so i could be wrong
__________________
flexx [dot] aeon [at] gmail |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Join Date: Feb 2002
Location: Florida
Posts: 672
|
![]() You have to show the lines before and after it. No one can tell what you're trying to do in that one line.
__________________
- this space intentionally left blank - |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 | |
Confirmed User
Join Date: Jan 2004
Location: Nebraska
Posts: 4,344
|
Quote:
echo "<span style=\"font-size: 16pt; line-height: 120%; font-family: Times New Roman, Arial, Courier, sans-serif\">\n" echo "Free ", $myTxt[$pick], " E·Zine</span></a>\n"; echo "</div>\n";
__________________
NOOOOOOOOOOOOOOOOOOOOOOO-Darth Vader |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
So Fucking Banned
Join Date: Oct 2002
Location: MaxCash.com
Posts: 12,745
|
echo "<span style=\"font-size: 16pt; line-height: 120%; font-family: Times New Roman, Arial, Courier, sans-serif\">\n";
echo "Free ", $myTxt[$pick], " E·Zine</span></a>\n"; echo "</div>\n"; |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
Sofa King Band
Join Date: Jul 2002
Location: Outside the box
Posts: 29,903
|
echo "<span style=\"font-size: 16pt; line-height: 120%; font-family: Times New Roman, Arial, Courier, sans-serif\">\n";
echo "Free ", $myTxt[$pick], " E·Zine</span></a>\n"; echo "</div>\n"; You're missing the ; after the first line. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
Confirmed User
Join Date: Jan 2004
Location: Nebraska
Posts: 4,344
|
Thank you damian and Stuart.
__________________
NOOOOOOOOOOOOOOOOOOOOOOO-Darth Vader |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 |
Confirmed User
Join Date: Feb 2002
Location: Florida
Posts: 672
|
didn't mean to be rude. but it is helpful to see more than just one line. glad the problem is fixed
![]()
__________________
- this space intentionally left blank - |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 | |
Confirmed User
Join Date: Jan 2004
Location: Nebraska
Posts: 4,344
|
Quote:
![]()
__________________
NOOOOOOOOOOOOOOOOOOOOOOO-Darth Vader |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 |
Confirmed User
Industry Role:
Join Date: Dec 2003
Location: City... City of Satan
Posts: 2,651
|
It's easier and a lot cleaner to break out of the php and then use short hand for echoing it out
<?=$blah?> That way you don't have to escape a ton of " marks. <span style="font-size: 16pt; line-height: 120%; font-family: Times New Roman, Arial, Courier, sans-serif"> Free <?=$myTxt[$pick]?> E·Zine</span></a> </div> |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#13 | |
Confirmed User
Join Date: Apr 2004
Location: Toronto, ON
Posts: 1,706
|
Quote:
Try this as was suggested above: echo "Free ".$myTxt[$pick]."E·Zine</span></a>\n";
__________________
![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#14 |
Confirmed User
Industry Role:
Join Date: Jun 2004
Location: New York, NY
Posts: 6,890
|
Forget echoing html ever again. Start doing this NOW, you'll thank me in the future
![]() Use Smarty - a templating engine for PHP. http://smarty.php.net/
__________________
Skype variuscr - Email varius AT gmail |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#15 |
Confirmed User
Join Date: Jan 2004
Location: Nebraska
Posts: 4,344
|
what about this one?
if (stristr($_SERVER["SERVER_SOFTWARE"], "apache") !hahahaha false) include( "http://" . $_SERVER["SERVER_NAME"] . "/scripts/febfpa2link.html" ); ?>
__________________
NOOOOOOOOOOOOOOOOOOOOOOO-Darth Vader |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#16 | |
Sofa King Band
Join Date: Jul 2002
Location: Outside the box
Posts: 29,903
|
Quote:
Don't... it's just != example: Code:
if (stristr($_SERVER["SERVER_SOFTWARE"], "apache") != false) include( "http://" . $_SERVER["SERVER_NAME"] . "/scripts/febfpa2link.html" ); |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#17 |
Strength and Honor
Join Date: Jul 2004
Location: Europe
Posts: 16,540
|
alt + 4 should work
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#18 | |
Confirmed User
Join Date: Jan 2004
Location: Nebraska
Posts: 4,344
|
Quote:
__________________
NOOOOOOOOOOOOOOOOOOOOOOO-Darth Vader |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#19 |
Confirmed User
Join Date: Jan 2004
Location: Nebraska
Posts: 4,344
|
Hey Stuart, please icq me if you can. 172768566
__________________
NOOOOOOOOOOOOOOOOOOOOOOO-Darth Vader |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#20 | |
Sofa King Band
Join Date: Jul 2002
Location: Outside the box
Posts: 29,903
|
Quote:
![]() ICQ sent ![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |