|
Posted by Tony on 06/14/05 19:26
Raqueeb Hassan wrote:
>
>
> Here goes the code from phpfreaks.com, I added all required files like
> adminheader.php and config.php. Could you please look into the code?
Is that the EXACT code? If so, the problem is on the line just before the
<script language="javascript">
You need "?>" not ">" - and that would cause exactly the problem you're
describing. Also, you have no HTML <body> tag.
BTW, 'language="javascript"' is deprecated. You should use <script
type="text/javascript"> instead.
<?php
$s = $HTTP_GET_VARS["sort"];
include("adminheader.php"); // <-- added
>
<script language="javascript">
function confirmdelete(delurl) {
var msg = "Are you sure you want to Delete this Row?";
if (confirm(msg))
location.replace(delurl);
}
</script>
</head>
<?php
require("config.php"); // <-- added
<....>
--
Tony Garcia
http://www.dslextreme.com/~tony23/
Navigation:
[Reply to this message]
|