Hi
there is an error when I want to call a funcion. What is wrong here?How should I write php code inside this function to return an box to say notes deleted already?
Thanks
nma
[PHP]
<?php
function DeleteEventNote s($noteID){
$noteID = (int) $_GET['noteID'];
$db->query("DELET E FROM EventNotes where userID = " . $_SESSION['user']->userID ." and noteID = $noteID ");
echo ("Notes Deleted");//how should I return an box to say notes deleted?
}
?>
[/PHP]
[HTML]
.......
<td width="200" align="left" valign="top" class="infoDele teText"><?php echo $delete = DeleteEventNote s( $movieDelete->noteID );?><br/></td>
...
[/HTML]
there is an error when I want to call a funcion. What is wrong here?How should I write php code inside this function to return an box to say notes deleted already?
Thanks
nma
[PHP]
<?php
function DeleteEventNote s($noteID){
$noteID = (int) $_GET['noteID'];
$db->query("DELET E FROM EventNotes where userID = " . $_SESSION['user']->userID ." and noteID = $noteID ");
echo ("Notes Deleted");//how should I return an box to say notes deleted?
}
?>
[/PHP]
[HTML]
.......
<td width="200" align="left" valign="top" class="infoDele teText"><?php echo $delete = DeleteEventNote s( $movieDelete->noteID );?><br/></td>
...
[/HTML]
Comment