我在程序中遇到此错误:意外的'$ row'(T_VARIABLE)

时间:2019-05-30 07:05:05

标签: php sql

我收到此错误: 解析错误:语法错误,第7行的C:\ xampp \ htdocs \ playdatabaseswd \ 1.php中出现意外的'$ row'(T_VARIABLE)

<?php
$con=mysqli_connect("localhost","root","param2000","csv_db");
$result=mysqli_query($con,"SELECT SUM(finalfee) AS answer from feedemand")or        die("Failed to take answers from database".mysqli_error($con));
$row=mysqli_fetch_array($result);
print_r($row);
$answer="Final answer :"$row.['answer'];
echo $answer;

?>

0 个答案:

没有答案