$store="";
$store.=<tr><td>'.$row["cus_id"].'</td></tr>';
above code is no problem
but when i put if inside will come out error
$store.=<tr><td>'.if(!empty($row["cus_id"])){echo $row["cus_id"];}.'</td></tr>';
how to put if statement inside the code ?
2
Answers
One of the ways is to use a function to parse the data:
So the code will be :
Note: In your question. you have missed out a quotation mark in
<tr><td>'