Gossamer Forum
Quote Reply
MySQL Query??
HI there Wink

I would like to know how I should go do work to convert this:

Code:
my $sql = "SELECT sqrt($dist) AS distance,
Airport_LAT AS latitude,
Airport_LNG AS longitude,
ID AS record_id, Title AS name,
address AS address,
city AS city,
state AS state,
zip AS zip
FROM dz_Links
WHERE $dist < $rad ** 2
ORDER BY $dist
LIMIT 0, $maxSearchRes";

to something like this:

Code:

my $result = $table->select({Airport_LAT},{$dist => $rad ** 2} );

I have read through the documentation that came with the installation, but I am still clueless. If someone could explain it step by step I would really appreciate it Smile

Thank you....


Sacrifice is not about what you lose,
it is about what you gain in the process.
Subject Author Views Date
Thread MySQL Query?? EZFrag 3893 Apr 15, 2008, 5:21 AM
Thread Re: [EZFrag] MySQL Query??
Andy 3791 Apr 15, 2008, 6:48 AM
Thread Re: [Andy] MySQL Query??
EZFrag 3771 Apr 16, 2008, 4:56 AM
Thread Re: [EZFrag] MySQL Query??
Andy 3788 Apr 16, 2008, 5:01 AM
Thread Re: [Andy] MySQL Query??
EZFrag 3779 Apr 16, 2008, 5:14 AM
Post Re: [EZFrag] MySQL Query??
Andy 3779 Apr 16, 2008, 5:16 AM