Displaying the variable name in the results
Posted: Wed Oct 15, 2008 6:09 am
Hi. Have the following code it all works, but the actual result is displaying the name of the table in the results when I echo it. Is there a way of calculating the result first in a variable and then echoing the result in the variable. Sorry am new to all this. have tried
$result=$row['full_price'];
echo $result;
but no joy
$result=$row['full_price'];
echo $result;
but no joy
Code: Select all
if ($load == 'full_load') {
echo (" "). $row['full_price'];
} else {
echo (" "). $row['half_price'];
}