"mysqli to pdo conversion" Code Answer

2

fetchall returns an array containing all of the result set rows. so you can access to password with $data_array[0]['password'] if you used it. you may want use fetch instead.

$data_array = $stmt->fetch(pdo::fetch_assoc);
By Xerri on October 12 2022

Answers related to “mysqli to pdo conversion”

Only authorized users can answer the Search term. Please sign in first, or register a free account.