
php.net
https://www.php.net/manual/en/function.mysql-query…
PHP: mysql_query - Manual
For other type of SQL statements, INSERT, UPDATE, DELETE, DROP, etc, mysql_query () returns true on success or false on error. The returned result resource should be passed to mysql_fetch_array (), and other functions for dealing with result tables, to access the returned data.