Currently, I am coding using azure app service and azure database server for mysql.
When the 'select' statement is executed, only '1' is returned.
I don't think it's a connection problem because 'insert' statement works fine.
This is my php code running on azure app service.
error_reporting(E_ALL);
ini_set('display_errors',1);
include('dbconnectr.php');
$id = $_GET['id'];
$stmt = $con->prepare('select * from contents where id='.$id);
$stmt->execute();
$result = $stmt->fetch();
echo $result;
What is the problem?