# PHP / MySQL Coach Wanted

**URL:** <https://www.phphelp.com/t/php-mysql-coach-wanted/27083>\
**Category:** PHP Freelancing\
**Created:** [September 5, 2018, 3:47am UTC](https://www.phphelp.com/t/php-mysql-coach-wanted/27083 "2018-09-05T03:47:59Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![ttsprez](https://www.phphelp.com/letter_avatar_proxy/v4/letter/t/3ab097/32.png) [@ttsprez](https://www.phphelp.com/u/ttsprez)\
**Post date:** [September 5, 2018, 3:47am UTC](https://www.phphelp.com/t/php-mysql-coach-wanted/27083/1 "2018-09-05T03:47:59Z")

</div>

Looking for help with PHP, MySQL and particularly PDFtk function to fill pdf forms. Willing to dicuss code coaching or code generation help.

---

<div class="post-metadata">

**Author:** ![ttsprez](https://www.phphelp.com/letter_avatar_proxy/v4/letter/t/3ab097/32.png) [@ttsprez](https://www.phphelp.com/u/ttsprez)\
**Post date:** [September 5, 2018, 4:04am UTC](https://www.phphelp.com/t/php-mysql-coach-wanted/27083/2 "2018-09-05T04:04:07Z")

</div>

For those of you who find this of interest, I have found some PHP code that I believe with a little adjustment, can serve my purpose. But due to my limited knowledge and coding comfort level, I know I need the guidance and help. If this sounds like something that fits you, I’d appreciate the help

---

<div class="post-metadata">

**Author:** ![benanamen](https://www.phphelp.com/user_avatar/www.phphelp.com/benanamen/32/287_2.png) [@benanamen](https://www.phphelp.com/u/benanamen)\
**Post date:** [September 5, 2018, 4:43am UTC](https://www.phphelp.com/t/php-mysql-coach-wanted/27083/3 "2018-09-05T04:43:59Z")

</div>

Perhaps you should provide details on the compensation you are offering and how many hours you are looking for.

---

<div class="post-metadata">

**Author:** ![ErnieAlex](https://www.phphelp.com/letter_avatar_proxy/v4/letter/e/bc8723/32.png) [@ErnieAlex](https://www.phphelp.com/u/ErnieAlex)\
**Post date:** [September 5, 2018, 6:39pm UTC](https://www.phphelp.com/t/php-mysql-coach-wanted/27083/4 "2018-09-05T18:39:31Z")

</div>

Well, I just do it in HTML and save the HTML version in a variable. Then, use a library called DOMpdf.  
This is all the code you need to use to covert the HTML page into a PDF. Simple and can be saved as  
a .PDF file or just outputted to the page for a download. Works extremely well for me. The library is  
free from Github here: [DOM-PDF](https://github.com/dompdf/dompdf)  
Here is a sample of the code including how to save the file or send it to the browser…  
Hope this helps…

-\<?PHP

// reference the Dompdf namespace  
use Dompdf\Dompdf;  
use Dompdf\Options;  
require\_once ‘lib/dompdf/autoload.inc.php’;

// instantiate and use the dompdf class  
$dompdf = new Dompdf();  
$dompdf-\>loadHtml($form1html); // $form1html is the HTML version of a printable form

// (Optional) Setup the paper size and orientation  
$dompdf-\>setPaper(‘A4’, ‘portrait’);

// Render the HTML as PDF  
$dompdf-\>render();

// Output the generated PDF to Browser  
//$dompdf-\>stream();

// Save to file  
$pdf\_gen = $dompdf-\>output();  
file\_put\_contents(“form1.pdf”, $pdf\_gen);

echo $dompdf-\>output();  
?\>

---

<div class="post-metadata">

**Author:** ![ttsprez](https://www.phphelp.com/letter_avatar_proxy/v4/letter/t/3ab097/32.png) [@ttsprez](https://www.phphelp.com/u/ttsprez)\
**Post date:** [September 5, 2018, 11:44pm UTC](https://www.phphelp.com/t/php-mysql-coach-wanted/27083/5 "2018-09-05T23:44:57Z")

</div>

ErnieAlex, that code generates a pdf output… In my case I’d like to take mysql data and fill in an existing pdf form, not just take data and create a pdf form for printing or download… but thanks anyway for your effort.

As for Benanamen, I did say I was looking for a coach, someone to help me fine tune what I already have… my intention was to have someone take a look at what i have and then tell me what would be the best way to move forward. With that said, I’ve received a message from someone else who has shown interest to do just that so thanks anyway for the initial interest.

---

<div class="post-metadata">

**Author:** ![ttsprez](https://www.phphelp.com/letter_avatar_proxy/v4/letter/t/3ab097/32.png) [@ttsprez](https://www.phphelp.com/u/ttsprez)\
**Post date:** [September 5, 2018, 11:46pm UTC](https://www.phphelp.com/t/php-mysql-coach-wanted/27083/6 "2018-09-05T23:46:03Z")

</div>

Benanamen, I did say I was looking for a coach, someone to help me fine tune what I already have… my intention was to have someone take a look at what i have and then tell me what would be the best way to move forward. With that said, I’ve received a message from someone else who has shown interest to do just that so thanks anyway for the initial interest.

---

<div class="post-metadata">

**Author:** ![benanamen](https://www.phphelp.com/user_avatar/www.phphelp.com/benanamen/32/287_2.png) [@benanamen](https://www.phphelp.com/u/benanamen)\
**Post date:** [September 6, 2018, 12:02am UTC](https://www.phphelp.com/t/php-mysql-coach-wanted/27083/7 "2018-09-06T00:02:39Z")

</div>

Correct me if I am wrong…

You posted in the Freelancing forum which is the “Looking to hire someone” forum but you had no intention of paying anyone?

---

<div class="post-metadata">

**Author:** ![ttsprez](https://www.phphelp.com/letter_avatar_proxy/v4/letter/t/3ab097/32.png) [@ttsprez](https://www.phphelp.com/u/ttsprez)\
**Post date:** [September 6, 2018, 12:56am UTC](https://www.phphelp.com/t/php-mysql-coach-wanted/27083/8 "2018-09-06T00:56:48Z")

</div>

Never said I had NO intention of paying…but I’m not looking to get had either. If I can do a lump of the work and have someone guide me to complete the rest, I’m willing to compensate that persons for thier efforts. But I’m not going to just let someone tell me 20k for 2 months of work when all its gonna take is a few days. Sorry, but I been on this ride before.

---

<div class="post-metadata">

**Author:** ![ErnieAlex](https://www.phphelp.com/letter_avatar_proxy/v4/letter/e/bc8723/32.png) [@ErnieAlex](https://www.phphelp.com/u/ErnieAlex)\
**Post date:** [September 6, 2018, 4:45am UTC](https://www.phphelp.com/t/php-mysql-coach-wanted/27083/9 "2018-09-06T04:45:35Z")

</div>

Aside from the paying of services, you mentioned filling in PDF forms, but, you did not explain how you access the forms. I gave you a way to create outputs in just a few lines of code. If you want to add in data into a PDF, that is handled in a similar manner. You have to capture the form and then fill in your answers and post the form back to the server.

Posting forms back to servers is very easy, you just need to know the form’s layout and have the correct access to the server to be able to send it back to them. I did not understand your original questions. Thought it was a problem with PDF’s, not posting to other websites!

---

<div class="post-metadata">

**Author:** ![ErnieAlex](https://www.phphelp.com/letter_avatar_proxy/v4/letter/e/bc8723/32.png) [@ErnieAlex](https://www.phphelp.com/u/ErnieAlex)\
**Post date:** [September 6, 2018, 4:48am UTC](https://www.phphelp.com/t/php-mysql-coach-wanted/27083/10 "2018-09-06T04:48:24Z")

</div>

To fill someone else’s web-forms, you can load them into a variable and fill in the data and then submit the page to their site. But, this is really, kind of , a hacker code… What are you really attempting to do?

Maybe if you are clear on what you really need, we can help you out!
