Maison  >  Article  >  développement back-end  >  一段写法报错,该如何解决

一段写法报错,该如何解决

WBOY
WBOYoriginal
2016-06-13 10:35:15872parcourir

一段写法报错
news表里面有两笔数据,没问题。然后用最简单的PHP语句将其显示出来,却报错了:

PHP code
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->/..数据库连接代码,省略
一段写法报错,该如何解决 //这里的news_title取不到值  //这里报错,报错内容:Fatal error: Function name must be a string in  


百度了一下,无法解决

------解决方案--------------------
$row是一个数组,所以要用方括号 $row['news_title']
------解决方案--------------------
//这里的news_title取不到值
 

你下面知道要输出 上面就不知道了?
然后 php的数组是用 $xxx['xxx'] 不是用 $xxx(xxx)...

Déclaration:
Le contenu de cet article est volontairement contribué par les internautes et les droits d'auteur appartiennent à l'auteur original. Ce site n'assume aucune responsabilité légale correspondante. Si vous trouvez un contenu suspecté de plagiat ou de contrefaçon, veuillez contacter admin@php.cn
Article précédent:php post请求,该如何解决Article suivant:php 初级有关问题求解