Re: Strore Data in File

From: Date: Wed, 11 Sep 2002 09:01:04 +0000
Subject: Re: Strore Data in File
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-115946@lists.php.net to get a copy of this message
You may use either dBase ( http://www.php.net/manual/en/ref.dbase.php ) or http://www.php.net/manual/en/ref.dba.php Ram K wrote:
Hi I want to store the data of a table in a file and read that file just as one would read a table. For e.g. I have a table t_data with cols name,number,cost and my data file data.txt would have the following data: ------- john,1,100 mark,2,200 spencer,3,200 ------- Now on the web page when the visitor clicks on a link on "john" then this file (data.txt) must be read and the data should be displayed for "john" i.e. name = john number = 1 cost = 100 must be displayed Can anyone please give me the code to parse this file and read the data for john and get all the data for that row. Please see that "john" functions as the primary key in the table Regards Ram __________________________________________________________ Give your Company an email address like ravi @ ravi-exports.com. Sign up for Rediffmail Pro today! Know more. http://www.rediffmailpro.com/signup/


« previous php.general (#115946) next »