-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhel.php
44 lines (27 loc) · 935 Bytes
/
hel.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
include 'dbfr.php';
$ql="SELECT * FROM hel ";
if($query_run=mysqli_query($con,$ql))
{
//$query_run=mysqli_query($con,$ql);
$count=mysqli_num_rows($query_run);
if($count>0)
{
while($row= mysqli_fetch_assoc($query_run))
{
$link="http://maps.google.com/maps?q=".$row["lat"].",".$row["long"]."&ll=".$row["lat"].",".$row["long"]."&z=17";
$fw=fopen("ttt.txt", "a");
fwrite($fw,$link."\n");
}
}
else
{
//echo "error in registration 1";
echo "error1";
}
}
else
{
echo "error2";
}
?>