summaryrefslogtreecommitdiffstats
path: root/admin/WebConsole/clases/AdoPhp.php
diff options
context:
space:
mode:
Diffstat (limited to 'admin/WebConsole/clases/AdoPhp.php')
-rw-r--r--admin/WebConsole/clases/AdoPhp.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/admin/WebConsole/clases/AdoPhp.php b/admin/WebConsole/clases/AdoPhp.php
index 919fba7f..b48032d1 100644
--- a/admin/WebConsole/clases/AdoPhp.php
+++ b/admin/WebConsole/clases/AdoPhp.php
@@ -422,7 +422,10 @@ class Comando{
$this->ultimoerror=4;
return(false);
}
- if (stristr($this->texto,"select")){
+
+ $sqlstr=trim($this->texto);
+
+ if (strtoupper(substr($sqlstr,0,6))=="SELECT"){
$this->Recordset->Inicializar();
$this->Recordset->filas=$this->resul;
$this->Recordset->numerodecampos=mysql_num_fields($this->Recordset->filas);