Re: With MYSQLI, Check which database im connected to
| From: | Christoph M. Becker | Date: | Sat, 04 Dec 2021 11:50:43 +0000 |
| Subject: | Re: With MYSQLI, Check which database im connected to | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-327854@lists.php.net to get a copy of this message | ||
On 04.12.2021 at 11:56, gordonisnz@gmail.com wrote:
> FIXED: I had the $link, $sql in the wrong order.
>
> $result = mysqli_query($sql,$link) << wrong.
Consider to use OOP style:
$result = $link->query($sql);
--
Christoph M. Becker