PDA

View Full Version : variable, search and display



rayzun
02-16-2005, 08:55 PM
need some direction, searching a file, each line is seperate in a stored text file.
Using a variable in the address: db_id=1392
http://domain.com/cgi-bin/cs/cs.cgi?db_id=1392

Display select text from this file:
/home/2015/public_html/cgi-bin/data/As.data

As.data file contains:
1392|macdonald|01/15/2005|Gerry M|Private Seller|FOR SALE:|1997 Ford Mustang|Red with black interior

example url:
http://domain.com/cgi-bin/cs/cs.cgi?db_id=1392

example HTML on page:
<title>1997 Ford Mustang - Private Seller
</title>