Mercurial > hg > ywww
diff php/read/map/regenerateMyMap.php @ 6:077b0a0a3e6d
remaining originals according to dependency walk
author | Robert Boland <robert@markup.co.uk> |
---|---|
date | Thu, 16 Feb 2017 22:29:02 +0000 |
parents | |
children | 385ddd7c4b55 a67bf725e87b |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/php/read/map/regenerateMyMap.php Thu Feb 16 22:29:02 2017 +0000 @@ -0,0 +1,25 @@ +<?PHP +$UserID = $_GET['user']; + +if(isset($_GET['loc'])){ + $loc = $_GET['loc']; +} +else{ + $loc = 0; //default location is 1 +} +if(isset($_GET['listname'])){ + $listName = $_GET['listname']; +} +else{ + $listName = "MyMap"; //default map +} + + include "../../../../private/db.php"; + $queryDel = "CALL b_deleteUserMap($UserID, $loc,\"$listName\")"; + $results1 = mysqli_query($link, $queryDel) or exit( mysqli_error( $link )); + + include "../../../../private/db.php"; + $query1 = "CALL b_setupUserMap($UserID, $loc,\"$listName\")"; + $results1 = mysqli_query($link, $query1) or exit( mysqli_error( $link )); + +?> \ No newline at end of file