I have tried everything I can think of. All I'm trying to do is return my results on separate lines so I can copy & paste them in to a notepad file. My query looks like this.
$query = "SELECT $compositesql FROM macs";
$result = mysql_query($query);
{
$row = mysql_fetch_row($result);
//$row = mysql_fetch_array($result);
for($j = 0;$j<mysql_num_fields($result);$j++)
{
echo ($row[$j] . "\r\n");
}
}
It outputs this
00:10:36:11:22:33 1000 00:10:36:A0:54:EC 1001
But I want this
00:10:36:11:22:33 1000
00:10:36:A0:54:EC 1001
Does anyone have any suggestions? Thanks in advance!