O'Reilly logo

Learning Joomla! 1.5 Extension Development by Joseph L. LeBlanc

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Adding comments

Most visitors will take our word for it when we say that a restaurant is great (or that it isn't). However, there may be a few who disagree. Why not give them the opportunity to leave comments about their experiences with the restaurant? We'll need a place to store these comments, so enter the following SQL command into your database console:

CREATE TABLE `jos_reviews_comments` (
`id` int(11) NOT NULL auto_increment,
`review_id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`full_name` varchar(50) NOT NULL,
`comment_date` datetime NOT NULL,
`comment_text` text NOT NULL,
PRIMARY KEY (`id`)
)

If you're using phpMyAdmin, pull up the following screen and enter jos_reviews_comments as the table name and 6 in the Number of fields section: ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required