欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

生手上路(关于mysql_fetch_array)

程序员文章站 2022-06-03 21:27:14
...
新手上路(关于mysql_fetch_array)
生手上路(关于mysql_fetch_array)include 'con_db.php';
$sqlsl="SELECT * FROM `phptestdb`.`inputtest`";
$dbdate=mysql_query($sqlsl)or die(mysql_error());
while($list=mysql_fetch_array($dbdate)){
?>









=$list[content]?>
用户:=$list[user]?> 时间:=$list[date]?>

___________________________________________________________________________________________________________________________________________________
测试提示:
undefined constant content - assumed 'content'
Use of undefined constant user - assumed 'user'
Use of undefined constant date - assumed 'date'

才刚上路,求知道的人指点,万分感谢!
------解决思路----------------------
=$list['content']?>
加上引号,其他类同
生手上路(关于mysql_fetch_array)

声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn核实处理。

相关文章

相关视频