【发布时间】:2015-09-15 10:58:33
【问题描述】:
$rst=mysqli_query($link, "SELECT * FROM flux_receptie WHERE status_procesare ='PRELUAT' AND status_solutionare ='' ORDER BY ora_preluare DESC LIMIT 5");
while($res = mysqli_fetch_array($rst))
if(($res)==TRUE)
echo "
<table class='fixed'>
<td>$res[0]</td><br /><br />
<td>$res[2]</td><br />
<td>➤ $res[12]</td>
";
?>
有没有办法重新创建干净的代码?我试图重新创建它,但它没有回显来自sql 的值:
$rst=mysqli_query($link, "SELECT * FROM flux_receptie WHERE status_procesare ='PRELUAT' AND status_solutionare ='' ORDER BY ora_preluare DESC LIMIT 5");
while($res = mysqli_fetch_array($rst))
if(($res)==TRUE)
?>
<table class='fixed'>
<td><? print $res[0]; ?></td><br /><br />
<td><? print $res[2]; ?></td><br />
<td>➤ <? print $res[12]; ?></td>
有人可以告诉我如何编写干净的代码吗?
【问题讨论】:
-
使用大量 不是一个好习惯。 .避开他们
-
谢谢。我会记住这一点的。