search

Home  >  Q&A  >  body text

The number of rows in table1 records can be obtained, but the number of fields in table1 cannot be obtained. Why?

$p1 = new DB();
$p2 = $p1->runSQT("select * from `table1`");
         
$h1 = $p2->num_rows; //The number of record rows in the table
$z1 = $p2->num_fields; //The number of fields in the table

小辫子小辫子2261 days ago727

reply all(1)I'll reply

  • 天蓬老师

    天蓬老师2018-11-27 21:38:06

    What are you asking about, which course it is in, can you give the complete code? It is a fragment, difficult to analyze

    reply
    0
  • Cancelreply