Tell me more ×  I have looked up the error for this and I think
I am calling the statement before for it to be initialized. I
have made a simple connection class that I can include into all
of my files that will be talking to the mysql server. Knowing
how I am with things, I am most likely over thinking things. I
cant seem to find what I am doing wrong.....  Top part of the
code is cut off as it only contains the HTML head and php
starting code that is non-important for this.  //include
database connection  $action = isset($_GET['action']) ?
$_GET['action']: "";  if($action=='delete'){ //if the user
clicked ok, run our delete query     try {          $query =
"DELETE FROM sc_steamgames WHERE appid = ?";
$stmt->bindParam(1, $_GET['appid']);          $result =
$stmt->execute();         echo "<div>Record was deleted.</div>";
}catch(PDOException $exception){ //to handle error         echo
"Error: " . $exception->getMessage();   //select all data $query
= "SELECT * FROM sc_steamgames";  //this is how