CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Directory Maintenance and Deleting Categories.

Print topic Send  topic

Author Message
electofaysal

Posts: 7
Posted: 07/14/2004, 6:44 AM

Hi.

ok here is the problem.

As you all see ... in the directory maintenance example ... we can edit any category in a directiry ... and its sub categories etc etc.

I want to integrate some support such that when a user deletes a parent category ... all the sub-categories within it delete also ... any ides what needs to be done and where ? All help would be appreciated.

Basically ... something that checks checks records with the same parent_id and deletes them also

DELETE from cat WHERE parent_id="cat_id" should be the sql ... but how do i implement it ?
View profile  Send private message
klwillis


Posts: 428
Posted: 07/14/2004, 9:26 AM

:::

Assuming the deletion of the parent category is successful,
you could place custom record deletion code within the
'After Delete' event:

DBDirectory.Execute ("delete from cat where parent_id = cat_id");

(DBDirectory is defined as one of your project database connections)

_________________
Kevin Willis, VP/CIO
HealthCare Information Technology Specialist
http://www.nexushealthcare.com
"Fast - Convenient - Quality-Care"

Medical Software Consulting Services
Email : klwillis@nexushealthcare.com
Skype : klwillis2006
View profile  Send private message
electofaysal

Posts: 7
Posted: 07/30/2004, 12:51 AM

cn someone give me a run down of this in PHP ?
View profile  Send private message
Don Safar
Posted: 07/30/2004, 7:57 AM

In ccs help do search on "custom sql"
"electofaysal" <electofaysal@forum.codecharge> wrote in message
news:54109fdef3ece8@news.codecharge.com...
> cn someone give me a run down of this in PHP ?
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>


Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.