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 Quote 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']; Quote Link to comment https://forums.phpfreaks.com/topic/50872-combine-fetched-array/#findComment-250209 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.