Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while($row=mysql_fetch_array($result,MYSQL_ASSOC))
- {
- $counter1++;
- if($row['from_point']==$row['point_id'])
- {
- $polylines[$row['polyline_name']][$row['line_seq_number']]["from_point"]["long"]=$row["longitude"];
- }else
- {
- $polylines[$row['polyline_name']][$row['line_seq_number']]["from_point"]["long"]=$row["latitude"];
- }
- }
- foreach ($polylines as $v1) {
- foreach ($v1 as $v2) {
- if($v2["from_point"]["long"]==$tetmimenh && $v2["from_point"]["lat"]==$tetagmenh || ($v2["to_point"]["long"]==$tetmimenh && $v2["to_point"]["lat"]==$tetagmenh))
- {
- //now i want to copy $polylines['index'] where index is the index that do this match
- $counter2++;
- foreach ($v1 as $vv2)
- {
- if($v1[])//here is the problem
- $json[$counter2]=$vv2;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement