I'm using this if statement:
and all of the records in my database have nothing in the "carrier" field. I don't understand that when my code sends the emails (furhter down in the code), they all include the UPS link. I have it set in my code to only include that link if the "carrier" field contains "UPS"...am I missing something here? Thanks for your help.PHP Code:if ($carrier = "UPS") {
$emailbody .= "Tracking link: http://wwwapps.ups.com/etracking/tracking.cgi?TypeOfInquiryNumber=T&InquiryNumber1=" . $number . "\n\n";
}
elseif ($carrier = "FED-EX") {
$emailbody .= "Tracking link: http://www.fedex.com/cgi-bin/tracking?action=track&language=english&cntry_code=us&initial=x&mps=y&tracknumbers=" . $number . "\n\n";
}
elseif ($carrier = "USPS") {
$emailbody .= "Tracking link: http://www.usps.com/shipping/trackandconfirm.htm\n\n";
}
else{
$nolink = "1";
$emailbody .= "\n\n";
}
//$emailbody .= "Order ID: " . $order_id . "\n\n";
if ($nolink = "1"){
}
else{
$emailbody .= "To track your package, please click the link above.\n";
}





Bookmarks