I have a small database I have set up for a local store so they can display their inventory online. It's a single table with only 7 columns. My problem is with the item_number column.
I built an admin page so the owner could go in and add / delete / change items on her own. On the admin home page a list of items in the database comes up, each with an "edit" link. When you hit the edit link on an item with only numbers in the item_number field it works fine. When you hit edit on an item with a mix of letters and numbers (gs3001) in the item_number field it fails at
$result = mysql_query($query)
I have tried changing the field type, but it doesn't seem to make a difference.
Help?
Specs:
MySQL (whatever the latest stable version is)/ PHP 4.x running on a Linux server.
item_number fiels is designated VARCHAR(25) and is set to be a Unique key. I have tried it being key and not, have changed the field type to text, char, ... Nothing seems to make a difference.
Again, it works for all other items as long as there are no alpha characters in the item number, so I can't imagine it's the PHP.
TIA,
Matt