查看我的查询
Select * from join_chat where
(user_1 = '24' and user_2 = '26') or
(user_1 = '26' and user_2 = '24')
请从我的 api 中提供解决此错误的建议
<h4>A PHP Error was encountered</h4>
<p>Severity: Warning</p>
</div>{"responce":true,"data":"20"}
43.303 28439-30249/techline.carsapp W/System.err: 在 java.util.concurrent.FutureTask.run(FutureTask.java:266) 2020-05-09 23:16:43.303 28439-30249/techline.carsapp W/ System.err: 在 android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:245) 2020-05-09 23:16 :43.303 28439-30249/techline.carsapp W/System.err: 在 java.util. concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) 2020-05-09 23:16:43.303 28439-30249/techline.carsapp W /System.err: 在 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor. java:641) 2020-05-09 23:16:43.303 28439-30249/techline.carsapp W/System.err: 在 java 中。lang.Thread.run(线路.java:764)FutureTask.run(FutureTask.java:266) 2020-05-09 23:16:43.303 28439-30249/techline.carsapp W/System.err: 在android.os。 AsyncTask$SerialExecutor$1.run(AsyncTask.java:245) 2020-05-09 23:16:43.303 28439-30249/techline。
消息:count():参数必须是数组或实现 Countable 的对象
文件名:controllers/Api.php
行号:801
<p>Backtrace:</p>
下面控制器中的方法
public function send_chat_data()
{
$this->load->library('form_validation');
$this->form_validation->set_rules('join_id', 'join_id', 'trim|required');
$this->form_validation->set_rules('sender_id', 'sender_id', 'trim|required');
$this->form_validation->set_rules('message', 'message', 'trim|required');
德玛西亚99