![]() |
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 |
CTR + ALT + DEL
Does this work still? |
google it..
|
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 |
:1orglaugh
You have to show the lines before and after it. No one can tell what you're trying to do in that one line. |
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"; |
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"; |
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. |
Thank you damian and Stuart.
|
didn't mean to be rude. but it is helpful to see more than just one line. glad the problem is fixed :thumbsup
|
Quote:
|
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> |
Quote:
Try this as was suggested above: echo "Free ".$myTxt[$pick]."E·Zine</span></a>\n"; |
Forget echoing html ever again. Start doing this NOW, you'll thank me in the future :winkwink:
Use Smarty - a templating engine for PHP. http://smarty.php.net/ |
what about this one?
if (stristr($_SERVER["SERVER_SOFTWARE"], "apache") !hahahaha false) include( "http://" . $_SERVER["SERVER_NAME"] . "/scripts/febfpa2link.html" ); ?> |
Quote:
Don't... it's just != example: Code:
if (stristr($_SERVER["SERVER_SOFTWARE"], "apache") != false) |
alt + 4 should work
|
Quote:
|
Hey Stuart, please icq me if you can. 172768566
|
Quote:
ICQ sent :glugglug |
All times are GMT -7. The time now is 06:35 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123