Notice: Trying to get property of non-object on execution of my code.
i have a php script for notifications, where i faced a problem with the non-object execution. i tried lot of googling but couldn't able to solve it out..
my code as follows::
Code:
<?php
$sql = "SELECT * FROM input WHERE id =".$_GET["id"];
$result = mysqli_query ($conn,$sql);
if ($result-> num_rows > 0) {