cvs: presentations /slides/mvc/example/model items.inc items.phps
| From: | Rasmus Lerdorf | Date: | Wed, 01 Mar 2006 19:23:17 +0000 |
| Subject: | cvs: presentations /slides/mvc/example/model items.inc items.phps | ||
| Groups: | php.pres | ||
| Request: | Send a blank email to pres+get-1265@lists.php.net to get a copy of this message | ||
rasmus Wed Mar 1 19:23:17 2006 UTC
Modified files:
/presentations/slides/mvc/example/model items.inc items.phps
Log:
Oops, missed this commit from a while ago.
http://cvs.php.net/viewcvs.cgi/presentations/slides/mvc/example/model/items.inc?r1=1.2&r2=1.3&diff_format=u
Index: presentations/slides/mvc/example/model/items.inc
diff -u presentations/slides/mvc/example/model/items.inc:1.2
presentations/slides/mvc/example/model/items.inc:1.3
--- presentations/slides/mvc/example/model/items.inc:1.2 Tue Feb 21 21:26:21 2006
+++ presentations/slides/mvc/example/model/items.inc Wed Mar 1 19:23:17 2006
@@ -52,7 +52,7 @@
global $dbh;
$where = '';
- if($id!=-1) $where = "where id=$id";
+ if($id!=-1) $where = "where id=".(int)$id;
try {
if(empty($dbh)) $dbh = db_connect();
$result = $dbh->query("SELECT * FROM items
http://cvs.php.net/viewcvs.cgi/presentations/slides/mvc/example/model/items.phps?r1=1.1&r2=1.2&diff_format=u
Index: presentations/slides/mvc/example/model/items.phps
diff -u presentations/slides/mvc/example/model/items.phps:1.1
presentations/slides/mvc/example/model/items.phps:1.2
--- presentations/slides/mvc/example/model/items.phps:1.1 Mon Feb 27 19:08:50 2006
+++ presentations/slides/mvc/example/model/items.phps Wed Mar 1 19:23:17 2006
@@ -52,7 +52,7 @@
global $dbh;
$where = '';
- if($id!=-1) $where = "where id=$id";
+ if($id!=-1) $where = "where id=".(int)$id;
try {
if(empty($dbh)) $dbh = db_connect();
$result = $dbh->query("SELECT * FROM items