You are here: Re: PHP returns no error, but a blank page! « PHP Programming Language « IT news, forums, messages
Re: PHP returns no error, but a blank page!

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация