Jump to content


Photo

Using symbols


  • Please log in to reply
1 reply to this topic

#1 ddotdukes

ddotdukes
  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 20 June 2006 - 06:55 PM

Here is my line of code:

<?php echo $row_rsEvent['Name'],[:],$row_rsEvent['Date'], $row_rsEvent['Time']?>

Is there a way to put symbol in between the data. What I would like to have is something like :: or || betweem the data.

#2 obsidian

obsidian
  • Staff Alumni
  • Advanced Member
  • 3,202 posts
  • LocationSeattle, WA

Posted 20 June 2006 - 07:42 PM

[!--quoteo(post=386120:date=Jun 20 2006, 02:55 PM:name=ddotdukes)--][div class=\'quotetop\']QUOTE(ddotdukes @ Jun 20 2006, 02:55 PM) View Post[/div][div class=\'quotemain\'][!--quotec--]
Here is my line of code:

<?php echo $row_rsEvent['Name'],[:],$row_rsEvent['Date'], $row_rsEvent['Time']?>

Is there a way to put symbol in between the data. What I would like to have is something like :: or || betweem the data.
[/quote]

just use quotes instead of the brackets:
<?php
echo $row_rsEvent['Name'] . ':' . $row_rsEvent['Date'] . ':' . $row_rsEvent['Time'];
?>

You can't win, you can't lose, you can't break even... you can't even get out of the game.

<?php
while (count($life->getQuestions()) > 0)
{   $life->study(); } ?>
  LINKS: PHP: Manual MySQL: Manual PostgreSQL: Manual (X)HTML: Validate It! CSS: A List Apart | IE bug fixes | Zen Garden | Validate It! JavaScript: Reference Cards RegEx: Everything RegEx




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users