On Fri, October 6, 2006 11:35 am, Rahul S. Johari wrote: > $db = dbase_open("osm.dbf", 0); > if ($db) { > $record_numbers = dbase_numrecords($db); $found = false; > for ($i = 1; $i <= $record_numbers; $i++) { > $row = dbase_get_record_with_names($db, $i); > if ($row['PHONE'] == $thekey) { > echo ³found²; $found = $thekey; > } > else { // > echo ³not found²; // do nothing here > } > } if (!$found) echo "not found"; > } > dbase *does* have some kind of way to just search with a query or something, right?... Use it if it does. -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some starving artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php