Jump to content

PDF, PHP, and MySQL


anthonydamasco

Recommended Posts

ok ive never done this with a pdf before but ill see if i can get something to work...

 

select for your table what you want using mysql...

 

<?php

$result = mysql_query(SELECT * FROM your tabel); // you have to edit this
$row = mysql_fetch_array($result);
$text = $row['text'];

$filename = "file.pdf"; //name of file

$file=fopen($filename,'w+'); //open file
fwrite($file,$_POST[text]); //write to file
fclose($file);//close file

?>

 

should work.. i hope :S

Link to comment
https://forums.phpfreaks.com/topic/42400-pdf-php-and-mysql/#findComment-205722
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.