How to Make & lt ;? = $ Row [& quot; id & quot;]? & Gt; output a value. I want to convert the previously written ASP program into a PHP program, and the result is a big headache. That is, in ASP, how does & lt; % & nbsp; do & nbsp; while & nbsp; not & nbsp; rs. eof & nbsp; Output a value.
I want to convert the previously written ASP program into a PHP program. The result is very troublesome. That is:
ASP
<% Do while not rs. eof %>
">
) "> Edit
<% Rs. movenext
Loop %>
The id attribute values of each tr are fff1, fff2, and fff3 respectively.
But changed to the PHP program
Fetch_assoc () {?>
">
) "> Edit
The id attribute values of each tr are fff, fff, and fff,
I suspect that the data type of $ row ["id"] is not numeric, and $ id = intval ($ row ["id"]) + 0 is used; it is forcibly converted to a numeric type, but the conversion result is 0.
The id attribute values of each tr are fff0, fff0, fff0, etc,
How can I make PHP
The id attribute values of each tr are fff1, fff2, and fff3.
Share To: output a value.] I want to convert the previously written ASP program into a PHP program. The result is a big headache. That is, <% ??? Do? While? Not? Rs. eof ??? %> ??
------ Solution --------------------
That is, there is no value...
------ Solution --------------------
Alert ("fff" + )
Change
Alert ("fff ")
Try
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service