-
Notifications
You must be signed in to change notification settings - Fork 252
Commit 204358d
fix $affected while querying an UPDATE
According to http://php.net/mysql_query
For SELECT, SHOW, DESCRIBE, EXPLAIN and other statements returning resultset, mysql_query() returns a resource on success, or FALSE on error.
For other type of SQL statements, INSERT, UPDATE, DELETE, DROP, etc, mysql_query() returns TRUE on success or FALSE on error.1 parent 0531717 commit 204358d
1 file changed
+2
-3
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
172 | 172 |
| |
173 | 173 |
| |
174 | 174 |
| |
175 | - | ||
176 | 175 |
| |
177 | 176 |
| |
178 | - | ||
179 | 177 |
| |
178 | + | ||
180 | 179 |
| |
181 | 180 |
| |
182 | 181 |
| |
| |||
375 | 374 |
| |
376 | 375 |
| |
377 | 376 |
| |
378 | - | ||
377 | + |
0 commit comments