Current location: Hot Scripts Forums » Programming Languages » PHP » problem with php script


problem with php script

Reply
  #1 (permalink)  
Old 01-17-04, 03:47 PM
kappler0's Avatar
kappler0 kappler0 is offline
Newbie Coder
 
Join Date: Jan 2004
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
problem with php script

Hi - I was trying to use the script - AudiStat - on our site for web
statistic reporting - it works fine on all main folder pages - except when
we try to add the code to our phpMydirectory index page. Any assistance is
appreciated. Thanks

The directory is in a separate folder, here is the basics: ( view the
reporting at www.cablingassist.com/stats )

location of Audistat: cablingassist.com/stats
location of page not reporting: cablingassist.com/directory/index.php

The code instructed to place at the end of all php pages is: <?php
require($REDIRECT_HOMEDIR . "stats/stats.php"); ?>

<?php require($REDIRECT_HOMEDIR . "stats/stats.php"); ?> gives no
reporting at all and seems to do nothing
<?php require($REDIRECT_HOMEDIR . "../stats/stats.php"); ?> gives a
Can't select database : $!

Thanks again...
Scott
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 01-17-04, 05:57 PM
Pineapple Pineapple is offline
Newbie Coder
 
Join Date: Jun 2003
Location: Phoenix, AZ
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
I would assume that if the latter gives you an error about the database then it is including the file properly. At this point you should probably look at the MySQL configuration for the script, make sure you have the database name set properly.
__________________

Pineapple Technologies :: http://www.pineappletechnologies.com

Lore - a powerful knowledge base management system which uses PHP, MySQL, and Smarty templates.

QuizShock - an advanced quiz management system using PHP, MySQL, and Flash.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 01-18-04, 11:58 AM
kappler0's Avatar
kappler0 kappler0 is offline
Newbie Coder
 
Join Date: Jan 2004
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Pineapple
I would assume that if the latter gives you an error about the database then it is including the file properly. At this point you should probably look at the MySQL configuration for the script, make sure you have the database name set properly.
Thanks - you were correct - it was the db user assignments

Scott
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 05-04-04, 12:07 PM
grads grads is offline
New Member
 
Join Date: May 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy

Quote:
Originally Posted by kappler0
Thanks - you were correct - it was the db user assignments

Scott

Please could you tell me what you did? I'm having real problems trying to figure this one out. The mySQL details I'm using have worked for other application with no problems.

I've created a new database and new user both called "gradpads_stat".

In AudiStat I've edited the config.php file to:

<?php

$sql_host="localhost";
$sql_login="gradpads_stat";
$sql_passe="MYPASSWORD";
$sql_dbase="gradpads_stat";
$sql_table="stats";

?>


I am still getting the "Can't select database : $!" report.

Can anyone help?

Many thanks!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with PHP/.htaccess script, when using Internet Explorer digioz PHP 7 07-27-07 12:17 AM
Is there any integrity of script rankings? webmaster@atmanager.com Hot Scripts Forum Questions, Suggestions and Feedback 17 08-06-04 01:12 AM
100 Web Templates & 10 PHP Scripts for sale! HostersUK.co.uk General Advertisements 0 01-10-04 01:31 AM
Affiliate script (PHP) whtiebear Job Offers & Assistance 2 12-21-03 01:12 AM
PHP Search script problem vispa PHP 1 11-22-03 01:22 PM


All times are GMT -5. The time now is 09:57 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.