Code: Select all
put revdatafromquery(,,sDbId,tSql) into tData
There are no commas in my data. I put a simple test set of data. Has anyone actually used MySQL with LiveCode? And what version of MySQL has LiveCode been tested against?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Code: Select all
put revdatafromquery(,,sDbId,tSql) into tData
Code: Select all
-- construct the SQL (this selects all the data from the specified table)
put "properties" into tTableName -- set this to the name of a table in your database
put "SELECT * FROM " & tTableName into tSQL
-- query the database
put revDataFromQuery(tab, cr, gConnectionID, tSQL) into tData
put item 2 of tData into fld "fldStreetNumber"
put item 3 of tData into fld "fldStreetName"
Code: Select all
-- construct the SQL (this selects all the data from the specified table)
put "properties" into tTableName -- set this to the name of a table in your database
put "SELECT * FROM " & tTableName into tSQL
-- query the database
put revDataFromQuery(tab, cr, gConnectionID, tSQL) into tData
-- Added lines
set the itemdelimiter to tab -- so that lc knows how to break up items
put tData -- (so that you can see all your data in the message box to get visual feedback of what is actually being returned)
-- End Added Lines
put item 2 of tData into fld "fldStreetNumber"
put item 3 of tData into fld "fldStreetName"
Code: Select all
put "properties" into tTableName -- set this to the name of a table in your database
put "SELECT * FROM " & tTableName into tSQL
-- query the database
put revDataFromQuery(tab, cr, gConnectionID, tSQL) into tData
set itemdel to TAB
put tData
put item 2 of tData into fld "fldStreetNumber"
put item 3 of tData into fld "fldStreetName"
Code: Select all
set the itemdelimiter to tab