KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have a simple pdo prepared query: $result = $db->prepare("select id, course from coursescompleted where person=:p"); $result ->bindParam(':p', $q, PDO::PARAM_INT); $result->execute(); $rows = $result->fetch(PDO::FETCH_NUM); echo $rows[0]; the echo seems to be returning the ID value of the record, not the number of records returned by the query? any idea or explanation for this?
Tags (comma-separated)
Save Edits
Cancel