git-svn-id: https://msi/svn/firstRepo/Service/branches/Manut_2.2.3@51 0f545695-f87b-41b6-9a03-7f16563b5454
This commit is contained in:
+2
-1
@@ -81,7 +81,7 @@ $app->get('/profile/:keyStore/ricette', function ($keyStore) use ($app) {
|
||||
$app->get('/profile/:keyStore', function ($keyStore) use ($app) {
|
||||
$callbackFn = $app->request()->get('callback');
|
||||
$mysqlconnetion = new MysqlClass;
|
||||
$query = "SELECT ProfiloID,TipoAccesso,RisultatiRicerca,TemaUI,Name,Gender,0 AS NumRicette,BloccoNoteUpdated,Email,bSpacciatore,bPrivacy,Cap,Comune,Provincia,TipoPM, Latitudine, Longitudine from profilo" .
|
||||
$query = "SELECT ProfiloID,TipoAccesso,RisultatiRicerca,TemaUI,Name,Gender,0 AS NumRicette,BloccoNoteUpdated,Email,bSpacciatore,bPrivacy,Cap,Comune,Stato, Provincia,TipoPM, Latitudine, Longitudine from profilo" .
|
||||
" where ProfiloID = '" . $keyStore . "'";
|
||||
$retObj = $mysqlconnetion->queryToObject($query);
|
||||
|
||||
@@ -149,6 +149,7 @@ $app->put('/profile', function () use ($app) {
|
||||
"', bSpacciatore = " . $json_data_body->isSpacc .
|
||||
", bPrivacy = " . $json_data_body->privacy .
|
||||
", Cap = '" . $json_data_body->cap .
|
||||
"', Stato = '" . $json_data_body->stato .
|
||||
"', Comune = '" . $json_data_body->comune .
|
||||
"', Provincia = '" . $json_data_body->prov .
|
||||
"', TipoPM = " . $json_data_body->tipopm .
|
||||
|
||||
Reference in New Issue
Block a user