Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Learning Joomla! 1.5 Extension Development
  • Table Of Contents Toc
Learning Joomla! 1.5 Extension Development

Learning Joomla! 1.5 Extension Development - Second Edition

close
close
Learning Joomla! 1.5 Extension Development

Learning Joomla! 1.5 Extension Development

Overview of this book

Table of Contents (14 chapters)
close
close
13
Index

Creating the database table

Before we set up an interface for entering reviews, we need to create a place in the database where they will go. We will start with a table where one row will represent one review. Assuming that your database prefix is jos_ (check Site | Global Configuration | Server if you are unsure), enter the following query into your SQL console:

CREATE TABLE `jos_reviews`
(
`id` int(11) NOT NULL auto_increment,
`name` varchar(255) NOT NULL,
`address` varchar(255) NOT NULL,
`reservations` varchar(31) NOT NULL,
`quicktake` text NOT NULL,
`review` text NOT NULL,
`notes` text NOT NULL,
`smoking` tinyint(1) unsigned NOT NULL default `0`,
`credit_cards` varchar(255) NOT NULL,
`cuisine` varchar(31) NOT NULL,
`avg_dinner_price` tinyint(3) unsigned NOT NULL default `0`,
`review_date` datetime NOT NULL,
`published` tinyint(1) unsigned NOT NULL default `0`,
PRIMARY KEY (`id`)
);

If you're using phpMyAdmin, pull up the following screen and enter jos_reviews as the table name...

Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Learning Joomla! 1.5 Extension Development
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist download Download options font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon