کد:
$sql = "SELECT * FROM....;"; $sql .= "SELECT * FROM....;"; $sql .= "SELECT * FROM....";
تابع:
کد:
public function multi($sql){ $Res = array(); if (mysqli_multi_query($this->connection,$sql)){ do{ if ($result=mysqli_store_result($this->connection)) { while($row = $result->fetch_assoc()){ array_push($Res, $row); } mysqli_free_result($result); } } while (mysqli_next_result($this->connection)); } return $Res; }
هشداری که ثبت میشه:
کد:
PHP Strict Standards: mysqli_next_result(): There is no next result set. Please, call mysqli_more_results()/mysqli::more_results() to check whether to call this function/method in /home/
از خط زیر ایراد میگیره:
کد:
while (mysqli_next_result($this->connection));
متاسفانه با آموزش های داخل نت نتونستم مشکل رو حل کنم.خیلی قدردانی می کنم اگر کسی بتونه این مشکل رو برای من حل کنه.