Sponsored Links


Results 1 to 3 of 3

Thread: Zip code locator issues in php 2011

  1. #1
    Administrator Vuhelper's Avatar
    Join Date
    Apr 2011
    Posts
    9,578

    Icon16 Zip code locator issues in php 2011

    Sponsored Links1


    Code:
        // Go through and check all stores
        while ($row = mysql_fetch_assoc ($result)) {
         
        // Separate closest stores
        $distance = Dist ($row['lat'], $row['lon'], $zip['lat'], $zip['lon']);
         
        $preSpecialties = $row['specialties'];
        $preDoor=explode (';',$preSpecialties);
        $i=count($preDoor);
        for($n=0;$n<$i; $n++){
         
         
         
        // Check if store is in radius
        if ($distance <= $r && $p == ($preDoor[1]) or ($preDoor[2]) ) {
         
        $stores[] = array (
        'name' => $row['name'],
        'address' => $row['address'],
        'state' => $row['state'],
        'town' => $row['town'],
        'postal' => $row['postal'],
        'phone' => $row['phone'],
        'hours' => $row['hours'],
        'specialties' => $row['specialties']
        );
         
        }
         
        }
         
        }
         
        } else {
        $Errors = ($Errors) ? $Errors : '<p>Errors were found please try again!</p>';
        }

  2. #2
    Junior Member
    Join Date
    Jul 2014
    Posts
    1
    good good.............................
    Last edited by Vuhelper; 07-26-2014 at 04:12 PM.

  3. #3
    Junior Member
    Join Date
    Apr 2011
    Posts
    3
    Dear Admin, AOA, hope you are fine in beautiful city. I have started learning Php.
    So, my first choice , as always : vuhelp
    I hope , I will be able to master it in 15 quick days.
    Regards

    Sponsored Links

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 02-13-2013, 08:19 PM
  2. Replies: 0
    Last Post: 09-19-2011, 05:06 PM
  3. c++ code check this code 2011-12
    By Vuhelper in forum C++ Programing
    Replies: 0
    Last Post: 09-04-2011, 07:17 AM
  4. Issues with double variables in c++ 2011
    By Vuhelper in forum C++ Programing
    Replies: 0
    Last Post: 06-12-2011, 07:26 PM
  5. Replies: 1
    Last Post: 04-24-2011, 05:56 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
-: Vuhelp Disclaimer :-
None of the files shown here are hosted or transmitted by this server. The links are provided solely by this site's users. The administrator's or staff of Vuhelp.net cannot be held responsible for what its users post, or any other actions of its users. You may not use this site to distribute or download any material when you do not have the legal rights to do so. It is your own responsibility to adhere to these terms. If you have any doubts about legality of content or you have any suspicions, feel free to contact us.
Online Education | JhelumSoft