PHP Coding
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Coding

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old May 13th, 2008, 11:35 AM
trist4king trist4king is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: England
Posts: 63 trist4king User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 h 20 m 4 sec
Reputation Power: 2
Mysql approx values

hi

i have a database and i want to select all numerical values in it that are close to it.

say i put in the value 54.560 i want all to select all rows with values between 54.060 and 55.060

many thanks

tbo

------------------

forget this i was just being a dope, i was trying to do it in sql when i can just do it in the php before, however if it can be done in sql i would like to know.

ta

---------

doh its

BETWEEN $min AND $max

i am a fool sorry guys

Last edited by trist4king : May 13th, 2008 at 12:00 PM.

Reply With Quote
  #2  
Old May 13th, 2008, 12:47 PM
RevRaz RevRaz is offline
Registered User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: May 2008
Posts: 8 RevRaz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 16 m 20 sec
Reputation Power: 0
You can also use < and > parameters in SQL.

Quote:
Originally Posted by trist4king
hi

i have a database and i want to select all numerical values in it that are close to it.

say i put in the value 54.560 i want all to select all rows with values between 54.060 and 55.060

many thanks

tbo

------------------

forget this i was just being a dope, i was trying to do it in sql when i can just do it in the php before, however if it can be done in sql i would like to know.

ta

---------

doh its

BETWEEN $min AND $max

i am a fool sorry guys

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Coding > Mysql approx values


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway