pdf generation - How to convert MySQL data from page into PDF -


i want convert data retrieve mysql database pdf on image click. want place image on each article website, , when click on image, automaticaly gets pdf version of article. how can that? please me.

for retrieve data mysql use this:

<?php $id = (int)$_get['vij']; $sql="select id,news_title,news_text,publish_date,hit_count news id=$id"; $result=mysql_query($sql); while($rows=mysql_fetch_array($result)){ ?> 

and call:

<? echo $rows['news_text']; ?> 

you try tcpdf - php class, not require additional libraries. there lot of examples quite easy use. supports utf-8, , has lot of other features. visit site.


Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -