I have 2 IF statements and they dont seem to work as they are told.
When an RMA record is selected it should only show the RMA statement and not the trade and same with a trade record. But when i selected an RMA record the Trade statement shows up also same with a trade record the rma show up also. No data is in the divs but the div box's show up.PHP Code:<?
if ($myrow["svc"] = "%RMA-%") {
echo '<div class="tmodule">';
echo '<h3>Reason for return:</h3>';
echo '<div>';
echo '',$myrowr["reason"],'';
echo '</div>';
echo '</div>';
echo '<div class="tmodule">';
echo '<h3>Special Instructions or Notes:</h3>';
echo '<div>';
echo '',$myrowr["notes"],'';
echo '</div>';
echo '</div>';
}
else {}
?>
<?
if ($myrow["svc"] = "%T-%") {
echo '<div class="tmodule">';
echo '<h3>Special Instructions or Notes:</h3>';
echo '<div>';
echo '',$myrowt["notes"],'';
echo '</div>';
echo '</div>';
}
else {}
?>



Reply With Quote

Bookmarks