I'm designing a simple product catelog script, well i thought i would be until i ran into this problem. I am trying it to add a product into a category (read from a table) in a selection box. However when i do so it's not able to link to the table.
code snippet:
$ Category = the selection made without white space. Works fine, when display is the proper category listed in database. It is used when Category is added to database.
$query = "INSERT INTO $Category ( pname, cat, price, description, image ) values( '$txtPName', '$Category', '$txtPPrice', '$taDesc', '$slImage' )";
I know it probably doesn't make any sense but some help would be appreciated .