Greetings.

I'm trying to do a simple script that opens a dbase file and show me some records.

I've tried this:

<?php
$dbf = dbase_open('FOO.DBF',0);
$drec = dbase_get_record_with_names($dbf,1);
echo "$drec['NAME']<br>";
echo "done."
?>

I get a blank screen as a result...

Why it doesn't work? What I'm doing wrong?

Please people, help me.

Thanks in advance.

    I've never worked w/ .dbf files, I've never had to because MySQL is so much cooler... 🙂 If you don't have MySQL, get it now, because it's free and practically the standard (especially on this board). There's a whole set of mysql functions in PHP that will save you a lot of work.

    In other words, I can't help you with this problem, but if you come to the board with a problem in mysql you are much more liekly to get a quick response...

    Good luck!
    Jason

      Hi there.

      I know and use mySQL, but the problem is the client only have FoxPro generated dbf files, so I have to work this out....

      Thanks for your reply.

      Regards,

        Sorry I couldn't help much, then! 🙂 Good luck with your dbf's.

        Happy Coding,
        Jason

          Write a Reply...