view php/read/map/regenerateMyMap.php @ 60:05f29eb72283 default tip

review from DB not working???
author Charlie Root
date Sun, 09 Jun 2019 06:50:44 -0400
parents a67bf725e87b
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 "db.php";
	$queryDel = "CALL b_deleteUserMap($UserID, $loc,\"$listName\")"; 
	$results1 = mysqli_query($link, $queryDel) or exit( mysqli_error( $link ));
 
	include "db.php";
	$query1 = "CALL b_setupUserMap($UserID, $loc,\"$listName\")"; 
	$results1 = mysqli_query($link, $query1) or exit( mysqli_error( $link ));
	
?>