Re: With MYSQLI, Check which database im connected to

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 04.12.2021 at 11:56, gordonisnz@xxxxxxxxx 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




[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux