view php/read/map/regenerateMyMap.php @ 15:385ddd7c4b55 testing

use test_db.php to get mysqld_test instance
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Sun, 19 Feb 2017 16:17:53 +0000
parents 077b0a0a3e6d
children
line wrap: on
line source

<?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_test.php";
	$queryDel = "CALL b_deleteUserMap($UserID, $loc,\"$listName\")"; 
	$results1 = mysqli_query($link, $queryDel) or exit( mysqli_error( $link ));
 
	include "../../../../../private/db_test.php";
	$query1 = "CALL b_setupUserMap($UserID, $loc,\"$listName\")"; 
	$results1 = mysqli_query($link, $query1) or exit( mysqli_error( $link ));
	
?>