-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathgetkml.php
More file actions
21 lines (19 loc) · 725 Bytes
/
Copy pathgetkml.php
File metadata and controls
21 lines (19 loc) · 725 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php
header('Cache-Control: no-cache, no-store, must-revalidate');
header('Expires: Sun, 01 Jul 2005 00:00:00 GMT');
header('Pragma: no-cache');
require_once('config7.php');
$id=addslashes($_REQUEST['id']); // Get id
$query="SELECT * FROM qdata WHERE id = '$id'"; // Make query
$result=mysqli_query($link, $query); // Run query
if ($result == false) // Error
print("Error"); // Show error
else {
$row=mysqli_fetch_assoc($result); // Fetch row
$s=$row["data"]; // Get contents of data field
$s=str_replace("\\\"","\"",$s);
echo $s; // Print
}
mysqli_free_result($result); // Free
mysqli_close($link); // Close session
?>