I am trying to learn how to export from an Xampp phpmyadmin sql database to a google API to create markers.
I am trying to follow this guide:
https://developers.google.com/maps/solutions/store-locator/clothing-store-locator?csw=1
I get to the "Checking that XML output works" section. I try to run my script by typing into my browser: http://localhost/projectgmaps/storelocator.php
This kicks out a page with: *
Notice: Undefined index: lat in C:\xampp\htdocs\projectgmaps\storelocator.php on line 4 Notice: Undefined index: lng in C:\xampp\htdocs\projectgmaps\storelocator.php on line 5 Notice: Undefined index: radius in C:\xampp\htdocs\projectgmaps\storelocator.php on line 6 Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:\xampp\htdocs\projectgmaps\storelocator.php:12 Stack trace: #0 {main} thrown in C:\xampp\htdocs\projectgmaps\storelocator.php on line 12
* This is line 4,5,6:
$center_lat = $_GET["lat"];
$center_lng = $_GET["lng"];
$radius = $_GET["radius"];
and this is line 12:
$connection=mysql_connect (localhost, $username, $password);
Is anyone able to tell me what is wrong here?