5, December 2008

Hlep - Need a line break in PHP - webmaster forum

 
Webdigity webmaster forums
This forum shares its ad revenue with its members!
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  PhP
Topic: Hlep - Need a line break in PHP
« previous next »
Pages: [1] Print

Author Topic: Hlep - Need a line break in PHP  (Read 434 times)
World Wide Whale
***
Gender: Female
Posts: 153
1042 credits
Members referred : 0



« on: Jan 11, 2007, 05:24:14 PM »

OK, I won't go into the entire code, but I need a line break in between each one of the links this PHP code is making.  How do I do that?!   I am so confused....

Code:
<?
// WRITE OUT SWITCHER LINKS
while(list($key, $val) = each($styleSheets)){
echo "<a href='styleswitcher.php?SETSTYLE=".$key."'  title='".$val["title"]."'>".$val["text"]."</a>";
}
?>

As of right now I am getting....
Code:
<a href='styleswitcher.php?SETSTYLE=0' title='Click here to set the original style'>Original Native American Style</a><a href='styleswitcher.php?SETSTYLE=1' title='Click here to set Autumn 2006'>Autumn 2006 Style</a><a href='styleswitcher.php?SETSTYLE=2' title='Click here to set Winter 2006/07'>Winter 2006/07 Style</a><a href='styleswitcher.php?SETSTYLE=3' title='Click here to set Dial Up - Quick Load Stlye'>Dial Up - Quick Load Style</a>
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 8272
42619 credits
Members referred : 3



« Reply #1 on: Jan 11, 2007, 05:25:17 PM »

What about :

// WRITE OUT SWITCHER LINKS
while(list($key$val) = each($styleSheets)){
echo 
"<a href='styleswitcher.php?SETSTYLE=".$key."'  title='".$val["title"]."'>".$val["text"]."</a><br />";
}

Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy or twitter Visit through proxy

Last blog : Free Unlimited Bandwith and disk space to good to be true?
World Wide Whale
***
Gender: Female
Posts: 153
1042 credits
Members referred : 0



« Reply #2 on: Jan 11, 2007, 05:27:21 PM »

I thought I had tried that, but I must have had something a little off.  I feel kinda silly - but I guess that's what you get when you are learning!
Thanks again!!!
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 8272
42619 credits
Members referred : 3



« Reply #3 on: Jan 11, 2007, 05:58:34 PM »

Hey there aren't silly questions, only silly answers, so you don't have to worry about anything Smiley

Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy or twitter Visit through proxy

Last blog : Free Unlimited Bandwith and disk space to good to be true?
World Wide Whale
***
Gender: Female
Posts: 153
1042 credits
Members referred : 0



« Reply #4 on: Jan 11, 2007, 06:00:07 PM »

Thanks.
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=5576
Tags : PHP Line Breaks Bookmark this thread : Digg Del.icio.us Dzone more....

Topic sponsors:
Get a permanent link here for $1.99!


Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  PhP
Topic: Hlep - Need a line break in PHP
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
Dec 05, 2008, 05:47:43 AM





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!


Forum Statistics
Total Posts: 37.995
Total Topics: 7.685
Total Members: 4.468
Tutorials : 56
Resources : 143
Designs : 220
Latest Member: sansthaa

27 Guests, 4 Users online :

10 users online today:



Readers

Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2008 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.