search

Home  >  Q&A  >  body text

I would like to ask all the experts about the problem of PHP value.

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 ?>" />

袁郡袁郡1386 days ago1244

reply all(4)I'll reply

  • 灭绝师太

    灭绝师太2021-04-06 09:20:57

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

    reply
    1
  • 袁郡

    袁郡 · 2021-04-06 18:09:54
  • 袁郡

    袁郡2021-04-05 11:44:51

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

    reply
    0
  • 对方正在输入....

    $data['total'] Click this picture to show that the value has been obtained.

    对方正在输入.... · 2021-09-10 17:37:51
  • Cancelreply