PDA

View Full Version : Quick Php Help



ooo
10-20-2003, 02:10 AM
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:

ooo
10-20-2003, 03:28 AM
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. ;)

ooo
10-20-2003, 03:47 AM
still cant figure it out lol

ooo
10-20-2003, 03:55 AM
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:

ooo
10-20-2003, 04:13 AM
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.

ooo
10-20-2003, 04:18 AM
4 time error lol

DL.
10-20-2003, 04:22 AM
forum.mdf? or (yourname).mdf ?

ooo
10-20-2003, 04:23 AM
huh?

DL.
10-20-2003, 04:25 AM
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.

ooo
10-20-2003, 04:28 AM
wow this is hard lol

DL.
10-20-2003, 04:30 AM
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.

ooo
10-20-2003, 04:42 AM
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.

ooo
10-20-2003, 04:58 AM
i tried w/ my ftp user and pass it didnt work lol

DL.
10-20-2003, 04:59 AM
You need to have this
<?php

/* path */
&#036;poll_path = "/www/proxy2/html/poll";

require &#036;poll_path."/include/config.inc.php";
require &#036;poll_path."/include/&#036;POLLDB[class]";
require &#036;poll_path."/include/class_poll.php";
require &#036;poll_path."/include/class_pollcomment.php";
&#036;CLASS["db"] = new polldb_sql;
&#036;CLASS["db"]->connect();

&#036;php_poll = new pollcomment();

/* question */
echo &#036;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.

ooo
10-20-2003, 06:07 AM
yea... try dling the script its on that site


all they tell u is edit the config file...

ooo
10-20-2003, 06:10 AM
This is from my guestbook


<?php

/* database settings */

&#036;GB_DB["dbName"] = "toon-net_agbook3";
&#036;GB_DB["host"]&nbsp; = "localhost";
&#036;GB_DB["user"]&nbsp; = "toon-net_agbook3";
&#036;GB_DB["pass"]&nbsp; = "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

I.am
10-20-2003, 07:25 AM
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.