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 8ecb8bd commit c0f80edCopy full SHA for c0f80ed
demo.php
@@ -141,13 +141,14 @@
141
PRIMARY KEY (`id`)
142
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1;");
143
144
-$DB->query("INSERT INTO `fruit` (`id`, `name`, `color`) VALUES
+$AffectedRows = $DB->query("INSERT INTO `fruit` (`id`, `name`, `color`) VALUES
145
(1, 'apple', 'red'),
146
(2, 'banana', 'yellow'),
147
(3, 'watermelon', 'green'),
148
(4, 'pear', 'yellow'),
149
(5, 'strawberry', 'red');
150
-");
+");//return 5, the number of affected rows by this INSERT/ UPDATE/ DELETE
151
+//echo $AffectedRows;
152
?>
153
<h4>
154
Fetching with Bindings (ANTI-SQL-INJECTION):
0 commit comments