views:

28

answers:

2

Trying to do this:

$product_description =  'Credit balance of €' $_POST['creditamount'] ;

Want to display that post inside my variable but get this

Parse error: syntax error, unexpected T_VARIABLE in /var/www/account/credits/moneybookers/process.php on line 48

What am i doing wrong??

+2  A: 

You are missing the concatenation operator .

Your code should look like this:

$product_description = 'Credit balance of €' . $_POST['creditamount'];

Jacob Relkin
+2  A: 

You miss a dot behind 'Credit balance of €'.

In PHP, you join strings using .. Ex.:

$new_string = $string_one . "whatever" . $string_two;
Ondrej Slinták
cool beans thanks