I have below code which gives output as a single line. Please help me to get array value to new row.
I have tried using </br>
or <br>
but no use.
Code:
if($_SERVER['REQUEST_METHOD'] == "POST") {
$string = "copy \\\\plm\\tt\\data\\";
}
$des=$_POST["tester"];
if($des=="") {
// if ALL is selected in Dropdown box
$res=mysqli_query($conn, "SELECT * FROM workflow1");
while($r=mysqli_fetch_row($res))
{
echo "$string$r[4]";
}
}
Current output:
copy \\plm\tt\data\event3copy \\plm\tt\data\event5copy \\plm\tt\data\event4
Desired output:
copy \\plm\tt\data\event3
copy \\plm\tt\data\event5
copy \\plm\tt\data\event4