$RawHTMLDB->SetConfig($default_hostname, $default_username, $default_password, $default_db); echo "after"; if ($confirmation == "null") { $result = $RawHTMLDB->getOrder($order); echo sizeof($result); if (sizeof($result) == 1) { $result = $result[0]; echo "Link = " . $result["url"] . "<br/>"; echo "Location = " . $result["country"] . ", " . $result["state"] . ", " . $result["city"] . "<br/>"; echo "Positive = " . $result["positive"] . "<br/>"; echo "Predict1 = " . $result["predict1"] . "<br/>"; echo "Predict2 = " . $result["predict2"] . "<br/>"; echo "Quantities = " . $result["alt_quantities"] . "<br/>"; echo "Prices = " . $result["alt_prices"] . "<br/>"; echo "Html = " . $result["html"] . "<br/>"; } else { echo "Out of html<br/>"; echo "<a href='/classify.php?confirmation=null&order=" . ($order + 1) . "'>Next</a>"; } } else { if ($confirmation == "yes") { $RawHTMLDB->updatePositive($order, 1); } else { if ($confirmation == "no") { $RawHTMLDB->updatePositive($order, 0); } } echo "<script>"; echo "window.location = '/classify.php?confirmation=null&order=" . ($order + 1) . "'"; echo "</script>"; }