Jump to content

PHP and CSS


harlequin2k6

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
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]
Link to comment
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
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.