Database Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesDatabase Help

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 August 30th, 2003, 01:04 AM
berniez berniez is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Geelong, Victoria, Australia
Posts: 4 berniez User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
alphabet

thanks for your help on record insert. Just 1 more problem. What I am trying to do is get an alphabet listing from my database.
I have 'A B C etc all letters on page if person selects a letter I would like all items starting with that letter to be displayed on the same page under the letter selection. Also must be able to link from displayed data to a detail page.
eg: list of cities starting with selected letter than select city and go to detail page.I am using DW MX,apache,php,mysql,win XP.
Thanks in advance

Reply With Quote
  #2  
Old August 30th, 2003, 08:52 AM
tkarkkainen's Avatar
tkarkkainen tkarkkainen is offline
Moderator
Click here for more information
 
Join Date: Apr 2007
Location: Finland
Posts: 2,320 tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)  Folding Points: 10700 Folding Title: Novice Folder
Time spent in forums: 6 Days 8 h 46 m 16 sec
Reputation Power: 4
RE: alphabet

php Code:
Original - php Code
  1.  
  2. $userHasSelected="A"//user wants all the rows that begin with 'a'
  3.  
  4. $sql="SELECT * FROM tablename WHERE fieldname LIKE '$userHasSelected%'";

Reply With Quote
  #3  
Old August 30th, 2003, 10:58 AM
berniez berniez is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Geelong, Victoria, Australia
Posts: 4 berniez User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: alphabet

Thanks I got that part. But how do I show it via a link from letter 'A' to show all listings on same web page.

Reply With Quote
  #4  
Old August 30th, 2003, 12:14 PM
tkarkkainen's Avatar
tkarkkainen tkarkkainen is offline
Moderator
Click here for more information
 
Join Date: Apr 2007
Location: Finland
Posts: 2,320 tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)  Folding Points: 10700 Folding Title: Novice Folder
Time spent in forums: 6 Days 8 h 46 m 16 sec
Reputation Power: 4
RE: alphabet

The link is:

listing.php?show=A

and in the code add:
php Code:
Original - php Code
  1.  
  2. if isset($_GET['show'])
  3.   $userHasSelected = $_GET['show'];

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesDatabase Help > alphabet


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 2 hosted by Hostway