kytschBASIC

Put down that phone!
Please view me on real computer.

DINSERT

Update data in the database

Example

DATA

	REM Open the database connection from the config file labelled kytschBASIC.

	DOPEN "kytschBASIC"

	

	REM Read from the menu table in the database.

	DREAD "pages"



	REM Insert into the pages table.

	DINSERT "name=:name, content=:content, title=:title, path=:path"



	REM Set the binds for the data.

	DBIND name=_POST("name"), content=_POST("content"), title=_POST("title"), path=_POST("path")



	REM Execute the query.

	DEXEC

END DATA

See also