prepare("UPDATE bot_list SET last_ping = ? WHERE hashmini = ? LIMIT 1") or die(mysql_error()); $out2->execute(array($thetime, $_GET['bot'])); $out2 = $dbh->prepare("SELECT session_id FROM bot_list WHERE hashmini = ? LIMIT 1") or die(mysql_error()); $out2->execute(array($_GET['bot'])); $bot = $out2->fetch(PDO::FETCH_ASSOC); if ($bot['session_id'] != null) echo "openCall();"; else echo "closeCall();"; exit; } ?>