We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 445668f commit db5f5a4Copy full SHA for db5f5a4
profile-customer.php
@@ -15,7 +15,14 @@
15
$stmt->execute();
16
$results = $stmt->fetchAll();
17
18
-$customer_fullname = $results[0]['fullname'];
+$sql = 'SELECT fullname
19
+ FROM customers
20
+ WHERE id = :id';
21
+$stmt = $db->prepare($sql);
22
+$stmt->bindParam(':id', $customer_id);
23
+$stmt->execute();
24
+$info = $stmt->fetch();
25
+$customer_fullname = $info['fullname'];
26
27
?>
28
0 commit comments