Originariamente inviato da formwarecorp
la query funziona è il count che non va
Ascolta... secondo me è la query che non va perché come dice il manuale di ADODB

"To get the number of rows in the select statement, you can use $recordSet->RecordCount(). Note that it can return -1 if the number of rows returned cannot be determined."


quindi se ottieni sempre -1 è perché la query non va o non è stata costruita bene...

sei proprio sicuro stra sicuro che anche facendo
Codice PHP:
$rs $cn->execute("SELECT * FROM anagrafica");
$record=$rs->RecordCount(); 
ti restituisce -1?????