Advertisement
Guest User

Untitled

a guest
Nov 26th, 2016
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. {"type":"Point","coordinates":[40.704719543457,-74.0092620849609]}
  2. {"type":"Point","coordinates":[40.7466468811035,-73.9939117431641]}
  3.  
  4. <?php
  5.  
  6. $connect = pg_connect("host=127.0.0.1 dbname=d106 user=b16 password=cccC") or die("Could not connect: ");
  7. $result = pg_query($connect,"SELECT distinct thestartgeom FROM bike");
  8. if (!$result)
  9. {
  10. echo "no results ";
  11. }
  12.  
  13. while($row = pg_fetch_array($result))
  14. {
  15.  
  16. $coor = $row['roads'];
  17.  
  18. }
  19.  
  20. pg_close($connect);
  21. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement