Quote:
Originally Posted by Mythotical
|
Well, the problem lies when purchase.php does this:
PHP Code:
$items = explode("-",$product[1]);
foreach($items as $temp)
{
$temp = explode(":",$temp);
$item = $DB_site->query_first("SELECT * FROM ph_item WHERE `id`='".$temp[0]."'");
either $items or $temp are wrong. I haven't debugged it at all to see which is incorrect, but $temp[0] ends up being empty so the item lookup fails (which ends up defaulting the item type to service). Is exploding a string to the same variable name kosher? I'm not much of a PHP coder, so someone else will have to tell me