PHP Forums Archive

where db.php?

Tags: db.php

publisher posted on 2009-01-02 17:29:58 #

hello!
I congratulate you for your script Access_user Class, but a file is missing, I can not find it in the file db_config.php Online 2

include_once($_SERVER['DOCUMENT_ROOT'].'/classes/db.php');

where is db.php?

I can not find it

Comments / discussions

Olaf posted on 2009-01-02 18:32:38 #

from the manual:

Create a file called db.php (I place it into the folder classes which is one above the root), add this code with you database connection parameters:

<?php
define("DB_SERVER", "localhost");
define("DB_NAME", "database");
define ("DB_USER", "user");
define ("DB_PASSWORD", "password");
?>

vikidigi posted on 2009-01-09 21:30:08 #

plz help
i get the meaasge[13] at the line 322 in the access_users_class.php
when i submit on register page i get message

"Sorry, an error occurred please try it again."

my setting in db_config.php are

// change these settings to use phpmailer in place of the PHP mail() function
define("USE_PHP_MAILER", true); // true = use phpmailer
define("PHP_MAILER_SMTP", false); // true send by SMTP, false = sendmail
// if you enable these features you need to install the phpmailer class!
if (USE_PHP_MAILER) include_once($_SERVER['DOCUMENT_ROOT']."/classes/PHPMailer/class.phpmailer.php");
if (PHP_MAILER_SMTP) {
define("SMTP_SERVER", "ssl://smtp.gmail.com:465");
define("SMTP_LOGIN", "vikidigi@gmail.com");
define("SMTP_PASSWD", "password_123");
}

plz help soon
thanx

publisher posted on 2009-01-20 16:47:21 #

thanks very much!

ken2004 posted on 2009-02-08 20:04:41 #

)
Warning: Division by zero in /home/familyke/public_html/classes/count_visitor_statistics/count_visitors_class.php on line 124
0

i get this error at /classes/count_visitor_statistics/visitor_statistics.php

Olaf posted on 2009-02-08 20:21:12 #

how is this related to that topic? Please open a new thread...

james_womack posted on 2009-05-20 00:05:18 #

I was wondering what was going on here. Thanks for the help. This is the first pagination script that's worked for me. Great work.

Olaf posted on 2009-05-20 05:25:51 #

Quote from: james_womack
"I was wondering what was going on here. Thanks for the help. This is the first pagination script that's worked for me. Great work."

What is your question?

francescoflore posted on 2009-06-28 16:08:45 #

Hi, I have downloaded your script and went through it. Although I can make it work to upload pics, I haven't managed to upload file name in specific fields of a table in database. Such as Image_1, Image_2 and so on. How can I upload a pic and make sure details of its location are stored in db?

I am new with php and any help would be really greatly appreciated.
Francesco

Olaf posted on 2009-06-28 18:20:16 #

please start a new thread and provide the code which doesn't work