MS SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesMS SQL Development

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 Dev Shed Forums Sponsor:
  #1  
Old June 30th, 2004, 02:28 AM
stuarttaylor stuarttaylor is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 2 stuarttaylor User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
SQL Virgin Needs help

I'm setting up a FAQ page but i would like to add a search section for it, i have never used mssql before yesterday and i'm finding it a bit over whelming,

the faq are written in php... the tables are...

#
# Table structure for table `faqs`
#

CREATE TABLE `faqs` (
`id` int(11) NOT NULL auto_increment,
`category_id` int(11) default NULL,
`question` longtext,
`answer` longtext,
PRIMARY KEY (`id`)
) TYPE=MyISAM AUTO_INCREMENT=17 ;


i need to write a query to read all that is in the database and return the information on screen.... with the question and answer from the search word/words the user puts in on a webform.

can anyone help me with what query i use?

Lost & Confused

"i'm somewhere where i dont know where i am!

Reply With Quote
  #2  
Old June 30th, 2004, 04:53 AM
swampBoogie swampBoogie is offline
Contributing User
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Jan 2003
Location: Paris Uppland
Posts: 1,784 swampBoogie User rank is Sergeant Major (2000 - 5000 Reputation Level)swampBoogie User rank is Sergeant Major (2000 - 5000 Reputation Level)swampBoogie User rank is Sergeant Major (2000 - 5000 Reputation Level)swampBoogie User rank is Sergeant Major (2000 - 5000 Reputation Level)swampBoogie User rank is Sergeant Major (2000 - 5000 Reputation Level)swampBoogie User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 2 Weeks 4 Days 21 h 42 m 49 sec
Reputation Power: 37
That table definition is written for Mysql not mssql.

Reply With Quote
  #3  
Old June 30th, 2004, 05:05 AM
stuarttaylor stuarttaylor is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 2 stuarttaylor User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
reply

sorry it has been converted now to mssql... it all works etc...

so basically i have 1 database:

help_FAQ

within this i have a 2 table :

`faqcategories`

`faqs`

inside the latter i have
`category_id`
`Questions`
`Answers`

would anyone be able to post an example of how i would pull the information from the database from a key work that has been input by a user doing a search?

any help would be appreciated... i am new to this.....


Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMS SQL Development > SQL Virgin Needs help


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
Stay green...Green IT