mathus Posted July 11, 2007 Share Posted July 11, 2007 as far as i can see, my syntax is correct, but im getting no output. Tried testing with an echo command, and i get nothing after i call the dbf file. $dbfile = "192.168.1.54/BPE_BACKUP/720/PT_CONTC.DBF"; $db = dbase_open($dbfile, 0) or die ("Could not open dbf file <i>$db_file</i>."); echo "test"; if ($db) { $record_numbers = dbase_numrecords($db); for ($i = 1; $i <= $record_numbers; $i++) { $row = dbase_get_record_with_names($db, $i); echo "Member #$i: " . trim($row['name']) . "\n"; } } does anyone have any tips or tricks to working with dbase? i need to figure this out by 7/18, it was dropped on me monday. Link to comment https://forums.phpfreaks.com/topic/59483-php-with-dbase/ Share on other sites More sharing options...
marcus Posted July 11, 2007 Share Posted July 11, 2007 if($db){ echo "working"; dbase_close($db); }else { echo "not working"; } Link to comment https://forums.phpfreaks.com/topic/59483-php-with-dbase/#findComment-295601 Share on other sites More sharing options...
mathus Posted July 11, 2007 Author Share Posted July 11, 2007 thanks for the suggestion, but no output. at all. Link to comment https://forums.phpfreaks.com/topic/59483-php-with-dbase/#findComment-295652 Share on other sites More sharing options...
marcus Posted July 11, 2007 Share Posted July 11, 2007 Have you used dbase_create() to create the database? Link to comment https://forums.phpfreaks.com/topic/59483-php-with-dbase/#findComment-295654 Share on other sites More sharing options...
mathus Posted July 13, 2007 Author Share Posted July 13, 2007 the database is already made, do i still need to use dbase_create() to call it? Link to comment https://forums.phpfreaks.com/topic/59483-php-with-dbase/#findComment-297330 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.