[eluser]Tim Brownlaw[/eluser]
In that last var_dump you provided I saw an entry for id...
Code:
array (size=8)
'product_name' => string 'test product2222' (length=16)
'body' => string 'test product description goes here' (length=34)
'sell_or_trade' => string 'sell' (length=4)
'img_path' => boolean false
'price' => string '2222' (length=4)
'category_id' => string '5' (length=1)
'id' => string '1' (length=1)
'order' => boolean false
Code:
'id' => string '1' (length=1)
It's a string with a value of 1...
What if you do the var_dump after your $id= filter($id);
So again, in that function do a var_dump
Code:
...
$id= filter($id);
var_dump($id);
...
Cause you got a value for id being passed into the function.
What you need to do is simply track back to where it starts to appear and where it stops appearing.
The trick is to narrow down where the issue is... Then you can find it and fix it
There may be other issues, but just be methodical and you'll hunt it down...
Debugging issue like this can be fun and very educational so keep at it!
Cheers
Tim