UserLibrary - MySQL interface
Posted: Mon Mar 26, 2007 7:18 pm
Here is an object oriented include for MySQL5.
those who are familiar with php/mysql might appreciate this way of coding.
this is free - as always.
ABOUT HELP:
sorry no doc at the moment.
just look at the include file which is clear enough.
if somebody is courageous enough to make a doc it will be much appreciated as i do not have time for this.
NOTE:
please adjust in the file 'libmysql.pbi', at line 92 your path for the libmysql.lib.
ARCHIVE:
UserLib_PB40_libmysql.zip

SAMPLE CODE:

those who are familiar with php/mysql might appreciate this way of coding.
this is free - as always.
ABOUT HELP:
sorry no doc at the moment.
just look at the include file which is clear enough.
if somebody is courageous enough to make a doc it will be much appreciated as i do not have time for this.
NOTE:
please adjust in the file 'libmysql.pbi', at line 92 your path for the libmysql.lib.
ARCHIVE:
UserLib_PB40_libmysql.zip

SAMPLE CODE:
Code: Select all
IncludeFile "libmysql.pbi"
db.IMYSQL = mysql("localhost", "root", "", "mysql")
If db
If db\query("SELECT 'Hello' AS 'f1', 'World !' AS 'f2', NOW() as 'f3', 12345.6789")
While db\row()
Debug db\GetString("f1")
Debug db\GetString("f2")
Debug FormatDate("%dd.%mm.%yyyy", db\GetDate("f3"))
Debug db\get_double(3)
Wend
Else
Debug db\error()
EndIf
db\free()
EndIf
