PHP Classes

File: ajax/getSearchResults.php

Recommend this page to a friend!
  Classes of Faris AL-Otabi   Netflix Clone   ajax/getSearchResults.php   Download  
File: ajax/getSearchResults.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Netflix Clone
Manage a library of movies to rent like Netflix
Author: By
Last change:
Date: 2 months ago
Size: 503 bytes
 

Contents

Class file image Download
<?php
require_once("../includes/config.php");
require_once(
"../includes/classes/SearchResultsProvider.php");
require_once(
"../includes/classes/EntityProvider.php");
require_once(
"../includes/classes/Entity.php");
require_once(
"../includes/classes/PreviewProvider.php");

if(isset(
$_POST["term"]) && isset($_POST["username"])) {
   
   
$srp = new SearchResultsProvider($con, $_POST["username"]);
    echo
$srp->getResults($_POST["term"]);

}
else {
    echo
"No term or username passed into file";
}
?>