title: mysql query not inserting to database
body: <p>i have a db query in php that is not inserting into database. Have used this format lots of times but for some reason its not working now. any ideas please </p>
  
  <pre><code>    $query = "INSERT INTO `databasename`.`member_users` (`id`, `first_name`, `last_name`, `username`, `password`, `address1`, `address2`, `postcode`, `access`, `expires`) VALUES (NULL, '$fname', '$lname', '$email', '', '$add1', '$add2', '$postcode', '0', '')";
  $result = mysql_query($query);
  if($result){
      echo"query inserted";
  
  }else{
  
      echo "nope";
  }
  </code></pre>