limecity Posted May 10, 2007 Share Posted May 10, 2007 <?php while ($row = mysql_fetch_array($result)) { echo '<tr><td>'.$row['fname'].'</td><td>'.$row['lname'].'</td><td>'.$row['invoice'].'</td><td>'.$row['rtype'].'</td><td>'.$row['nr'].'</td><td>'; }?> how do i add two array into one? like first name and last name i did something like this and it didn't work : ['fname']+['lname'] help please Link to comment https://forums.phpfreaks.com/topic/50872-combine-fetched-array/ Share on other sites More sharing options...
Barand Posted May 10, 2007 Share Posted May 10, 2007 The concatenation operator is "." echo $row['fname'] . ' ' . $row['lname']; Link to comment https://forums.phpfreaks.com/topic/50872-combine-fetched-array/#findComment-250209 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.