Home  >  Q&A  >  body text

Submission of new column failed

When adding a column, the addition failed,

if($cate->add()){

                                                                                                                                 ('lst'));

        }else{

                $this->error('Failed to add column');

          }

Go The error is

. Is it because the interface address of the form form is written wrong? I didn’t see the interface address of the form form written by the teacher

回眸的冷漠回眸的冷漠2182 days ago993

reply all(2)I'll reply

  • 灭绝师太

    灭绝师太2018-11-11 11:23:09

    If the form is written incorrectly, it cannot be entered into PHP at all. This should be an error reported during add(). Use fetchSqlA() to check if there is a data problem

    reply
    1
  • 回眸的冷漠

    It's because I didn't put data into the add() method, thank you.

    回眸的冷漠 · 2018-11-12 13:15:19
  • Cancelreply