close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Data Assist insert and delete item question

Thread began 6/21/2010 11:34 pm by nick354316 | Last modified 6/25/2010 6:06 pm by nick354316 | 994 views | 5 replies

Dave BuchholzBeta Tester

Nick add a flag in the database called active (or publish which is what I call mine) and then add a checkbox to the admin page to check or uncheck to show / hide on the main site. You will need to add the check into your sql for the product as well.

Example database table:

CREATE TABLE `tbl_categories` (
`id` int(11) unsigned NOT NULL auto_increment COMMENT 'Primary Key',
`title` tinytext COMMENT 'Name - Max 255 Characters (String)',
`details` text COMMENT 'Description - Max 65,535 Characters (String)',
`image` varchar(100) default NULL COMMENT 'Image File - Max 100 Characters (Fixed Length)',
`publish` tinyint(1) NOT NULL default '0' COMMENT 'Publish Option (0 = Unpublished, 1 = Published)',
`tstampinsert` int(11) unsigned default NULL COMMENT 'Insert Timestamp use <?php echo time(); ?> in a hidden field in your form',
`tstampupdate` int(11) unsigned default NULL COMMENT 'Update Timestamp use <?php echo time(); ?> in a hidden field in your form',
`url` tinytext COMMENT 'URL Parameter for Mod Rewrite - Max 255 Characters (String)',
`dateinsert` date default NULL,
`dateupdate` date default NULL,
FULLTEXT KEY `title` (`title`),
FULLTEXT KEY `details` (`details`)

and in your sql you would have something like:

SELECT tbl_categories.title AS category, tbl_categories.details, tbl_categories.image FROM  tbl_categories WHERE tbl_categories.publish = 1

screenshot of the relevant part a typical admin panel that I build is attached.

Hope that helps you get going.


Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...