Changeset 257 for trunk/admin/modules/Elezioni/query.sql
- Timestamp:
- Feb 9, 2019, 8:45:24 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/modules/Elezioni/query.sql
r256 r257 45 45 $sth = $dbi->prepare("$sql"); 46 46 $sth->execute(); 47 $row = $sth->fetch All();47 $row = $sth->fetch(PDO::FETCH_BOTH); 48 48 return ($row); 49 49 … … 78 78 $sth = $dbi->prepare("$sql"); 79 79 $sth->execute(); 80 $row2 = $sth->fetchAll(); 81 if ($row2) $id_cons = $row2['id_cons']; 80 if ($sth->rowCount()) list($id_cons) = $sth->fetch(PDO::FETCH_NUM); 82 81 else $espandi=1; 83 82 if(!isset($tipo_cons))$tipo_cons=0; … … 87 86 $sth = $dbi->prepare("$sql"); 88 87 $sth->execute(); 89 $row2 = $sth->fetchAll(); 90 $limite=$row2[0]; 88 if ($sth->rowCount()){ 89 $row2 = $sth->fetchAll(); 90 $limite=$row2[0]; 91 } 91 92 return($row); 92 93 } … … 187 188 $sth = $dbi->prepare("$sql"); 188 189 $sth->execute(); 189 $row = $sth->fetch All();190 $row = $sth->fetch(PDO::FETCH_BOTH); 190 191 return($row); 191 192 }
Note:
See TracChangeset
for help on using the changeset viewer.