Get fields/columns from mysqli result
How can I get the values by the field names using mysqli in PHP? My code is:
$stmt = $con->prepare('SELECT * FROM employees WHERE employee_id = ?');
$stmt->bind_param('s', $emp_id);
$stmt->execute();
$result = $stmt->get_result();
I want to retrieve my data by field name like $row['employee_id']
No comments:
Post a Comment