I would like to ask all the experts about the problem of PHP value.
袁郡
袁郡 2021-04-05 10:23:45
0
4
1227

I am a freshman and I am studying. I have a query to count the number of non-empty items in the table "staff_2". The query code is as follows 查询1.pngvar_dump as shown below

查询2.pngwThis value is "1" This is the value I want.

How can I display this value into the text?

查询3.png

The above method was not successful. How can I modify the statement?

<input type="text" name="textinput" id="textinput " value="<?php echo ?>" />

袁郡
袁郡

reply all(2)
灭绝师太

$data has a value for the first time the script is executed, and will be assigned a value for the second time

  • reply
    袁郡 author 2021-04-06 18:09:54
袁郡

That’s how to take out the query result ‘1’ and display it in value

  • reply $data['total'] Click this picture to show that the value has been obtained.
    对方正在输入.... author 2021-09-10 17:37:51
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template