title: How do I fix Function mysql_list_tables() is deprecated?
body: <p>I'm trying to add a voting system for my website, and I get this error:</p>
  
  <pre><code>Deprecated: Function mysql_list_tables() is deprecated in /home/yokoscap/public_html/vote/classes/vote.class.php on line 11
  Access denied for user 'yokoscap'@'localhost' (using password: NO)
  </code></pre>
  
  <p>I'm new to PHP and MySQL, so if you could dumb it down/help me fix it it'd be great.</p>
  
  <p><a href="http://pastebin.com/3mfpFwW7" rel="nofollow">Here's</a> the code paste, I thought it was too big to go in here so I uploaded to pastebin.</p>