我有一个没有错误的销售人员查询。我可以使用除布尔字段之外的所有数据。我想根据 cfl_No_Advance_Sales__c 字段的值(真或假)显示不同的信息。如果我尝试只显示字段的值,我什么也得不到。这是代码:
$query = "Select Id, Name, IsDeleted, LastActivityDate, cfl_Door_Price__c, cfl_Advance_Ticket__c, cfl_Start_Time__c, cfl_Event_Date__c, cfl_BPT_Event_ID__c, cfl_Location__c, cfl_Event_Status__c, LastModifiedDate, cfl_No_Advance_Sales__c, cfl_Total_Advance_Tickets__c FROM cfl_Caffe_Events__c where cfl_Event_Date__c >= ".$tday." and IsDeleted = FALSE and (cfl_Event_Status__c != 'Cancelled') order by cfl_Event_Date__c asc LIMIT 5 ";
$response = $mySforceConnection->query($query);
// QueryResult object is only for PARTNER client
$queryResult = new QueryResult($response);
foreach ($queryResult->records as $record) {
//lots more code in here that works just fine
echo " $".$record->cfl_Door_Price__c." door</div>";
//check if no advanced sales
print '<br> No Advanced ticket sales value is:'.$record->cfl_No_Advance_Sales__c;
if ($record->cfl_No_Advance_Sales__c != "False") {
echo "<div class='etickets'><a href='/events-calendar/event-detail/?id=".$record->Id."'>TICKETS</a></div>";
}else{
echo "<div class='etickets'>NO ADVANCED TICKETS</div>";
}
}
打印出来是这样的...
3元门
否 高级门票销售价值为:TICKETS
谢谢你的帮助。