PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Hello Everyone im having a slight bit of trouble i have the code below which outputs the distance of two gps coordinates, i have this done but my next step is to get the variables which i have received and input the one with the shortest distance in to my database, due to my limited skills i can only output the results to the screen. Any help would be great cheers.
Once your while loop is complete, you should have the $shortestdistance variable populated to then update your database. NB You might lose some accuracy this way as $resultdistance is performing the rounding before running the comparison.