title: Warning: mysql_result() expects parameter 1 to be resource, boolean given
body: <p>My PHP functions script was working fine last night, and now when I logged on to work on it some more today, I am getting</p>
  <p>&quot;Warning: mysql_result() expects parameter 1 to be resource, boolean given&quot;.</p>
  <p>I have -no- idea why this isn't working. I've read the PHP manual online, and I've even seen examples where what I did is used and works. Can anyone please help me out with this? I've been fixing bug after bug (so many things stopped working when I logged on today) and I'm at my wits end here. If it helps, I'm using XAMPP on Windows 7 for my server.</p>
  <h3>Code: <a href="http://pastebin.com/wMDDt3hd" rel="nofollow noreferrer">(also available via Pastebin)</a></h3>
  <pre><code>&lt;?php
  
  function dbConnect() {
  $dbserver=&quot;127.0.0.1&quot;;
  $dbuser=&quot;Mike&quot;;
  $dbpassword=&quot;mike&quot;;
  $dbname=&quot;devsite&quot;;
  
  $con = mysql_connect($dbserver, $dbuser, $dbpassword);
  mysql_select_db($dbname, $con);
  }
  
  function getSiteTitle() {
  
  
  $siteTitle = mysql_result(mysql_query(&quot;SELECT \`siteTitle\` FROM siteSettings&quot;), 0);
  return $siteTitle;
  }
  
  function getSiteHeader(){
  
  $siteHeader = mysql_result(mysql_query(&quot;SELECT \`siteHeader\` FROM siteSettings&quot;), 0);
  return $siteHeader;
  }
  
  function getBodyContent() {
  
  
  $bodyContent = mysql_result(mysql_query(&quot;SELECT \`bodyContent\` FROM siteSettings&quot;), 0);
  return $bodyContent;
  }
  
  ?&gt;
  </code></pre>