Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
php script
#10
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

PHP Code:
if(!defined(@$connect)) {
    include 
"connect.php";


It will include the connect.php if $connect wasn't declared.
Reply


Messages In This Thread
php script - by andrewjs18 - 02-02-2010, 02:08 PM
RE: php script - by Gaijin - 02-02-2010, 02:10 PM
RE: php script - by andrewjs18 - 02-02-2010, 02:24 PM
RE: php script - by Gaijin - 02-02-2010, 02:30 PM
RE: php script - by andrewjs18 - 02-02-2010, 02:33 PM
RE: php script - by Gaijin - 02-02-2010, 05:36 PM
RE: php script - by andrewjs18 - 02-02-2010, 10:34 PM
RE: php script - by TheLifelessOne - 02-02-2010, 06:11 PM
RE: php script - by Gaijin - 02-02-2010, 06:14 PM
RE: php script - by Gaijin - 02-02-2010, 10:44 PM
RE: php script - by andrewjs18 - 02-02-2010, 10:51 PM
RE: php script - by Gaijin - 02-02-2010, 10:56 PM
RE: php script - by andrewjs18 - 02-03-2010, 10:18 AM
RE: php script - by Gaijin - 02-03-2010, 12:30 PM
RE: php script - by andrewjs18 - 02-03-2010, 11:35 PM
RE: php script - by Gaijin - 02-04-2010, 05:46 AM
RE: php script - by andrewjs18 - 02-04-2010, 01:36 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  PHP Framework List: An Ultimate Guide to 102 PHP Frameworks for Web Developers tk-hassan 0 956 07-27-2020, 11:26 PM
Last Post: tk-hassan
  Req. Upload PHP script. 3 X P L 0 I T 1 1,355 07-14-2012, 05:19 PM
Last Post: 'Snorlax
  PHP Video Tutorials (PHP For Beginners) Eleqtriq 4 3,705 10-10-2011, 01:00 PM
Last Post: Greyersting
  optimize mysql through a php script andrewjs18 7 3,378 10-05-2011, 06:31 PM
Last Post: John.
  Creating a simple PHP/MySQL login script ndee 16 10,530 05-14-2011, 02:18 AM
Last Post: モrainee

Forum Jump:


Users browsing this thread: 14 Guest(s)