how to use DATE FORMAT in my query?

前端 未结 2 1180
臣服心动
臣服心动 2021-01-28 16:48

this works on phpmyadmin , but gives me and error when I am using on the code, the error says ,Parse error: syntax error, unexpected \'%\'....

whats wrong with my sintax

2条回答
  •  迷失自我
    2021-01-28 17:26

    It's because your string is terminated by single quotes $database->setQuery(' - just change to double quotes and it will work.

    $database->setQuery(" ");
    

提交回复
热议问题