02-02-2010, 10:44 PM
That is because the file was not meant for direct access, it requires a SQL connection...
The file is included at the bottom of coin.php and since the coin.php has established connection it works.
But if you try to access the list.php on it's own it fails, to solve that you put this at the beginning of the list.php
It will include the connect.php if $connect wasn't declared.
The file is included at the bottom of coin.php and since the coin.php has established connection it works.
But if you try to access the list.php on it's own it fails, to solve that you put this at the beginning of the list.php
PHP Code:
if(!defined(@$connect)) {
include "connect.php";
}
It will include the connect.php if $connect wasn't declared.