Hi. I'm trying to add another value onto a variable. I currently have;
// check if the thing we have
if ($_sliced_cats == "wedding"
{
$wedding .= "<tr><td vAlign=\"top\" bgColor=\"#FFFFFF\"><font face=\"arial,helvetica\" size=\"2\">$sliced_titles[$count]</font><font class=\"text\" face=\"arial,helvetica\" size=\"2\"> <br> </font></td><td vAlign=\"top\" bgColor=\"#FFFFFF\"><font class=\"text\" face=\"arial,helvetica\" size=\"2\">$dropdown</font></td> <td vAlign=\"top\" bgColor=\"#FFFFFF\"> <font class=\"text\" face=\"arial,helvetica\" size=\"2\">£ $sliced_ourest[$count]</font></td> <td vAlign=\"top\" bgColor=\"#FFFFFF\"> <font class=\"text\" face=\"arial,helvetica\" size=\"2\">£ <input size=\"5\" value=\"$sliced_theirest[$count]\" name=\"your_estimate[$count]\"> </font></td> <td vAlign=\"top\" width=\"64\" bgColor=\"#FFFFFF\"> <font class=\"text\" face=\"arial,helvetica\" size=\"2\">£ <input size=\"5\" value=\"$sliced_actualcost[$count]\" name=\"your_actual[$count]\"> </font></td>";
$wedding_actual =+ your_actual[$count];
$wedding_their =+ your_estimate[$count];
$wedding_estinate =+ sliced_ourest[$count];
}
This gives a parse error. I'm assuming it has something to do with the =+ , as it seems to disappear when I get rid of them. Is there a function that would do the following;
$wedding == 50;
$wedding_actual = $wedding_actual + $wedding;
echo "\$wedding_actual => $wedding_actual";
Cheers
Andy
// check if the thing we have
if ($_sliced_cats == "wedding"

$wedding .= "<tr><td vAlign=\"top\" bgColor=\"#FFFFFF\"><font face=\"arial,helvetica\" size=\"2\">$sliced_titles[$count]</font><font class=\"text\" face=\"arial,helvetica\" size=\"2\"> <br> </font></td><td vAlign=\"top\" bgColor=\"#FFFFFF\"><font class=\"text\" face=\"arial,helvetica\" size=\"2\">$dropdown</font></td> <td vAlign=\"top\" bgColor=\"#FFFFFF\"> <font class=\"text\" face=\"arial,helvetica\" size=\"2\">£ $sliced_ourest[$count]</font></td> <td vAlign=\"top\" bgColor=\"#FFFFFF\"> <font class=\"text\" face=\"arial,helvetica\" size=\"2\">£ <input size=\"5\" value=\"$sliced_theirest[$count]\" name=\"your_estimate[$count]\"> </font></td> <td vAlign=\"top\" width=\"64\" bgColor=\"#FFFFFF\"> <font class=\"text\" face=\"arial,helvetica\" size=\"2\">£ <input size=\"5\" value=\"$sliced_actualcost[$count]\" name=\"your_actual[$count]\"> </font></td>";
$wedding_actual =+ your_actual[$count];
$wedding_their =+ your_estimate[$count];
$wedding_estinate =+ sliced_ourest[$count];
}
This gives a parse error. I'm assuming it has something to do with the =+ , as it seems to disappear when I get rid of them. Is there a function that would do the following;
$wedding == 50;
$wedding_actual = $wedding_actual + $wedding;
echo "\$wedding_actual => $wedding_actual";
Cheers
Andy