View Single Post
Old 03-26-2014, 01:42 PM  
mkx
Confirmed User
 
Industry Role:
Join Date: Nov 2003
Location: Toronto
Posts: 4,001
quick php question

I am using the following code to echo a customers address from a mysql database:

<?php print $recipient->address_street ?>

However, in the DB if there are 2 lines in the value, for example:

123 street
Apt 1

and it will echo it like it is in the db with the double lines. How can I make it echo on just one line, preferably with a comma and space:

123 Street, Apt 1

Last edited by mkx; 03-26-2014 at 01:43 PM..
mkx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote