php - How to JOIN two tables correctly? -
somewhere have patience takes somewhere, last problem.
it works 1 party, persons not have recipies, peron recipies can't see it, see blank รณ page.
$usersi = $dbh->prepare('select * recettes id_user = :id'); $usersi->bindparam(':id', $_get['id'], pdo::param_int); $usersi->execute(); $usersis = $usersi->fetchall(pdo::fetch_assoc);
for user id = 1:
<?php $usersi_sql = $dbh->prepare('select * recettes id_user = 1'); $usersi_sql->execute(); $usersi = $usersi_sql->fetchall(pdo::fetch_assoc); ?>
Comments
Post a Comment