File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 24
24
* PHP REST SQL class
25
25
* The base class for the Rest SQL system that opens up a REST interface to a MySQL database.
26
26
*/
27
- class PHPRestSQL {
27
+ class PHPRestSQfL {
28
28
29
29
/**
30
30
* Parsed configuration file
@@ -292,7 +292,7 @@ function post() {
292
292
$ values = substr ($ values , 0 , -2 );
293
293
$ where = '' ;
294
294
foreach ($ primary as $ key => $ pri ) {
295
- $ where .= $ pri .' = ' .$ this ->uid [$ key ].' AND ' ;
295
+ $ where .= $ pri .' = \'' .$ this ->uid [$ key ].'\ ' AND ' ;
296
296
}
297
297
$ where = substr ($ where , 0 , -5 );
298
298
$ resource = $ this ->db ->updateRow ($ this ->table , $ values , $ where );
@@ -431,7 +431,7 @@ function delete() {
431
431
if ($ primary && count ($ primary ) == count ($ this ->uid )) { // delete a row
432
432
$ where = '' ;
433
433
foreach ($ primary as $ key => $ pri ) {
434
- $ where .= $ pri .' = ' .$ this ->uid [$ key ].' AND ' ;
434
+ $ where .= $ pri .' = \'' .$ this ->uid [$ key ].'\ ' AND ' ;
435
435
}
436
436
$ where = substr ($ where , 0 , -5 );
437
437
$ resource = $ this ->db ->deleteRow ($ this ->table , $ where );
You can’t perform that action at this time.
0 commit comments