if statement
I'm having a little trouble with an "if" statement I want to generate text with on an order history page that lies within a repeat region. The repeat region is functioning perfectly, but the variable that my php statement is returning for this if statement is just the first value in my database column. I must have missed something. Help? The if statement I'm talking about is below the <!--order status--> comment.
The code looks like this:
<?php
while(!$rsOrders->atEnd()) {
?>
<tr class="color_dark">
<!--order number-->
<td><a href="order_details.html" class="color_dark"><?php echo($rsOrders->getColumnVal("OrderID")); ?></a></td>
<!--order date-->
<td><em><?php echo($rsOrders->getColumnVal("OrderDate")); ?></em></td>
<!--order status-->
<td><?php if ($row_rsOrders['OrderShipped'] =0){echo "Your order has shipped!" ;} else {echo "Your order is being processed.";} ?></td>
<!--quanity-->
<td><span class="f_size_large fw_medium">$<?php echo number_format_drop_zero_decimals($rsOrders->getColumnVal("OrderAmount"),2); ?></span></td>
</tr>
<?php
$rsOrders->moveNext();
}
$rsOrders->moveFirst(); //return RS to first record
?>