Quantcast
Channel: PHPWord
Viewing all articles
Browse latest Browse all 450

New Post: Pb with $document->setValue(‘Value1′, ‘Name on the first row’);

$
0
0
Hi every body,

This evening i'am in trouble with the flwg :

instead of using
$document->setValue(‘Value1′, ‘Name on the first row’);
i want to change to
$document->setValue(‘first_name′, ‘Name on the first row’);
and i put in the template ${first_name} ==> error and no word document save!

How can i circumnavigate this pb to achieve what i want, i've a doc in which i include (i want to) about 190 MySql column data i'd prefer to use, in php script, the native MySql column name instead of value1... value190 !

Viewing all articles
Browse latest Browse all 450

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>