Web Services .NET Grid: Preparing Database



Web Services PHP - Grid .NET Step By Step Tutorial - Part 2: For this practice, we use database. From this database, we get data. All of record will be convert to a line with string format. This is its database:

First, create a database named "test". Then, create a table named "books". The query is:

CREATE TABLE `books` (
  `id` int(11) NOT NULL auto_increment,
  `title` varchar(150) NOT NULL,
  `author` varchar(150) NOT NULL
  PRIMARY KEY  (`id`)
);

You can use phpMyAdmin to easy job.

Then, insert sample data such as:

INSERT INTO `books` (`id`, `title`, `author`) VALUES (1, 'PHP AJAX', 'Andreas');
INSERT INTO `books` (`id`, `title`, `author`) VALUES (2, 'PHP Eclipse ', 'George');
INSERT INTO `books` (`id`, `title`, `author`) VALUES (3, 'PHP Prado', 'Junyian');
INSERT INTO `books` (`id`, `title`, `author`) VALUES (4, 'PHP Zend Framework', 'Ozulian');
INSERT INTO `books` (`id`, `title`, `author`) VALUES (5, 'PHP Web Services', 'Bobi');
INSERT INTO `books` (`id`, `title`, `author`) VALUES (6, 'PHP API', 'Hugo');
INSERT INTO `books` (`id`, `title`, `author`) VALUES (7, 'PHP SEO', 'Monteo');


Series this article:
Web Services .NET Grid: Create WSDL Document
Web Services .NET Grid: Preparing Database
Web Services .NET Grid: Create SOAP Server
Web Services .NET Grid: Testing with SOAP client
Web Services .NET Grid: Creating User Interface for VB.NET
Web Services .NET Grid: Retrieve Data and Show to Data Grid


Tag: web services, wsdl, .net, vb.net, database, phpmyadmin Category: PHP Application Post : April 15th 2008 Read: 1,364 Bookmark and Share

blog comments powered by Disqus