PDA

View Full Version : Quick PHP Question!!!?


Jared Q
02-10-2011, 03:59 PM
Okay, I have a list of names that im using php and mysql to display from a DB. Instead of just listing the names in a straight line I want to make it where the names will be like

Name 1 Name 2

instead of

Name1
Name2 etc.

Do you know how to make that work?

Thanks

CodenameD
02-11-2011, 05:22 PM
Concatenate the variables like this-

echo $name1.''.$name2;

for the output statement.