English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Sample layout / diagram and Program please... Tnx

2006-11-02 12:55:24 · 2 answers · asked by edwinbiasbas 1 in Computers & Internet Programming & Design

2 answers

There is no way to "save a database". You only send queries to it. Some are called SELECT queries and they retrieve data from the database. Others are called INSERT queries and UPDATE queries; they write data to the database.

A complete example can be found in the PHP Manual:

http://www.php.net/mysql

(Scroll down to a code sample titled Example 1.)

2006-11-06 05:32:52 · answer #1 · answered by NC 7 · 0 0

well in php you have to start by having a server with mysql already up then you have to have one of each of these functions in tags

//to connect
mysql_connect(servername,username,password);

//to create a databse
mysql_query('CREATE DATABASE database_name');

//to insert into a table
mysql_query('INSERT INTO table_name VALUES (value1, value2)');

//and to select from a table
mysql_query('SELECT column_name(s) FROM table_name');

see http://w3schools.com/php/php_mysql_intro.asp for more info

2006-11-02 21:02:59 · answer #2 · answered by aenman123 2 · 0 0

fedest.com, questions and answers