I am storing MySQL Query value in PHP variable, but its not displaying data. P.S: Data is available in MySQL table column.
<?php
$cmsca= mysql_query("SELECT SUM(qa_effort) FROM tbl_uat WHERE product='CAP'");
while ($cresulta = mysql_fetch_array ($cmsca))
$arra[0] = $cresulta[0];
echo $arra[0];
?>
I am out of clues, what is wrong in above code? Need help!
Regards
var_dump($cresulta[0]);to see what's in there ? Sometimesechofail displaying some values (likefalse)