I am trying to check product id is exits in database or not. Help me to correct for loop . What condition i have to check?
$product = new Product($db); $data = js