mindapolis Posted May 5, 2011 Share Posted May 5, 2011 How would you concatenate this section of code echo "<td>2".while ($row=mysql_fetch_row($resultMonday)) {$start = $row[0]; $endTime = $row[1]; $dance = $row[2]; echo $start ."-".$end ." " $dance \n"; } $reset=mysql_data_seek ($resultMonday,0);</td>\n"; Link to comment https://forums.phpfreaks.com/topic/235573-concateant-question/ Share on other sites More sharing options...
vicodin Posted May 5, 2011 Share Posted May 5, 2011 You mean like this? echo "<td>2"; while ($row=mysql_fetch_row($resultMonday)) { $start = $row[0]; $endTime = $row[1]; $dance = $row[2]; echo $start ."-".$end ." " $dance \n"; } $reset=mysql_data_seek ($resultMonday,0);</td>\n"; Link to comment https://forums.phpfreaks.com/topic/235573-concateant-question/#findComment-1210770 Share on other sites More sharing options...
Pikachu2000 Posted May 5, 2011 Share Posted May 5, 2011 Something like this here. echo "<td>2"; while( $row=mysql_fetch_row($resultMonday) ) { $start = $row[0]; $endTime = $row[1]; $dance = $row[2]; echo "{$start}-{$end} {$dance}\n"; } $reset=mysql_data_seek ($resultMonday,0); echo "</td>\n"; Link to comment https://forums.phpfreaks.com/topic/235573-concateant-question/#findComment-1210772 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.