Re: the changeover to mysqli [message #182938 is a reply to message #182932] |
Thu, 26 September 2013 00:16 |
|
richard
Messages: 213 Registered: June 2013
Karma:
|
Senior Member |
|
|
On Wed, 25 Sep 2013 20:38:15 +0000 (UTC), Adam Harvey wrote:
> On Wed, 25 Sep 2013 16:21:25 -0400, richard wrote:
>> then why hasn't the horses mouth followed their own demands?
>> Of all the reference material I've seen on their site, all examples
>> refer to mysql, NOT mysqli.
>
> If you can provide links to pages on php.net that still recommend mysql
> over mysqli or PDO, I will happily fix them up to recommend more modern
> code.
>
> Note that the reference documents for mysql_* functions already have
> warnings at the top of each page recommending alternatives, and have to
> include examples of the deprecated functions to be useful.
>
> Adam
Since you're the man in charge, then I'll make a simple resolution.
Create a page with two columns.
Column 1 has the mysql item, while column 2 has the corresponding mysqli
item.
Then link column 2 to the new item "manual".
for instance:
mysql_free_result() ---->> mysqli_free_result()
http://php.net/manual/en/function.mysql-free-result.php
I had a look at the mysql stuff listed in the left column.
As you say, the replacement code is shown.
But I think a list showing the new code as well would be better.
|
|
|