I need help installing a PHP and MySQL poll on my website! Help!

Oct 19, 2000
17,860
4
81
Hey guys. I start off by saying I know nothing about php or mysql, and pretty much need direct instructions on what to do.

Here is the poll I'm gonna use.

Any instruction on what to do will be GREATLY appreciated. Once I know how to do it, I should have no problem incorporating it into my site, link is in my sig.

Thanks!
 
Oct 19, 2000
17,860
4
81
Come on Ross! I think if I had any tiny bit of understanding of how php and mysql works, I could figure it out. But I'm clueless! I wouldn't think it'd be that hard with only 5-10 files to work with.

Anyone else out there who can give us some hints??
 

GagHalfrunt

Lifer
Apr 19, 2001
25,284
1,998
126
1) Create the db table using the poll.sql file, or use the info in that file to create a table using a telnet command line or a GUI like PHPMYAdmin
2) Edit the variables for host, user, password, etc in the config.inc.php file
3) Upload everything to a directory on your host
4) Use your browser to go to www.yourhost.com/directory/admin.php

If you're not capable of creating tables, ignore the above instructions and read a PHP/MySQL primer. Anything done in PHP/MySQL is going to assume that you have a clue. If not, you've got to start at the beginning and learn how to handle the basics before installing 3rd-party programs.
 

RossMAN

Grand Nagus
Feb 24, 2000
79,019
434
136
Thanks GagHalfrunt, I think I have all that down pat except for step 2.
 

GagHalfrunt

Lifer
Apr 19, 2001
25,284
1,998
126
Your web host should have provided you with the DB host name, your database(s) name(s), your DB user name and your password. All those things are mandatory for any database apps and there will be variables for easily setting them in any PHP/MySQL script. Almost always there will be a file name config.php or config.inc or something similar with "config" in the file name. Usually that's the only file that needs editing, at least by a beginner.
 
Oct 19, 2000
17,860
4
81
Thanks a million for those quickie instructions. I'll see what I can do with that, and Ross, if you have anything to add, feel free. I'll give it a whirl in a while and see what I can come up with.
 

GagHalfrunt

Lifer
Apr 19, 2001
25,284
1,998
126
I set the thing up on my PC and it's fine, there's no real setup involved other than creating the table and setting the variables. It's written in Italian and there's no readme with setup instructions, but it's simple enough that that shouldn't matter. Just create the table, set the variables, upload and you go to the admin page to create a poll.