Menu

PHPRtfLite+Mysql It's possible?

PhpRtf
Mario
2011-01-19
2013-04-30
  • Mario

    Mario - 2011-01-19

    Hello, it's possible to stablish a mysql connection in PHPRtfLite and print the query results in the generated rtf file?
    Thanks for this great class.

     
  • Steffen Zeidler

    Steffen Zeidler - 2011-01-19

    Hello,

    PHPRtfLite is not made for connecting databases. What I would suggest you is to create a class that takes a query result set and uses the PHPRtfLite library to print out the query result. So you clearly separated concerns. Your class wouldn't even know, that it was a mysql query that produced that result set.

    Greets,
    Sigma

     

Log in to post a comment.