Difference between revisions of "PHP: Membuat Guest Book Sederhana"

From OnnoWiki
Jump to navigation Jump to search
(Created page with "Sumber: http://www.phpeasystep.com/phptu/15.html http://www.phpeasystep.com/workshopview.php?id=16 Yang perlu dibuat * Table "guestbook" in database "test". * guestbook.ph...")
 
Line 12: Line 12:
  
 
==Membuat tabel guestbook==
 
==Membuat tabel guestbook==
 +
 +
mysql -u root -p123456
 +
 +
create database test;
 +
use test;
 +
grant ALL on root.* to test@localhost;
 +
 +
CREATE TABLE `guestbook` (
 +
`id` int(4) NOT NULL auto_increment,
 +
`name` varchar(65) NOT NULL default '',
 +
`email` varchar(65) NOT NULL default '',
 +
`comment` longtext NOT NULL,
 +
`datetime` varchar(65) NOT NULL default '',
 +
PRIMARY KEY (`id`)
 +
) DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

Revision as of 13:11, 9 May 2018

Sumber:

http://www.phpeasystep.com/phptu/15.html
http://www.phpeasystep.com/workshopview.php?id=16


Yang perlu dibuat

  • Table "guestbook" in database "test".
  • guestbook.php.
  • addguestbook. php.
  • viewguestbook.php


Membuat tabel guestbook

mysql -u root -p123456
create database test;
use test;
grant ALL on root.* to test@localhost;
CREATE TABLE `guestbook` (
`id` int(4) NOT NULL auto_increment,
`name` varchar(65) NOT NULL default ,
`email` varchar(65) NOT NULL default ,
`comment` longtext NOT NULL,
`datetime` varchar(65) NOT NULL default ,
PRIMARY KEY (`id`)
) DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;