am trying to generate a table from json data i sent over from an angular js web app with the for each loop to build me a table so that i can send the email to users.
$message = "
</tr>
</thead>"
foreach ($dateils as $key=>$di) {
" <tr >
<td>".$key."</td>
<td>".$di.typeo."</td>
<td>".$di.stypeo."</td>
<td>".$di.Diameter."</td>
<td>".$di.leghtn."}</td>
<td>".$di.amount."</td>
</tr>"
}"
</table>";
now thats the actual loop and here is the top
$inputStream = file_get_contents("php://input");
$data = json_decode($inputStream);
$username = $data->username;
$email = $data->email;
$company= $data->company;
$mobile = $data->mobile;
$delivery = $data->delivery;
$dateils = $data->details;
from angular am sending two json objects
var transporter = [];
transporter.use = user;
transporter.detail = nxt;