include('includes/db-connect.php');
$lang = 'en';
$stmt = $conn->prepare("SELECT * FROM share WHERE id = 1 ");
$stmt->execute(array($lang));
$share = $stmt->fetch();
$share_title = $share['title'];
$share_description = $share['description'];
$share_photo = 'admin/uploads/share/'. $share['photo'];
$stmt = $conn->prepare("SELECT * FROM home WHERE type = 'header' AND lang = ? ");
$stmt->execute(array($lang));
$header = $stmt->fetch();
$stmt = $conn->prepare("SELECT * FROM home WHERE type = 'recipes' AND lang = ? ");
$stmt->execute(array($lang));
$recipes = $stmt->fetch();
$stmt = $conn->prepare("SELECT * FROM recipes ");
$stmt->execute();
$rows = $stmt->fetchAll();
include('includes/header.php');
?>