I have one little problem
In the server MySQL Database I have this table:
Code: Select all
Dim FQuery as String
FQuery = "CREATE TABLE IF NOT EXISTS `" & FDBPrefix & "personamarket_magazzino` (" & _
"`id` INT(6) UNSIGNED AUTO_INCREMENT PRIMARY KEY, " & _
"`CodMag` VARCHAR(15)CHARACTER SET utf8, " & _
"`CodBarre` VARCHAR(40)CHARACTER SET utf8, " & _
"`Descrizione` VARCHAR(50)CHARACTER SET utf8, " & _
"`Fornitore` VARCHAR(50)CHARACTER SET utf8, " & _
"`IdFornitore` INT(6), " & _
"`Giacenza` INT(12), " & _
"`UltCarico` INT(12), " & _
"`TotScarico` INT(12), " & _
"`PrezzoAcq` DECIMAL(12,2), " & _
"`PrezzoVendita` DECIMAL(12,2), " & _
"`IdUtenteBlocco` VARCHAR(6)CHARACTER SET utf8, " & _
"`Blocco` VARCHAR(3)CHARACTER SET utf8)"
Code: Select all
FQuery = "INSERT INTO " & FDBPrefix & "personamarket_magazzino (" & _
"CodMag, CodBarre, Descrizione, Giacenza, UltCarico, TotScarico, " & _
"PrezzoAcq, PrezzoVendita, Fornitore, IdFornitore" & _
") VALUES (" & _
"`811`, `8829912991`, `Box mini ssz`, 11, 20, 9, `22.99`, `35.99`, `FDExpress`, 11 )"
Code: Select all
dim CodiceProd as String
dim Desc as string
dim Gia as Integer
dim ultcar as Integer
Row = mysql_fetch_row(MySQLOut)
CodiceProd = *Row[1]
Desc = *Row[3]
Gia = *Row[4]
ultcar = *Row[5]
Print CodiceProd ' this give: 811
Print Desc ' this give: Box mini ssz
Print Gia '***** This give 89 but the value is 11
Print ultcar '***** this give 92 but the value is 20