Run Code on Child record |
10/3/2011 4:42:24 AM |
PHPRunner General questions | |
![]() PHPR 5.3 B7474 $("input[type='button'][name='deletebut']").click(function(e){
$("input[type='button'][name='deletebut2']").click(function(e){
|
|
C
|
cgphp 10/3/2011 |
Both codes go in the "Javascript OnLoad" event of the list page. Please, post the code of the deleterecord.php and deleterecord2.php. |
![]() |
jclabuschagne author 10/3/2011 |
Both codes go in the "Javascript OnLoad" event of the list page. Please, post the code of the deleterecord.php and deleterecord2.php.
<?php
<?php |
C
|
cgphp 10/3/2011 |
Remove the single quote around the $_POST['id'] variable. The correct versions are: $query = "DELETE FROM FanComments WHERE CommentID=".$_POST['id'];
$query = "DELETE FROM CommentsOnComments WHERE CommentsOnCommentsID=".$_POST['id']; |