mysql_query() sends a unique query (multiple queries are not supported) to the currently active database on the server that's associated with the specified link_identifier.
mixed mysql_query ( string $query [, resource $link_identifier = NULL ] )
Returns Result from MySQL Query.
This extension was deprecated in PHP 5.5.0, and it was removed in PHP 7.0.0.
The MySQLi or PDO_MySQL Should be used.
http://in.php.net/manual/en/function.mysql-query.php