Poll using php/MySQL

  • DavyDuke17
  • Graduate
  • Graduate
  • DavyDuke17
  • Posts: 166

Post 3+ Months Ago

Is this hard to do? I am pretty new to both of these and I'm wondering if many poeple do this if there is a better way that I could use instead. Thanks.
  • Axe
  • Genius
  • Genius
  • User avatar
  • Posts: 5739
  • Loc: Sub-level 28

Post 3+ Months Ago

Nope, it's pretty easy :)

There should be a bunch of poll scripts on http://www.hotscripts.com
  • DavyDuke17
  • Graduate
  • Graduate
  • DavyDuke17
  • Posts: 166

Post 3+ Months Ago

I took your advice and found a bunch of different scripts for polls there. I did one and I think I have everything set up except when I try setting up a poll and it connects to the database it says:
1044: Access denied for user: '***********@localhost' to database 'poll'

The login seems right and if I purposely put in a wrong username or password I get something like this:
Warning: mysql_connect(): Access denied for user: '**********@localhost' (Using password: YES) in /home/vferraro/public_html/scripts/poll.inc on line 153
0: Connection failed to the host localhost.

And I am using a script that has one of the higher ratings for php/MySql polls so I don't think it is a problem within his script. That said, what could be the problem? Other places I've looked up said the username or password is wrong or that that username doesn't have privelege to insert data but I set it so that the username has access to everything in my Cpanel. Does anyone know the problem?
  • Axe
  • Genius
  • Genius
  • User avatar
  • Posts: 5739
  • Loc: Sub-level 28

Post 3+ Months Ago

1044: Access denied for user: '***********@localhost' to database 'poll'

Yeah, that would mean your database name is wrong...

Or the username you're using doesn't have permission to access that database, even though yoru username and password is correct.
  • DavyDuke17
  • Graduate
  • Graduate
  • DavyDuke17
  • Posts: 166

Post 3+ Months Ago

It was the database name that was wrong, thanks.

Post Information

  • Total Posts in this topic: 5 posts
  • Users browsing this forum: No registered users and 108 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.