Register FAQ/Rules Forum Spy Search Today's Posts Mark Forums Read

Welcome to the Mac Forums forums. Please read the FAQ if you have questions. Register to participate.

 
Go Back   Mac Forums > Special Interests > Web Design and Development
TouchArcade.com - iPhone Game Reviews and News

Reply
 
Thread Tools Search this Thread Display Modes
Old Jan 4, 2006, 08:28 AM   #1
mpw
Guest
 
Join Date: Jun 2004
Help with a Database Query (I Think)

http://www.any domain.com/80256C0D005D32A8/WhiteContactDetails?SearchView&Query=([Surname]%20EQUALS%20Williams)&Start=1&SearchOrder=4

If I query the white pages website above it returns all the listings with the surname Williams.

Is there any thing I can do to that address to return all the listings for Williams and for example Williamson and Williamstone etc.?

The same source used to allow this but they changed the query screen so you had to visit their sponsor and now you have to put in the whole name exactly which screws me cause I can't spell.

Thanks in advance.
mpw is offline   Reply With Quote
Old Jan 4, 2006, 09:22 AM   #2
Wes
macrumors 68020
 
Wes's Avatar
 
Join Date: Jun 2001
Location: London
Send a message via ICQ to Wes Send a message via AIM to Wes Send a message via MSN to Wes Send a message via Yahoo to Wes
Just a stab in the dark:
Code:
http://www.domain.com/80256C0D005D32A8/WhiteContactDetails?SearchView&Query=([Surname]%20CONTAINS%20Williams)&Start=1&SearchOrder=4

http://www.domain.com/80256C0D005D32A8/WhiteContactDetails?SearchView&Query=([Surname]%20EQUALS%20Williams*)&Start=1&SearchOrder=4
Not sure if either of those would work, but worth a try.
Wes is offline   Reply With Quote
Old Jan 4, 2006, 10:20 AM   #3
sakasune
macrumors member
 
Join Date: Mar 2004
It's been awhile since i touched SQL but 'LIKE' might work also (that might just be Oracle though).
sakasune is offline   Reply With Quote
Old Jan 4, 2006, 11:08 AM   #4
mpw
Thread Starter
Guest
 
Join Date: Jun 2004
Quote:
Originally Posted by Wes
Just a stab in the dark:
Code:
http://www.domain.com/80256C0D005D32A8/WhiteContactDetails?SearchView&Query=([Surname]%20CONTAINS%20Williams)&Start=1&SearchOrder=4

http://www.domain.com/80256C0D005D32A8/WhiteContactDetails?SearchView&Query=([Surname]%20EQUALS%20Williams*)&Start=1&SearchOrder=4
Not sure if either of those would work, but worth a try.
Cheers tried both and neither do what I want although both do work at giving records with Williams just in different orders and Williams* gives one extra record.
mpw is offline   Reply With Quote
Old Jan 4, 2006, 12:24 PM   #5
mpw
Thread Starter
Guest
 
Join Date: Jun 2004
Quote:
Originally Posted by sakasune
It's been awhile since i touched SQL but 'LIKE' might work also (that might just be Oracle though).
Same again it works but displays the same info.

Another thing the results are limited to 100 records. I see the 'Start=' but nowhere that would limit the number of records, any ideas?

I also note that the error page I get states a full name is required for privacy reasons so that might just be that, fair enough.
mpw is offline   Reply With Quote
Old Jan 4, 2006, 05:42 PM   #6
belvdr
macrumors 68030
 
Join Date: Aug 2005
Quote:
Originally Posted by sakasune
It's been awhile since i touched SQL but 'LIKE' might work also (that might just be Oracle though).
This isn't SQL here. This is going straight to the web server code. They can hardcode the limit and how the query works, so you may have to deal with what they give you.
belvdr is offline   Reply With Quote

Reply

Mac Forums > Special Interests > Web Design and Development

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Forum Jump


All times are GMT -5. The time now is 02:24 PM.

Mac News | Mac Rumors | iPhone Game Reviews | iPhone Apps

Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright 2002-2009, MacRumors.com, LLC