sql query in php does not work on a server in the cloud but if local

0

It turns out that I have this php file and it works perfectly locally but when I put it in a hosting it does not work and it sends me this error "PHP Fatal error: Uncaught Error: Call to undefined function getSQLResultSet ()" the php version is PHP: 5.6.30

    <?php
include('DatabaseConfig.php');
$id=$_GET["id"];


if($resultset=getSQLResultSet("SELECT * FROM 'cliente' WHERE id='$id'")){
    while ($row = $resultset->fetch_array(MYSQLI_NUM)){
        echo json_encode($row);
    }
}

?>
    
asked by juan perez 26.10.2017 в 20:14
source

0 answers