Google Maps API in wordpress

Figured it out!!!!!
Since we get the SQL query result with the help of “$wpdb” object we can access each row’s attribute as an associative array.
As a result there isn’t a need for “mysql_fetch_assoc()” and “mysql_query()” functions.
Also we need to define “$wpdb” object, so we require “wp-config.php” file.