HTML to guildinfo.php

Here you can find plenty of help with your general coding needs and projects
If it is about a specific program, use the corresponding forum
DO NOT ask basic questions such as "How do I print a variable", use Google for that

HTML to guildinfo.php

Postby RemyXO » Mon Feb 25, 2008 11:10 am

I had commented out the guild info box and wanted to add my own HTML in to it, but i keep getting an syntax error.

Parse error: syntax error, unexpected T_STRING, expecting ',' or ';'


I do not know too much about PHP, is there someone here able to assist me with this? Any help or tips would be appreciated. Thank you. :D

include_once (ROSTER_BASE.'lib/menu.php');


/******************************
* if( !empty($GuildInfo) )
* {
* print border('syellow','start',$wordings[$roster_conf['roster_lang']]['Guild_Info']).'<div class="GuildInfoText">'.nl2br($GuildInfo).'</div>'.border('syellow','end');
* }
******************************/


echo '
I'm trying to add HTML in here.

and here

and here and so on

';

include_once(ROSTER_BASE.'roster_footer.tpl');
?>
Last edited by RemyXO on Mon Feb 25, 2008 11:12 am, edited 1 time in total.
User avatar
RemyXO
WR.net Apprentice
WR.net Apprentice
 
Posts: 5
Joined: Sat Feb 16, 2008 7:44 am

HTML to guildinfo.php

Postby zanix » Mon Feb 25, 2008 11:31 am

To make it easy on you, I would suggest this
Code: Select all
<?php
include_once (ROSTER_BASE.'lib/menu.php');


/******************************
* if( !empty($GuildInfo) )
* {
* print border('syellow','start',$wordings[$roster_conf['roster_lang']]['Guild_Info']).'<div class="GuildInfoText">'.nl2br($GuildInfo).'</div>'.border('syellow','end');
* }
******************************/


?>
I'm trying to add HTML in here.

and here

and here and so on
<?php

include_once(ROSTER_BASE.'roster_footer.tpl');
?>


Putting stuff between ?> and <?php kicks it out of php mode and prints as is
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5543
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

HTML to guildinfo.php

Postby RemyXO » Mon Feb 25, 2008 8:12 pm

Thank you Zanix, you're a great help!
User avatar
RemyXO
WR.net Apprentice
WR.net Apprentice
 
Posts: 5
Joined: Sat Feb 16, 2008 7:44 am


Return to General Code Help

Who is online

Users browsing this forum: No registered users and 0 guests