There is a code:
prin<<<HERE <table border="0" width="250px" style=" position:absolute; top:140px; left:350px; display: inline-block; white-space:normal;"> <tr> <td> <p style=" font-size:25px; padding-left: px;">$myrowd[name]</p> <hr> <h style=" padding-top:10px; padding-left: px;">$reg</h><br> <hr> <h style=" padding-top:10px; padding-left: px;">$myrowd[textar]</h><br> <hr> <h style=" padding-top:10px; padding-left: px;">$myrowd[textaus]</h><br> <hr> <p style=" padding-top:10px; padding-left: px;">$myrowd[number]</p> </td> </tr> </table> HERE; User data is displayed in variables. I need to do the following: if the field (for example, textar ) in the database is empty, then this is:
<h style=" padding-top:10px; padding-left: px;">$myrowd[textar]</h><br> <hr> not displayed. How to do this? I assume that it is possible with the help of if, but I don’t know how to put a piece of code in a variable, but surely it will be ugly.