4 ms·
You can't use mysql_query anymore. It's removed from PHP 7. And the docs warn you about it: http://php.net/manual/en/function.mysql-query.php http://php.net/ma
by olegkikin 9y ago
You can't use mysql_query anymore. It's removed from PHP 7. And the docs warn you about it:
http://php.net/manual/en/function.mysql-query.php http://php.net/manual/en/function.mysql-query.php
- Rjevski 9y agoOne of the issues I noticed in a lot of beginner PHP developers is that the official docs is the last thing they look at. They'd rather copy/paste some crap from W3Schools or a 10 year old blog post, and given that they put it on shared hosting with a prehistoric version of PHP the "mysql_query" garbage will work as expected (as in, allow their site to be exploited).