Page 1 of 1

READLN

Posted: Thu Apr 09, 2009 6:04 am
by gaurav.shetti
Hi ,
I want to achieve this functionality.
I want to store n variables in a file. (lets take 3 for now .. $a,$c,$b)
I want to change this values and read them often. How can i achieve it with Readln and write

READLN

Posted: Thu Apr 09, 2009 10:17 am
by mark
I suggest using a table:
<sql "create table settings(Name varchar(10),Value varchar(80))"></sql>
...
<sql "insert into settings values('a',$a)"></sql>
...
<sql "select Value a from settings where Name='a'"></sql>
or
<sql row "select * from settings">
<setvar $Name $Value>
</sql>