Hey everybody I want to let you know that I have undertaken the grueling task of getting the heck away from WordPress. I was so sick of the problems and updates I had to do all the time. I am now using my ezbloo system and I am integrating all my old posts into the new system. It sucks, but in the end, I will save bundles of time. I needed to keep things simple and that is why I created ezbloo. I'll have more on this later for you guys after I am done with the total integration of my old posts here. So if you are looking for a post and need it faster, shoot me an email and I will make it a priority. [email protected]

In order to Query results from a Database Using PHP MySqli make sure that you have the following steps taken care of.
  1. You Created A Database
  2. You Granted Privileges to the database
  3. Created a config.php file to access the database
  4. Make sure you Connect to a Database before using this code.
  5. Make sure there are entries in the database your are trying to call from!

Query results from a Database Using PHP MySqli

Now take the following code to query results from a database. Replace the X's with whatever table row you are trying to fetch.
  $result = $db->query("SELECT * FROM XXX") ;

while ($row = $result->fetch_assoc()) {
echo $row['XXX'];
}