Jump to content

php with dBase


mathus

Recommended Posts

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.