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:
  #1  
Old December 9th, 2003, 08:42 PM
The Squirrel The Squirrel is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Mid-Indiana, USA
Posts: 153 The Squirrel User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
Send a message via ICQ to The Squirrel
Best way to do this...

Ok, I'm getting the hang of PHP and I am creating a page that will access a DB in order to search the site.
Now what would be the best way to store the information in the DB?
The following is one way I thought of doing it:


Code:
CREATE DATABASE Product Line
CREATE TABLE Adhesive Application (Adhesive Application Conveyor VARCHAR(25);


Then in that table I would insert my text for that particular product. The text for different pages varys from a couple lines to a few paragraphs. Would it be wise to do it like that, or better to use a .txt file for each product to read from?

The search will function like any other search. It will look through all tables for a match to keywords or similar keywords and then display the links to the pages it finds.

Thanks in advance,

The Squirrel

Reply With Quote
  #2  
Old December 10th, 2003, 01:40 AM
postalcow postalcow is offline
Codewalkers Beginner (1000 - 1499 posts)
 
Join Date: Apr 2007
Location: Ford CIty, PA USA
Posts: 1,267 postalcow User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 4
Send a message via Yahoo to postalcow
RE: Best way to do this...

Quote:
Assume you have a 10kg squirrel.
E=mc^2
E=1kg(3x10^8m/s)^2=9x10^16J
which, if I'm not mistaken, is equivilent to roughly a 50 megaton nuclear bomb.
Fear the squirrel.


OK, So if in fact you could convert the squirrel in to pure energy and we know that E is energy amd M is mass and C is 3x10^8m/s or the speed of light. The amount of energy in any givin mass would equal the amount of mass times the speed of light squared. This would make Mass and Energy the same thing correct? So you would have to change your formula to this below

So 1 Kg like you said is...
E = mc2 = 1kg(3x10^8m/s)2

So a 10 Kg would be equal to 200 Megaton's or 400,000 Lbs of TNT.

But a 22.046 Lb Squirrel is a huge Squirrel don't you think.

This means that Einstein's relationship between matter and energy, 200 megaton's of energy would be released if about 10 Kilograms of matter was completely converted into energy.

I think ?????? I m just rambling. Physics was never a strong point for me.

Sorry, I could not resist
Don't mind me, I'm just a cow.

Reply With Quote
  #3  
Old December 10th, 2003, 01:26 PM
The Squirrel The Squirrel is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Mid-Indiana, USA
Posts: 153 The Squirrel User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
Send a message via ICQ to The Squirrel
RE: RE: Best way to do this...


Quote:

I think ?????? I m just rambling. Physics was never a strong point for me.

Sorry, I could not resist
Don't mind me, I'm just a cow.


Sounds good to me. I don't know any physics pretty much, or at least what I did know I forgot by now. I just copied and pasted the quote and assumed the original author knew what he/she was talking about.

The Squirrel

Reply With Quote
  #4  
Old December 10th, 2003, 02:10 PM
The Squirrel The Squirrel is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Mid-Indiana, USA
Posts: 153 The Squirrel User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
Send a message via ICQ to The Squirrel
RE: RE: RE: Best way to do this...

While I have this open... I looked around but can't find an answer to this that has been discussed already.
Is it possible to transfer a database from one computer to another? I am designing our webpage and everything here at my workstation, and then when I am done I plan on just transferring files into new folder for the new site. Is it possible to do my database here as well? Or would I have to design and build that on the server itself?

Thanks,
The Squirrel

Reply With Quote
  #5  
Old December 10th, 2003, 04:21 PM
postalcow postalcow is offline
Codewalkers Beginner (1000 - 1499 posts)
 
Join Date: Apr 2007
Location: Ford CIty, PA USA
Posts: 1,267 postalcow User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 4
Send a message via Yahoo to postalcow
RE: Best way to do this...

I would have a different field for each one. You can't beat the speed of a sql database as to searching a txt file

Reply With Quote
  #6  
Old December 16th, 2003, 04:21 PM
The Squirrel The Squirrel is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Mid-Indiana, USA
Posts: 153 The Squirrel User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
Send a message via ICQ to The Squirrel
RE: Grant user

I'm back. Instead of opening another thead, I thought I'd revive this one for another question.
In MySQL I'm trying to create some users that I will be using for access to the database when someone visits the site and uses the search function but I cannot get it to work.

Here is what I insert into MySQL:
Code:
grant all
on *
to admin identified by 'my_password'
with grant option;


when I execute that command here is what I get:
Code:
ERROR 1044: Access denied for user: '@localhost' to database 'engineering'


I've searched the forum for similar problems and came across a couple, but the solutions to their problems didn't help any.

As always, I thank you in advance for any help.

The Squirrel

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesDatabase Help > Best way to do this...


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




 Free IT White Papers!
 
Create the Optimal Architecture for your Critical Applications
Warburton's the largest independently owned bakery in the UK faced a number of difficult challenges in providing the most robust yet efficient IT infrastructure for their organization's success. IBM's services combined with their xSeries servers created the perfect platform for their SAP environment with sufficient flexibility, and did so in very time effective fashion.

Request Your Free Technology Downloads!
 
Five Best Practices for Deploying a Successful Service-Oriented Architecture
This white paper describes the benefits you can expect with SOA, and how IBM can help take your business there.

Request Your Free Technology Downloads!
 
Gartner Magic Quadrant for Application Delivery Controllers
Gartner summarizes its view on Application Delivery Controllers, evaluates strengths and weaknesses of solutions, and provides Magic Quadrant reporting for a quick comparison across all vendors. Learn from Gartner how you can benefit from an all-in-one device like Citrix NetScaler that delivers the highest levels of availability, performance and security.

Request Your Free Technology Downloads!
 
Knowledge is Power
What you don't know can hurt you, and is likely costing you money and increasing your security risks during an era of scarce resources. This white paper proposes six key strategies that enterprise security managers can use to improve their network defense posture.

Request Your Free Technology Downloads!
 
Rationalizing the Multi-Tool Environment
The rationalized multi-tool approach is flexible, scalable and cost effective. It provides the necessary input to the IT service management business processes. It preserves prior investments in monitoring tools, empowers technologists to select the best tools with which to do their jobs, and enhances effective response to incidents.

Request Your Free Technology Downloads!
 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 




© 2003-2010 by Developer Shed. All rights reserved. DS Cluster 6 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek