View Full Version : Quick Php Help
Advanced Poll v2.02 (PHP/MySQL)
Copyright ©2001 Chi Kien Uong
URL: http://www.proxy2.de
Requirements:
- MySQL 3.2x or PostgreSQL 7.x
- PHP3 or PHP4
Installation:
1. Open the configuration file 'config.inc.php' with a text editor
and set up your database settings.
$POLLDB["dbName"] = "YourDBName";
$POLLDB["host"] = "localhost";
$POLLDB["user"] = "YourUsername";
$POLLDB["pass"] = "YourPassword";
2. Call the install script from your browser -> http://www.yourURL.com/poll/install.php
what do i put there?
asmithz
10-20-2003, 03:16 AM
DB stands for database, so i would think you would put your Database name. I dont know really. :lol:
well i dont own the server... and the dude that owns it doesnt know lol... i'll try putting DataBase there
asmithz
10-20-2003, 03:41 AM
I dont know PHP so i wouldn't know. ;)
still cant figure it out lol
Warning: mysql_connect(): Access denied for user: 'soul@localhost' (Using password: YES) in /home/toon-net/public_html/soul/poll/install.php on line 666
Advanced Poll v2.02 Installation
Welcome to the Installation Wizard for
Advanced Poll v2.02
Cannot connect to mysql database
Warning: mysql_connect(): Access denied for user: 'soul@localhost' (Using password: YES) in /home/toon-net/public_html/soul/poll/include/class_mysql.php on line 31
Connection Error
--------------------------------------------------------------------------------
MySQL Error : Connection Error
Error Number: 1044 Access denied for user: '@localhost' to database 'toon-net'
Date : Sun, October 19, 2003 22:53:09
IP : 162.84.244.235
Browser : Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322)
Referer :
PHP Version : 4.3.2
OS : Linux
Server : Apache/1.3.28 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.2 PHP/4.3.2 FrontPage/5.0.2.2634 mod_ssl/2.8.15 OpenSSL/0.9.6b
Server Name : www.toon-network.com
Script Name : /soul/poll/install.php
asmithz
10-20-2003, 04:03 AM
Mabey your address, or theres. :huh:
lol...
i tried a few times
now im makming the database name and user name the same
asmithz
10-20-2003, 04:17 AM
I am asking someone, just waiting for a response.
forum.mdf? or (yourname).mdf ?
mdf = meta data file. You are installing invision board or other forum?
asmithz
10-20-2003, 04:26 AM
Originally posted by DL.@19 October 2003 - 20:25
mdf = meta data file. You are installing invision board or other forum?
No his just making a poll goto http://proxy2.de/scripts.php to find what he is doing.
Then you have to create a database new and give it the name. Edit some .ini file with the new name of your server and database name.
so i cant create this new database? since i dont own the server some dude hosted me
asmithz
10-20-2003, 04:49 AM
I dont think thats it, mabey its you upload server. Try that.
i tried w/ my ftp user and pass it didnt work lol
You need to have this
<?php
/* path */
$poll_path = "/www/proxy2/html/poll";
require $poll_path."/include/config.inc.php";
require $poll_path."/include/$POLLDB[class]";
require $poll_path."/include/class_poll.php";
require $poll_path."/include/class_pollcomment.php";
$CLASS["db"] = new polldb_sql;
$CLASS["db"]->connect();
$php_poll = new pollcomment();
/* question */
echo $php_poll->get_poll_question(2);
But is it not included in the download files?
asmithz
10-20-2003, 05:04 AM
Originally posted by DL.@19 October 2003 - 20:59
You need to have thisEDITED FOR SPACE
But is it not included in the download files?
Thats stupid if they didnt add what you need, but its just a guide line for waht you need to edit.
yea... try dling the script its on that site
all they tell u is edit the config file...
This is from my guestbook
<?php
/* database settings */
$GB_DB["dbName"] = "toon-net_agbook3";
$GB_DB["host"] = "localhost";
$GB_DB["user"] = "toon-net_agbook3";
$GB_DB["pass"] = "edited but it was a bunch of numbers and letteres";
this wasnt a download and install... it was like those built in things... you can make guestbooks and forums... just like geocities free guestbook type of thing
From what I know, you obviously require three things here which you have to edit and put it in the config.inc.php file.
You need is:
Your database Name:
(create a new database and put the name here)
host:
(If you are on a server that provides mysql then your host is localhost. You have to find out going into FAQ or contacting them. If they are doing it externally then you have to give the address of the mysql host here.)
username:
(your username for mysql access. Usually it might be different from your normal login to the site)
password:
(password to sql server)
Where is your site hosted? You should find out those things before you proceed.
Powered by vBulletin® Version 4.2.3 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.