Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions searchresults.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,11 @@
$queryText = $_POST['queryText'];
$queryTextArray = explode(" ", $queryText);
$numberOfKeywords = count($queryTextArray);
for ($x = 0; $x < $numberOfKeywords; $x++) {
$queryTextArray[$x] = filter_var($queryTextArray[$x], FILTER_SANITIZE_STRING);
}

$MySQL = new mysqli('localhost', 'mdotchri_dba', 'Milf15milf', 'mdotchri_asktobyDatabase');
$MySQL = new mysqli('localhost', 'USERNAME', 'PASSWORD', 'DATABASE');
for ($i = 0; $i < $numberOfKeywords; $i++) {
$SQL = "SELECT domain FROM keywordTable WHERE (keywordOne = '{$queryTextArray[$i]}' OR
keywordTwo = '{$queryTextArray[$i]}' OR
Expand Down Expand Up @@ -73,7 +76,6 @@
}
echo "</div>";


?>
</body>
</html>
</html>