Use the Delete Record server behavior Dreamweaver and PHP


show more Using the Delete Record server behavior provides you with in-depth training on Business. Taught by David Gassner as part of the Dreamweaver with PHP and MySQL show less
please wait ...

Using the Delete Record server behavior

The last step in creating a data management system is to give the user a way to delete data from the MySQL table. I'll start this exercise by creating a completely new file. I'll select File > New and then create a new blank PHP page. I'll go into Code View, and I'm going to delete all of the HTML in the page. The user will never see this page rendered in the browser. It will execute a backend database operation to delete a record and then immediately return to the list page.

Then I'll save the file into the same folder that contains my other data management pages, and I'll name it explorerdelete.php. I'm going to add a server behavior. I'll go to the Server Behaviors panel, click plus, and choose Delete Record. In the Delete Record dialog, I'll check my Connection and then set the Table to Explorers. I've accepted the settings for the Primary key column and value, and then indicate that after deleting, I want to go to explorerlist.php.

When I cli...

Using the Delete Record server behavior
Video duration: 5m 34s 4h 55m Intermediate Updated Jun 12, 2012

Viewers:

Using the Delete Record server behavior provides you with in-depth training on Business. Taught by David Gassner as part of the Dreamweaver with PHP and MySQL

Subjects:
Business Developer Web
Software:
Dreamweaver
Author:
please wait ...