adding text to variables

From: Date: Mon, 16 Sep 2002 19:44:10 +0000
Subject: adding text to variables
Groups: php.general 
Request: Send a blank email to php-general+get-116563@lists.php.net to get a copy of this message
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: <?php echo xxx( $variable, \,) ?> The elements were similiar to returning a date with formatting: <?php echo DoDateTime( $current, 'l, F Js Y') ?> Can anyone help, or was this a dream?

« previous php.general (#116563) next »