php unexpected T_ENCAPSED

echo "<h3>11your balance is $row_recborrowbalance['wname']  </h3>" ;

the error is
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in C:\wamp\www\village\village_borrownamepay.php on line 58
teeraAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
PhatzerConnect With a Mentor Commented:
Try this:
echo "<h3>11your balance is " . $row_recborrowbalance['wname'] . "</h3>";

Open in new window

0
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
or:
print "<h3>11your balance is {$row_recborrowbalance['wname']}</h3>";

Open in new window

0
 
Richard QuadlingSenior Software DeveloperCommented:
On later versions of PHP, you can also ...


echo "<h3>11your balance is ", $row_recborrowbalance['wname'], "</h3>";

Open in new window

0
All Courses

From novice to tech pro — start learning today.