Go Back   PCMech Forums > Help & Discussion > Internet, Web Applications, & The Cloud

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 02-10-2003, 10:24 PM   #1
Member (9 bit)
 
Join Date: Dec 2001
Location: US
Posts: 468
Send a message via AIM to wilbasket23 Send a message via Yahoo to wilbasket23
Question how to use MySQL software?

hello everyone
can anyone help me, i am trying to doing a project which require to use a database management program to do my project. so i choose to use MYSQL. but when i look at their manual is kind of complicated to figure out what did heck they saying, is any body know any websites have tutorial on how to use MySQl. or can anyone explain the basic things about MySQl, and show me how to use the simple query string so i can write my interface which can connect to the Mysql database. please help
wilbasket23 is offline   Reply With Quote
Old 02-11-2003, 07:18 AM   #2
Staff
Premium Member
 
mairving's Avatar
 
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
MySQL is an open-source database that is optimized for web applications and speed. It couldn't have reached it's popularity by itself though since it is command line driven. The true power of MySQL comes when hooked up with a scripting language like PHP or PERL.

Usually for connecting to the database, I use the DB_SQL class that comes with PHPLib. I will set this file in a folder below the public_html directory since it has username and passwords in it. From it, you can use some of it's functions to call database records.

For instance, at the top of the page, you would have this:
PHP Code:
require("pathto/db_mysql.inc");
$db_sql = new db_sql
Then for your query:
PHP Code:
$q "SELECT * from table_name ";
$q .= "WHERE column_name='value' ";
$db_sql->query($q);
$db_sql->next_record() ; 
Then call the values that you selected by:
PHP Code:
$db_sql->p("column_name")); 
It is pretty easy to do this way.
mairving is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


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

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



All times are GMT -5. The time now is 04:19 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2