views:

44

answers:

1

Hi,

I am trying to concatinate the following: (I'm just including snippets of code to demonstrate where the variables are coming from)

$realexdate =  date('Ymdhis', strtotime($date));
$currency = "EUR";

while($row = mysql_fetch_array($sql2, MYSQL_ASSOC))
{
       $cost_record = $row['cost'];
}

while($row = mysql_fetch_array($sql4, MYSQL_ASSOC))
{
    $orderno_record = $row['orderNo'];
}

$str1 = $realexdate."."$orderno_record."."$cost_record."."$currency;
echo $str;

I'm getting a parse error with this. Can someone help!

+4  A: 
$str1 = $realexdate."."$orderno_record."."$cost_record."."$currency;

should be:

$str1 = $realexdate.".".$orderno_record.".".$cost_record.".".$currency;
halfdan