Hello all,
I've just installed Simple SEO and it has benn working great.
After playing with some links i came acros some minor mistake.
If i type domain.com/category-one-c-1 it works, but if i misspell url like domain.com/category-one-c-1x i get MySql mistake
1054 Unknown column '1x' in 'where clause'
in:
[SELECT categories_name FROM categories_description WHERE categories_id =1x LIMIT 1]
aslo get the mistake with product (if i type x behind product number)
1054 Unknown column '3x' in 'where clause'
in:
[SELECT d.products_name, p.products_type FROM products p, products_description d WHERE p.products_id =3x AND d.products_id= p.products_id LIMIT 1]
I guess there should be some kind of checking if $_GET[c,p... and other variables are numbers or not.
How can that be done?
Regards
Bookmarks