
December 3rd, 2012, 12:27 PM
|
|
Registered User
|
|
Join Date: Oct 2012
Posts: 24
Time spent in forums: 6 h 21 m 42 sec
Reputation Power: 0
|
|
|
Multiple column data in echo statement
Since my last few posts I have gained a better understanding of PHP and feel more comfortable with the code.
How do I pull data from multiple columns into one <td> echo statement?
PHP Code:
<td>Name:</td><?php echo $customer['first_name' AND 'last_name']; ?>
That is what I've tried, it returns only the firstName. I have tried to concatenate it but I'm stumped. Any help is appreciated.
Also, I don't know if it matters but I have a
PHP Code:
foreach (customers as customer) : ?>
Thanks.
|