grab motd, put in text form on another page

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

Re: grab motd, put in text form on another page

Postby derangedtaco » Sun Dec 03, 2006 5:52 pm

edit: Solved
Last edited by derangedtaco on Wed Dec 06, 2006 11:56 am, edited 1 time in total.
derangedtaco
WR.net Apprentice
WR.net Apprentice
 
Posts: 39
Joined: Fri Nov 24, 2006 12:24 am

Re: grab motd, put in text form on another page

Postby derangedtaco » Wed Dec 06, 2006 12:08 pm

ok.

i am trying to have the guild notes show.

i use the same source, but instead of printing guild_motd, i have it print guild_info_text (looked in the tables). unfortunately.....when i try to test it out nothing prints. ???
derangedtaco
WR.net Apprentice
WR.net Apprentice
 
Posts: 39
Joined: Fri Nov 24, 2006 12:24 am

Re: grab motd, put in text form on another page

Postby derangedtaco » Fri Dec 08, 2006 5:57 am

plz...help... :neutral:
derangedtaco
WR.net Apprentice
WR.net Apprentice
 
Posts: 39
Joined: Fri Nov 24, 2006 12:24 am

grab motd, put in text form on another page

Postby zanix » Fri Dec 08, 2006 1:20 pm

I think that guild info has to be html converted before displaying it

Try editing the line that says
Code: Select all
echo $row['guild_motd']; 

To this
Code: Select all
echo nl2br($row['guild_info_text']); 
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

Re: grab motd, put in text form on another page

Postby derangedtaco » Fri Dec 08, 2006 3:25 pm

zanix wrote:I think that guild info has to be html converted before displaying it

Try editing the line that says
Code: Select all
echo $row['guild_motd']; 

To this
Code: Select all
echo nl2br($row['guild_info_text']); 

thx

thought it wasnt working, then i realized that i also had to change
Code: Select all
$query = sprintf("SELECT `guild_info_text` FROM `roster_guild` WHERE

thank you so much for all of your help!!
derangedtaco
WR.net Apprentice
WR.net Apprentice
 
Posts: 39
Joined: Fri Nov 24, 2006 12:24 am

grab motd, put in text form on another page

Postby zanix » Fri Dec 08, 2006 3:27 pm

Yep, that would do it as well
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

Previous

Return to General Code Help

Who is online

Users browsing this forum: No registered users and 0 guests

cron