I have a database which has edit buttons on each entry but I get this error when trying to edit an item.
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /editentry.php on line 32
Here is the line in question and files corresponding to the problem.
$order = "SELECT * FROM Missions WHERE MissionNumber='$id'";
Missions.php labels all the entries with the edit button next to them - http://pastebin.com/VbTzUMDP
editentry.php is the page where the editing should take place where the error occurs - http://pastebin.com/fj7y9GFW
Also I am aware that this code has the chance of being SQL injected, but this is only some testing code for the moment with a page that can only be accessed by me.