PHP Classes

How to change table style?

Recommend this page to a friend!

      VS PHP Word HTML  >  All threads  >  How to change table style?  >  (Un) Subscribe thread alerts  
Subject:How to change table style?
Summary:Question!
Messages:1
Author:maria
Date:2016-10-26 16:34:05
 

  1. How to change table style?   Reply   Report abuse  
Picture of maria maria - 2016-10-26 16:34:05
Hi, guys. How can I change the style of the table? I'm getting some HTML code from my database but the table donīt apply any borders. I just want to get the borders, any idea?

Some code from my file:

$list=mysql_query("SELECT * FROM source WHERE id='29'");
$fil= mysql_fetch_assoc($list);
$table=$fil['content'];

require_once '../vsword/VsWord.php';

VsWord::autoLoad();

$doc = new VsWord();
$parser = new HtmlParser($doc);
$parser->parse( '<h2>This is the table</h2>' );
$parser->parse( $table );
$doc->saveAs('html.docx');