Current location: Hot Scripts Forums » Programming Languages » PHP » data type


data type

Reply
  #1 (permalink)  
Old 07-09-03, 07:08 PM
darkcarnival's Avatar
darkcarnival darkcarnival is offline
PHP/MySQL coder
 
Join Date: Jun 2003
Posts: 939
Thanks: 0
Thanked 0 Times in 0 Posts
data type

hi,

im getting ready to add tables to my database for my script and i need to know how to set these:

SSEARCH_Keyword:ID,Name,URL,Description,Keyword
SSEARCH_Log:ID,Date,Keyword,Results
SSEARCH_Settings:Name,User,Pass,Email,Results

i got an idea on some of them but i just want to double check.thx.
Reply With Quote
  #2 (permalink)  
Old 07-09-03, 07:45 PM
daynah's Avatar
daynah daynah is offline
Newbie Coder
 
Join Date: Jun 2003
Location: CA, USA
Posts: 69
Thanks: 0
Thanked 0 Times in 0 Posts
something like this?

Code:
CREATE TABLE SSEARCH_Keyword(id int(5) primary key auto_increment, Name varchar(50) default 'No Name', URL varchar(200), Description text, Keyword varchar(20));

CREATE TABLE SSEARCH_Log(id int(5) primary key auto_increment, mydate datetime default 0, Keyword varchar(20), Results text);

CREATE TABLE SSEARCH_Settings(Name varchar(50) primary key, User varchar(50), Pass varchar(20), Email varchar(20), Results text);
This would be my guess... but since I don't know how you're using the data, or what you want to store for those fields, I'm not too sure you would want to use what I wrote. Feel free to modify it though.
__________________
PHP Princess.net | Daynah.net
Reply With Quote
  #3 (permalink)  
Old 07-09-03, 07:52 PM
darkcarnival's Avatar
darkcarnival darkcarnival is offline
PHP/MySQL coder
 
Join Date: Jun 2003
Posts: 939
Thanks: 0
Thanked 0 Times in 0 Posts
well its for a search engine script.i have a book that shows me how but it doesnt have what i needed to know.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
type mismatch and update loop - HELP! seala ASP 1 09-22-03 05:27 PM
Print data by date perleo PHP 2 08-09-03 09:35 AM
Upload file type and size limiter! Arctic ASP 1 08-02-03 07:06 PM
cannot display the complete data najmun PHP 2 07-04-03 02:52 PM
Query Dump for blob field type ridwank PHP 4 06-20-03 11:35 AM


All times are GMT -5. The time now is 10:22 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.