Jump to content

concateant question


mindapolis

Recommended Posts

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

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.