Hi I am a PHP newbie. I found a PHP Poll script that I really like and want to use on my site. The configuration file is pretty straightforward except for a couple parts:
// Settings for database
$db_path = "localhost"; // Path for the database
$db_username = "username"; // Username for the database
$db_password = "password"; // Password for the database
$db_base = "database"; // Name of the database
1. For the path to the database, would I put in <!-- w --><a class="postlink" href="http://www.mysite.com">www.mysite.com</a><!-- w --> or <!-- w --><a class="postlink" href="http://www.mysiteshost.com">www.mysiteshost.com</a><!-- w --> or what?
2. For username and password do I just put in the same as what I use to log onto the server?
3. What is the name of my database?
Then, in the installation instructions, it says:
"To install the script you need to configure the settings.php file first.
The file is located in MyPoll_v2.2/poll/settings.php. When you are
complete with editing this file you need to copy it to the /admin
directory too. When promped to overwrite select Yes. settings.php needs
to be the same in /poll and /admin directory."
Where is this /admin directory? There was no admin file or folder included in the zip file. Is there supposed to be an /admin directory on my server? I am using Internet Explorer as my FTP Client and to view, etc. my files and I do not see it listed.
Here is a link to the page where you can Download it:
<!-- m --><a class="postlink" href="http://www.hotscripts.com/Detailed/13185.html">http://www.hotscripts.com/Detailed/13185.html</a><!-- m -->
If anyone can help I'd appreciate it. Thanks!
Chris1. For the path to the database, would I put in <!-- w --><a class="postlink" href="http://www.mysite.com">www.mysite.com</a><!-- w --> or <!-- w --><a class="postlink" href="http://www.mysiteshost.com">www.mysiteshost.com</a><!-- w --> or what? - no, you only need the database name
2. For username and password do I just put in the same as what I use to log onto the server? - yes
3. What is the name of my database? - well you create a database and then whatever you name it, thats it
Where is this /admin directory? There was no admin file or folder included in the zip file. Is there supposed to be an /admin directory on my server? - by the sounds of it, it expects you to make one
hope this helpsSo how do I create this database? Isn't MySQL a database? That is what my server has on it.use PHPMyAdmin to create your database
MySQL is the language, the database uses this language// Settings for database
$db_path = "localhost"; // Path for the database
$db_username = "username"; // Username for the database
$db_password = "password"; // Password for the database
$db_base = "database"; // Name of the database
only change the ones in blue. your database name is whatever you host made it. most of the time you do not have a option of making your own database or naming it. ask you host if you hav ethe permissions to do so. if not they will suply it for you. they will also give you the username and password.
use a program that does ftp. doen't use IE as it is very limited. I use ws_ftp but there are many others that are free.You know what? I just figured it out. I went to my host's website and created a database. The action is pending, so now I just have to wait I guess. I created a username and password. I'm sure it will have an admin file or whatever in it, right? I wonder why this Poll Script requires a database as opposed to other scripts? Do the others use "flat" files? I have seen that term used before somewhere. Thanks a lot for your help!
Chrisusing a database is much faster and generally better than using flat files
the database is on the server which stores all the data that gets entered and it is much quicker reading and writing to and from a database rather than using simple text filesWell, my database is activated and now I just logged into it. This is what I see:
Create new table on database (myusername) :
Name : _______
Fields : _______ "go" (button to click)
What is a table and a field and how do I create these??
What do I type in for the name and fields if I was trying to create a Poll?I'm guessing the script does all of this for you. Just change those variables and you should be fine.Well what I am seeing is at a website and I am logged into my database at the following URL:
<!-- m --><a class="postlink" href="https://mysqladmin.secureserver.net">https://mysqladmin.secureserver.net</a><!-- m -->
With this on the screen:
Create new table on database (myusername) :
Name : _______
Fields : _______ "go" (button to click)
I know how to change the variables within a config.php file. But this is not where I am at now. I have to create some tables on my database or something? Help??the script will create those for you. just upload the setting script like it says and run whatever it says to run. it should be automatic.
// Settings for database
$db_path = "localhost"; // Path for the database
$db_username = "username"; // Username for the database
$db_password = "password"; // Password for the database
$db_base = "database"; // Name of the database
1. For the path to the database, would I put in <!-- w --><a class="postlink" href="http://www.mysite.com">www.mysite.com</a><!-- w --> or <!-- w --><a class="postlink" href="http://www.mysiteshost.com">www.mysiteshost.com</a><!-- w --> or what?
2. For username and password do I just put in the same as what I use to log onto the server?
3. What is the name of my database?
Then, in the installation instructions, it says:
"To install the script you need to configure the settings.php file first.
The file is located in MyPoll_v2.2/poll/settings.php. When you are
complete with editing this file you need to copy it to the /admin
directory too. When promped to overwrite select Yes. settings.php needs
to be the same in /poll and /admin directory."
Where is this /admin directory? There was no admin file or folder included in the zip file. Is there supposed to be an /admin directory on my server? I am using Internet Explorer as my FTP Client and to view, etc. my files and I do not see it listed.
Here is a link to the page where you can Download it:
<!-- m --><a class="postlink" href="http://www.hotscripts.com/Detailed/13185.html">http://www.hotscripts.com/Detailed/13185.html</a><!-- m -->
If anyone can help I'd appreciate it. Thanks!
Chris1. For the path to the database, would I put in <!-- w --><a class="postlink" href="http://www.mysite.com">www.mysite.com</a><!-- w --> or <!-- w --><a class="postlink" href="http://www.mysiteshost.com">www.mysiteshost.com</a><!-- w --> or what? - no, you only need the database name
2. For username and password do I just put in the same as what I use to log onto the server? - yes
3. What is the name of my database? - well you create a database and then whatever you name it, thats it
Where is this /admin directory? There was no admin file or folder included in the zip file. Is there supposed to be an /admin directory on my server? - by the sounds of it, it expects you to make one
hope this helpsSo how do I create this database? Isn't MySQL a database? That is what my server has on it.use PHPMyAdmin to create your database
MySQL is the language, the database uses this language// Settings for database
$db_path = "localhost"; // Path for the database
$db_username = "username"; // Username for the database
$db_password = "password"; // Password for the database
$db_base = "database"; // Name of the database
only change the ones in blue. your database name is whatever you host made it. most of the time you do not have a option of making your own database or naming it. ask you host if you hav ethe permissions to do so. if not they will suply it for you. they will also give you the username and password.
use a program that does ftp. doen't use IE as it is very limited. I use ws_ftp but there are many others that are free.You know what? I just figured it out. I went to my host's website and created a database. The action is pending, so now I just have to wait I guess. I created a username and password. I'm sure it will have an admin file or whatever in it, right? I wonder why this Poll Script requires a database as opposed to other scripts? Do the others use "flat" files? I have seen that term used before somewhere. Thanks a lot for your help!
Chrisusing a database is much faster and generally better than using flat files
the database is on the server which stores all the data that gets entered and it is much quicker reading and writing to and from a database rather than using simple text filesWell, my database is activated and now I just logged into it. This is what I see:
Create new table on database (myusername) :
Name : _______
Fields : _______ "go" (button to click)
What is a table and a field and how do I create these??
What do I type in for the name and fields if I was trying to create a Poll?I'm guessing the script does all of this for you. Just change those variables and you should be fine.Well what I am seeing is at a website and I am logged into my database at the following URL:
<!-- m --><a class="postlink" href="https://mysqladmin.secureserver.net">https://mysqladmin.secureserver.net</a><!-- m -->
With this on the screen:
Create new table on database (myusername) :
Name : _______
Fields : _______ "go" (button to click)
I know how to change the variables within a config.php file. But this is not where I am at now. I have to create some tables on my database or something? Help??the script will create those for you. just upload the setting script like it says and run whatever it says to run. it should be automatic.