Ciao a tutti
Utilizzo un DB Oracle in cui ho la seguente tabella:
PRODOTTI (Codice, Nome, Descrizione, Prezzo)
Il campo prezzo è di tipo NUMBER(6,2) ed è obbligatorio.
Utilizzo un recordset per estrarre i campi dal db e metterli in una tabella html. Questo è il codice:
Il problema è che i campi prezzo nel recordset risultano vuoti, infatti la funzione IsEmpty restituisce TRUE. Nel db però non lo sono.codice:<% Session.LCID = 1040 Set rs = Server.CreateObject("ADODB.Recordset") query = "SELECT CODICE, NOME, PREZZO FROM PRODOTTI" rs.Open query, connDb %> <table> <tr> <th> Nome Prodotto </th> <th> Prezzo </th> <th> </th> <% While Not rs.EOF %> <tr> <td> <%= rs("NOME") %> </td> <td> <%= FormatNumber(prezzo, 2) & " €" %> </td> <td> ">Inserisci nel carrello </td> </tr> <% rs.MoveNext Wend %> </table>
Qual'è il problema?
Grazie


Rispondi quotando