Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/228.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
需要使用css和php的帮助吗_Php_Css - Fatal编程技术网

需要使用css和php的帮助吗

需要使用css和php的帮助吗,php,css,Php,Css,我正在尝试显示存储在phpmyadmin中的注释,并将它们放置在对话框中。我想不出我的代码有什么问题。它不显示 enter code here $outputList = ''; echo "<div><form method=POST>"; while($row = mysql_fetch_array($sql2)){ $outputList=""; $id = $row["guestID"]; $name = $row["name"]; $age = $row["

我正在尝试显示存储在phpmyadmin中的注释,并将它们放置在对话框中。我想不出我的代码有什么问题。它不显示

enter code here

$outputList = '';
echo "<div><form method=POST>";
while($row = mysql_fetch_array($sql2)){ 
$outputList="";
$id = $row["guestID"];
$name = $row["name"];
$age = $row["age"];
$date = $row["date"];
$email = $row["email"];
$comment = $row["comment"]; 
$outputList .=$name . ',' . $age . ','.$date.'<br>'.$email.'<br>'.$comment.…
echo "<input type=text value=$outputList class=commentbox>";
echo "<a href=\"modify.php?id=".$row['guestID']."… ";
echo "<a href=\"delete.php?id=".$row['guestID']."…

}echo "</form></div>"; // close while loop
?>
在此处输入代码
$outputList='';
回声“;
而($row=mysql\u fetch\u数组($sql2)){
$outputList=“”;
$id=$row[“guestID”];
$name=$row[“name”];
$age=$row[“age”];
$date=$row[“date”];
$email=$row[“email”];
$comment=$row[“comment”];
$outputList.=$name.','.$age.','.$date.'
'.$email.
'.$comment。… 回声“; 回声“
非常感谢

问题在于:

$outputList = '';
你的意思是:
$outputList.=$name.'、'.$age.'.$date.'
'.$email.
'.$comment。…

您的代码充满了语法错误

尝试将$outputlist更改为:

$outputList = $name . ',' . $age . ','.$date.'<br>'.$email.'<br>'.$comment. '...';
$outputList=$name.'、'.$age.'、'.$date.'
'.$email.
'.$comment.';
也许它能工作,但没有人向你保证,因为我们看不到其余的代码

我认为这不起作用,因为在开始时,您给$outputList一个空值,并且在尝试获取新值时出现语法错误

编辑: 我现在看到,echo中也有语法错误,我修复了我看到的,我测试了这个adn的工作原理:

$outputList = $name . ',' . $age . ','.$date.'<br>'.$email.'<br>'.$comment. '...';
echo "<input type=text value=$outputList class=commentbox>";
echo "<a href=\"modify.php?id=".$row['guestID']."… ";
echo "<a href=\"delete.php?id=".$row['guestID']."… ";
} // close while loop
echo "</form></div>"; 
$outputList=$name.'、'.$age.'、'.$date.'
'.$email.
'.$comment.'; 回声“;
echo“您会遇到什么错误?最终生成的HTML代码是什么样子的?这比源代码phpMyAdmin不存储您的数据,MySQL存储您的数据更有趣。phpMyAdmin只是一个管理界面。@用户为什么您不断回滚人们对帖子所做的更正?它们是否有问题(或者您在使用系统时遇到问题)?在这种情况下,请在此处留下评论开始学习在html中的属性值周围加引号。仅仅因为浏览器会尝试呈现草率的标记,并不意味着它们总是能够正确呈现。对不起,我是新来的。我不知道这里是怎么回事。也许我会阅读noob指南firstoutputlist看起来像这样2011年1月24日,23日,利普filip@yahoo.com
我看不出这和什么有什么关系。我看不出语法错误。你能指出吗?