Ascolta... secondo me è la query che non va perché come dice il manuale di ADODBOriginariamente inviato da formwarecorp
la query funziona è il count che non va![]()
"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
ti restituisce -1?????Codice PHP:
$rs = $cn->execute("SELECT * FROM anagrafica");
$record=$rs->RecordCount();