How to make Output a value.
I would like to convert the previously written ASP program into a PHP program, the results encountered a * annoying. It is:
in ASP
<% do and not rs.eof%>
">
) "> Edit
<% Rs.movenext
Loop%>
The value of the id attribute for each TR is FFF1,FFF2,FFF3, respectively.
But instead of a PHP program,
FETCH_ASSOC ()) {?>
">
) "> Edit
The id attribute value of each TR is FFF,FFF,FFF, etc.
I therefore suspect that the data type of $row["id" is not a numeric type, then use $id=intval ($row ["id"]) +0; go to cast it to a numeric type, but the result is 0.
The id attribute value for each TR is fff0,fff0,fff0, etc.
How to make PHP
The id attribute values for each tr are FFF1,FFF2,FFF3, respectively.
Share to:
------解决方案--------------------
那就是本身无值。。。
------解决方案--------------------
alert("fff"+ )
改成
alert("fff class="social-share-buttons" data-title=""></span class="social-share-buttons" data-title="【怎样让<?=$row["id"] ?>输出一个数值啊】我想把以前写的ASP程序转换成PHP程序,结果遇到一个*烦。就是:ASP中<%???do?while?not?rs.eof???%>??<tr?id="fff<%=rs("..." data-pics=""></span> ")
Try the