search

Home  >  Q&A  >  body text

Ask a question

Hello teacher, when the code is running, there is no prompt box when the data is found in the database. Click OK to enter the homepage. In the program,

$user = UserModel::get($map);
//var_dump ($map);
         if ($user===null) {
               $result = 'There is no such user, please check';
                                                                                                                 

cykeyancykeyan1969 days ago1416

reply all(5)I'll reply

  • cykeyan

    cykeyan2020-01-02 10:24:47

    solved

    reply
    0
  • 刀刀

    刀刀2020-01-02 10:19:21

    Solve it?

    reply
    0
  • 卢小强

    卢小强2019-09-19 16:07:12

    You are using ajax to submit, instead of using return ['status'=>$status, 'message'=>$result, 'data'=>$data];

    reply
    0
  • cykeyan

    Yes, thank you!

    cykeyan · 2019-09-19 16:13:06
  • 小❤呆呆

    小❤呆呆2019-09-16 16:37:04

    Need to return the result to the front desk, but I didn’t see any printout of $result

    reply
    0
  • Cancelreply