28, May 2012

Hlep - Need a line break in PHP - webmaster forum

 
Webdigity webmaster forums
[ 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
Instabuck - The easy way to sell digital products online

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



« on: Jan 11, 2007, 04: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: 5799
46391 credits
Members referred : 3



« Reply #1 on: Jan 11, 2007, 04: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 or twitter

Last blog : Butterfly Marketing 2.0
World Wide Whale
***
Gender: Female
Posts: 154
1052 credits
Members referred : 0



« Reply #2 on: Jan 11, 2007, 04: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: 5799
46391 credits
Members referred : 3



« Reply #3 on: Jan 11, 2007, 04: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 or twitter

Last blog : Butterfly Marketing 2.0
World Wide Whale
***
Gender: Female
Posts: 154
1052 credits
Members referred : 0



« Reply #4 on: Jan 11, 2007, 05: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....

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?
May 28, 2012, 07:37:39 pm





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!






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