Thinking about mysql_query and such

OK, so after a year or so, mysql_query will disappear in new versions of PHP. At the same time, the mysql_query used on the sites used on the sites will stop working with those who are updating.

Will it also affect things like mysql_num_rows and other functions? I mean, what alternative mysql_query is there? I know there is mysqli , but how is it different from mysql ?

Thanks.

+2
source share
1 answer

Yes. The full (original) mysql extension goes away, not just the mysql_query function. The list of functions involved can be seen at:

http://php.net/manual/en/ref.mysql.php

+2
source

Source: https://habr.com/ru/post/944345/


All Articles