Hey, I'm trying to implement a php advanced poll script on my blog. This is the code it said to place on the blog: However, when I stick that in I get a wonderful error message: Now it seems that it doesn't know which database to select. It should be using adpo1, though I have two others. Now how do I include that in the code so my blog doesn't explode? Thanks, Skinny
Try this before the connection is required: $connection =MYSQL_CONNECT("db-location","userame","password") OR DIE("Unable to connect to database"); @mysql_select_db("databasename") or die("Unable to select database"); PHP:
The password is only in the php script - it will not show in the actual html code (provided your server can parse php).
Looks like there is a config file you need to find. Look around the files and see if there is anything that looks like a configuration file. There is probably a default detabase name that the script is looking for and unless you change the default value, the script will not know the name of your actual db...