General SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesGeneral SQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old February 6th, 2003, 10:10 PM
GreenHornet GreenHornet is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Posts: 16 GreenHornet User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Having trouble reiterating through search records

I have been doing Mitchells tutorial on adding a php search facility to your site - including modifying the searchdocs.php file, although only slightly to suit databases already online.

I only receive one result for display. It is always the last article (or "JobId") in the select query...

I think the placement of the '$count' or '$count++' may have something to do with my problem.

I also do not think that my keywords are being exploded (same again - seems to be using the last keyword entered also...)

Other possible fault is there SELECT query syntax on the WHERE clause.

Thanks for any help.
Attached Files
File Type: txt searchdocs.txt (3.2 KB, 347 views)

Reply With Quote
  #2  
Old February 7th, 2003, 03:47 AM
GreenHornet GreenHornet is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Posts: 16 GreenHornet User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Later, back at the ranch...

I've been able to get listings for each article category, although there is still only the final article displayed for the select statement....

I've atteched the code that has gotten me to this point.

NB: I have reworked the table_column_names to suit Mitchells tutorial and this has helped some.
Attached Files
File Type: txt searchdocs2.txt (3.2 KB, 417 views)

Reply With Quote
  #3  
Old February 9th, 2003, 11:33 AM
FrankieShakes FrankieShakes is offline
Frank The Tank!
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: Jun 2002
Location: Toronto, Canada
Posts: 1,246 FrankieShakes User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Send a message via ICQ to FrankieShakes Send a message via MSN to FrankieShakes
GreenHornet,

Do you have a site where I can check out the results? I've looked through the code, and I can't seem to locate the problem... Mind you, this is after a night out on the town, so I may not be reading things properly this morning!

Seriously though, if you have a site where I can check it out, it may help me determine the problem.
__________________
____________________________________________
Developer Shed Weekly Writer | DevArticles Forum Moderator
Build Your Own KlipFolio Klip With PHP
FrankManno.com - Under Construction
Design Interactive Group - Under Construction

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesGeneral SQL Development > Having trouble reiterating through search records


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 5 hosted by Hostway
Stay green...Green IT