Jump to content

Archived

This topic is now archived and is closed to further replies.

harlequin2k6

PHP and CSS

Recommended Posts

so this would be the line of code I'm talking about:
[code]  echo "<li>" . $row['BoardMemberName'] . $row['BoardMemberTerm'] . $row['BoardMemberElection'] . "</li>";
[/code]
and if you look at this [a href=\"http://test.suncoastusbcba.org/board.php\" target=\"_blank\"]page[/a] you'll see what I mean about wanting to format it - there's no spacing between any of the fields so unless you know what it is that you're reading it's really not going to make any sense

any help would be greatly appreciated

Share this post


Link to post
Share on other sites
can you format your question a little clearer? I have no idea what your talking about.

Share this post


Link to post
Share on other sites
the value of $row['...'] is just like, text right? so wouldn't you just be applying normal css rules to it, like to your <li> tags or something? maybe throw in a br tag in your loop? i don't really see how this is a php question. yes, be more specific in your question.

Share this post


Link to post
Share on other sites
For example, this would add spaces between the fields. What you do is up to you:
[code]echo "<li>" . $row['BoardMemberName'] . "  ". $row['BoardMemberTerm'] . "  ".$row['BoardMemberElection'] . "</li>";[/code]

Share this post


Link to post
Share on other sites
I apologize that my question was so unclear...my inexperience with php is really causing me some trouble...I even tried to go through the explanation again and couldn't make it come out any clearer [img src=\"style_emoticons/[#EMO_DIR#]/huh.gif\" style=\"vertical-align:middle\" emoid=\":huh:\" border=\"0\" alt=\"huh.gif\" /]

but this is what I finally came up with which is what I was looking for

[code]echo "<div class=\"boardmembername\">" . $row['BoardMemberName'] . "</div>" . "<div class=\"boardmemberterm\">" . $row['BoardMemberTerm'] . "</div>" . "<div class=\"boardmemberelection\">" . $row['BoardMemberElection'] . "</div>";
[/code]

I was not grasping the fact that the "." is a string concantenator (sp?)

all that I was trying to achieve can been seen here with the [a href=\"http://test.suncoastusbcba.org/board.php\" target=\"_blank\"]"Directors"[/a] section

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.