This is code that was written by another programmer before my recent arrival.
There aren't that many comments, and there's alot of code, which is why it's been hard for me to troubleshoot. So i thought maybe a more experience PHP developer here might be able to give me some insight or yes, i'll say it, help.
Everything was working fine until I added $cat and $catprod.
I added the variable everywhere where it was needed in a chronological manner, meaning in the function call and function definition, but still, something is amiss.
As far as htmlencode goes, variables are sent via query string by links, so I don't know how extraneous spaces, commas or any other weird unwanted character would arise.
This is code that was written by a previous programmer. Bugdet for this project is pretty low, I'm not asking any1 to rewrite my code, just to skim through it to see where my variables aren't being correctly passed.
I'm sure it's something any Senior PHP dude should see at first glance.
I would apreciate any help provided.
And also, only the below is being passed via url.
$ageId = $HTTP_GET_VARS["cboAge"];
$priceId = $HTTP_GET_VARS["cboPrix"];
$cat = $HTTP_GET_VARS["cat"];
$pieceId = $HTTP_GET_VARS["cboPiece"];
$awardWinner = $HTTP_GET_VARS["AW"]; //A True or False value
$newProduct = $HTTP_GET_VARS["New"]; //A True or False value
And only variables like $HTTP_GET_VARS["AW"] is only passed when a user clicks on a seperate link. So, that's not many variables on one GET request. Only maybe 2 or 3 per url max.
Array ( [0] => 57 [prodId] => 57 [1] => 0 [newProduct] => 0 [2] => 0 [awardProd] => 0 [3] => Pro Combat [prodName] => Pro Combat [4] => q7_t1.jpg [prodThmImg] => q7_t1.jpg [5] => q7_p1.jpg [prodPopUpImg] => q7_p1.jpg [6] => 9747 [prodSKU] => 9747 [7] => 72 [piecesId] => 72 [8] => 32 [priceId] => 32 [9] => 13 [ageId] => 13 [10] => Probuilder [catProd] => Pro )
Above is the print_r of the $prodRow array. Is this how the print_r array output should look like?