Relative Content

Tag Archive for phppdo

I have a problem with inner join not working

I have two tables in the same db. Ones is labeled questions, the other answers. No matter how I arrange the elements when I run a simple print statement, all I get are the dashes shown in the print statement.

Select Count doesnt count on PHP

$sql_back_adet = “SELECT COUNT(backlink) AS backlink FROM sites”; $stmt_ba = $db->query($sql_back_adet); if ($stmt_ba->num_rows > 0) { while ($row = $stmt_ba->fetch_assoc()) { echo “a”.$row[“backlink”]; } } else { echo “0 results found.”; } DB has 5 backlink data but it says 0 results found. help help help hlep? help i was expecting that to be wokyour […]

Database relations in pdo

That’s the question. I just started learning PDO and I was wondering if this technology has some kind of mechanism for setting relations between tables in a database? There are such mechanisms in different ORMs, but in PDO?