0 ]; if ( isset( $_GET['nmlhash'] ) ) { include ('connect.php'); $query = "SELECT nmlHash FROM NoMoreLeaks WHERE nmlHash = '" . $db->real_escape_string( $_GET['nmlhash'] ) . "' LIMIT 1;"; if ( $result = $db->query( $query ) ) { if ( $result->num_rows > 0 ) { $row = $result->fetch_object(); $nmlhash = ['found' => 1 ]; } } } $nmljson = json_encode( $nmlhash ); echo $nmljson; /* Werkt als volgt ; https://url.to.website.net/nml_get.php?nmlhash=1b7ff87c0dc099dfa1300d89ac1cfe98585d23db Retour komt een JSON : {"found":1} */