J
|
Jane 5/20/2008 |
Hi, |
S
|
sweethard010 author 5/23/2008 |
hi Jane ... how am i going to do that ..??? where can i find the print deleted option? |
J
|
Jane 5/23/2008 |
Hi, |
S
|
sweethard010 author 5/23/2008 |
hi again...i have really no idea about that DELETE BUTTON.... as i look at my PRINTER FRIENDLY PAGE, I cannot see any BUTTON to ADD on my PRINT PAGE,.. How will i add a DELETE BUTTON ON PRINT PAGE..? |
J
|
Jane 5/23/2008 |
Hi, echo " <a href=# onClick=\"if (confirm('delete selected?')) window.location.href='TableName_print.php?delete=yes';\">Delete</a>";
if ($_SESSION["where"] && $_REQUEST["delete"]=="yes") { $strWhereClause = whereAdd($strWhereClause,$_SESSION["where"]); global $conn,$strTableName; $strDelete = "delete from ".$strTableName." where ".$_SESSION["where"]; db_exec($strDelete,$conn); echo "records was deleted"; } $_SESSION["where"] = $strWhereClause; |