Forums

PHP

This topic is locked

adding text to variables

Posted 16 Sep 2002 21:47:01
1
has voted
16 Sep 2002 21:47:01 Jason Baxter posted:
I'm using PHP, MySql, DreamweaverMX, and PHAkt 2. I want to add a comma (,) to the end of a variable, but only if it exists in the database. (Meaning I don't want a comma with no variable.) I seem to remember a format that didn't use an if/else statement that looked something like:
&lt;?php echo x<img src=../images/dmxzone/forum/icon_smile_dead.gif border=0 align=middle> $variable, \,) ?&gt;
The elements were similiar to returning a date with formatting:
&lt;?php echo DoDateTime( $current, 'l, F Js Y') ?&gt;
Can anyone help, or was this a dream?

Replies

Replied 18 Sep 2002 14:56:01
18 Sep 2002 14:56:01 Aurel Sorin Cirstoiu replied:
Hello,

Can you be more clear about it?

-----------------------
Cirstoiu Aurel Sorin
InterAKT Support
www.interakt.ro
-----------------------

Reply to this topic