Hey guys quick question..
I have some in line html in my php file and I need to break it to put in if statements but im not sure how to keep all its info but broken up
for example (i shortened some code)
Code
$myLocationId
$header .= "<body>
<div class='invoice-box'>
<div style='float:right; font-size:14px;'>
<h2>Purchase Order</h2>
<strong>Po Number</strong> : $myPO->id<br>
<strong>Date</strong>: $myPO->date<br>
<strong>Date Needed</strong> : $myPO->date_needed<br>
<strong>Chg/Can</strong>: $myPO->status
</div>
<img src='../images/$myLogoName->config_value'>
<table>
<tr class='information'>
<td colspan='2'>
<table>
<tr>
<td>
<strong>Supplier: </strong> <br> $mySupplier->company <br>
$mySupplier->address <br>
$mySupplier->city, $mySupplier->state $mySupplier->zip<br><br>
<strong>Attn</strong> <br>
$mySupplier->first_name $mySupplier->last_name <br>
$mySupplier->email<br>
</td>
<td>
<strong>Deliver To:</strong> <br>
$myLocation->name<br>
$myLocation->address<br>
$myLocation->city , $myLocation->state, $mySupplier->zip
<br>
<br>
<strong>$doc_appt_needed</strong>
<strong>$myPO->delivery_locating </strong>
" . $myPO->getLocationPOtext() . "
</td>
</tr>
</table>
";
and I need it to look like this
Code
$myLocationId
$header .= "<body>
<div class='invoice-box'>
<div style='float:right; font-size:14px;'>
<h2>Purchase Order</h2>
<strong>Po Number</strong> : $myPO->id<br>
<strong>Date</strong>: $myPO->date<br>
<strong>Date Needed</strong> : $myPO->date_needed<br>
<strong>Chg/Can</strong>: $myPO->status
</div>
<img src='../images/$myLogoName->config_value'>
<table>
<tr class='information'>
<td colspan='2'>
<table>
<tr>
<td>
<strong>Supplier: </strong> <br> $mySupplier->company <br>
$mySupplier->address <br>
$mySupplier->city, $mySupplier->state $mySupplier->zip<br><br>
<strong>Attn</strong> <br>
$mySupplier->first_name $mySupplier->last_name <br>
$mySupplier->email<br>
</td>
IF( $myLocationID == 1){
<td>
<strong>Deliver To:</strong> <br>
$myLocation->name<br>
$myLocation->address<br>
$myLocation->city , $myLocation->state, $mySupplier->zip
<br>
<br>
<strong>$doc_appt_needed</strong>
<strong>$myPO->delivery_locating </strong>
" . $myPO->getLocationPOtext() . "
</td>
}
else{
you use delivery location 2.
}
</tr>
</table>
";
any help <3 :hail: