Jump to content

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
Link to comment
https://forums.phpfreaks.com/topic/10152-php-and-css/
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.
Link to comment
https://forums.phpfreaks.com/topic/10152-php-and-css/#findComment-37838
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
Link to comment
https://forums.phpfreaks.com/topic/10152-php-and-css/#findComment-37843
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.