while loop

How to Prevent Delete of Master Record If Child Record Exist in PHP

Submitted by mohammed shafraz on
Hi everyone, In this tutorial will see how to prevent delete from a parent/master record if data exist on another or related table. For this example, I have used programme and course table to prevent deletion of data in programme table, if programme name is available on course table. In this case, I have map the one-to-many relationship between programme table and course table. Here is the DEMO

ASP.NET Loops and Arrays

Submitted by rinvizle on
In this tutorial I will teach you how to make a loop statement and arrays in ASP.NET.

Included:

For Loops For Each Loops While Loops Arrays

Source Code

For Loops If you need to run the same statements repeatedly, you can make a program that loop. If you know how many times you want to loop, you can use a for loop.