The following statement returns 1 in php. I serialize and issue the result and all other credentials, and it does this on three separate requests. When I run the query in sqlpro or phpmyadmin, I get the result as 8. Please tell someone has a bright idea.
$numRFPsSwitch = 0;
$bquery = " SELECT COUNT(rp.id) AS 'NumRFPs'
FROM rfp_proposal rp
WHERE rp.vendor_id = 1 AND rp.id IN(13,15,16,23,24,26,4,9) ";
$bresult = mysql_query($bquery, $connection);
$XMLFormatedString .= 'NumRFPs="';
while ($brow = mysql_fetch_object($bresult)){
$XMLFormatedString .= $brow->NumRFPs;
$numRFPsSwitch = 1;
}
source
share