I want to compare document (table)id's to values in $POST.
The code I have is
$Ref =$_POST['Ref'];
$source = file_get_contents( 'E:/wamp/www/Project/File.php' );
$document = new DOMDocument;
$document->validateOnParse = true;
$document->file_get_html($source);
for($i=0; $i<count($Ref); $i++)
{
foreach($document->find('id') as $ID)
{
if($ID == $Ref[$i])
{
echo "ok";
}
else
{
echo "no";
}
}
}
However I am getting
Fatal error: Call to undefined method DOMDocument::file_get_html()