On a page called equipment.php, I have a query that displays a list of equipment. It works fine. The query is
SELECT * FROM EquipmentList ORDER by Type, Make, Model.
Along with the list, I have 2 links - one to edit the equipment info, and one to delete the entry. The Links look like this :
<A HREF=\"equipment_edit.php?id=$id\">EDIT</A>
<A HREF=\"equipment_delete.php?id=$id\">DELETE</A>
When I click on the link for the piece of equipment with id=30, I go to the URLs equipment_edit.php?id=30 or equipment_delete.php?id=30.
The problem is that on those pages, the query is NOT picking up the value for $id, even though it is passed in the URL.
$query = "SELECT * FROM EquipmentList WHERE EquipmentID='$id'";
The query reads "SELECT FROM EquipmentList WHERE EquipmentID=''";
instead of "SELECT FROM EquipmentList WHERE EquipmentID='30'";
Like I said, this was working up until a couple of days ago and I don't know what caused it to stop working. Hosting company said they haven't made any changes to the server and "the php value register_globals is turned off on our server."