How to Make PDF Invoices From Database in PHP | PHP FPDF Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 ม.ค. 2025

ความคิดเห็น • 156

  • @knzamy
    @knzamy 5 ปีที่แล้ว +1

    very best tutorial in TH-cam

  • @PizzaIsRocketScience
    @PizzaIsRocketScience 7 ปีที่แล้ว

    Thank you for fast reply! Looking forward to play with it.

  • @siddhugouda2444
    @siddhugouda2444 7 ปีที่แล้ว

    Nice one there guys...keep up

  • @jaiprakashnirala5152
    @jaiprakashnirala5152 4 ปีที่แล้ว

    Thank u for helpful knowledge

  • @djellebreda4456
    @djellebreda4456 2 ปีที่แล้ว

    Very good

  • @ZubairPlays10
    @ZubairPlays10 6 ปีที่แล้ว +3

    Hi, I have come across your channel and this is exactly what I have been looking for! You sir are great. Please may I have the source code for this? I will gladly appreciate it. I have also subbed to your channel. Thanks again.

  • @pikahela
    @pikahela 2 ปีที่แล้ว

    Thank you so much. I need this so much

  • @billyandrewmaghirang6899
    @billyandrewmaghirang6899 5 ปีที่แล้ว

    I get the undefined index invoiceID what should i do? seems like the get method doesnt work?

  • @ribzcosmos1986
    @ribzcosmos1986 6 ปีที่แล้ว

    thanks mam ..for your instant reply....

  • @tobiussaolo5971
    @tobiussaolo5971 6 ปีที่แล้ว

    I like this boss ....thanks alot

  • @amitgaud7863
    @amitgaud7863 6 ปีที่แล้ว

    No need u have already posted me the source code and thanks for it 👍

    • @moment5196
      @moment5196 6 ปีที่แล้ว

      Hello bro please can i have the source code ayoeniayeye@gmail.com

  • @dontbeafraid5313
    @dontbeafraid5313 5 ปีที่แล้ว +1

    Also can you do a tutorial to send data from pdf to mysql database?

  • @ayandas9477
    @ayandas9477 6 ปีที่แล้ว

    its a Great Tutorial mam..Please please do it in Codeigniter....... its my request

  • @PS-xx3vz
    @PS-xx3vz 5 ปีที่แล้ว

    Best solution i have ever met, I have come across your channel and this is exactly what I have been looking for! Please may I have the source code for this? I will gladly appreciate it.You are really great . please share source code. i will be very grateful.
    Thank you

  • @ramsgarageband5784
    @ramsgarageband5784 3 ปีที่แล้ว

    Great video ever

  • @itspriyankaaa
    @itspriyankaaa 3 ปีที่แล้ว +1

    thanks a lot! One question, how to display image?

    • @nyashamakwavarara5438
      @nyashamakwavarara5438 3 ปีที่แล้ว

      Lol. Did you figure it out because I also need help with that

    • @GemaCode
      @GemaCode  3 ปีที่แล้ว +1

      Sorry for late reply, it's explained in my other video here th-cam.com/video/ilAOoiWY_tU/w-d-xo.html hope it helps

  • @vmark80
    @vmark80 6 ปีที่แล้ว

    Hi mr Gemul, very nice and instructive tutorial.
    Is it possible to add/combine/import a pdf page (obviously non dynamically generated) into the resulting pdf invoices? thanx a lot

  • @hermanaben1146
    @hermanaben1146 7 ปีที่แล้ว +1

    Very good tutorials! I watched the whole series and want to start now with the implementation on my male choir website. I want to include mysql data and use the header and footer features. Can you send me the source code? Thanks you in advance.

    • @hermanaben1146
      @hermanaben1146 7 ปีที่แล้ว

      You can sent it to hjsaben@gmail.com. Thnks.

  • @parthaceo2090
    @parthaceo2090 6 ปีที่แล้ว

    awesome 👍👍

  • @ddimport
    @ddimport 7 ปีที่แล้ว

    Hi again Mr Gemul.
    As the tutorial is perfectly working in my local server (localhost) y tried the same in my web hosting server, but it doesn't work there, I have changed all the information regarding the db connection but nothing.
    Any idea?

    • @ddimport
      @ddimport 7 ปีที่แล้ว

      Hi Gemul, after testing, everything was just perfect except that my table in MySql database was starting with a capital letter (Orders and not orders)
      so calling the query "select * from orders" was working in my local server but in my web server was not.
      So now after correcting this error (select * from Orders) is working perfectly.
      Thank you very much.

  • @urvashiarya5148
    @urvashiarya5148 6 ปีที่แล้ว

    THANKS FOR THIS VIDEO

  • @zack-aihtizaz
    @zack-aihtizaz 4 ปีที่แล้ว

    Hai..salam. I got error as below (for invoice-db.php file):-
    1) "Notice: Undefined index: invoiceID in...pdf\invoice-db.php on line 12"
    2) "Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, boolean given...\pdf\invoice-db.php on line 13"
    line 12 is: invoiceID = '".$_GET['invoiceID']."'");
    line 12 is: $invoice = mysqli_fetch_array($query);
    I cannot find what is the problem..

  • @ibrahimzeroual
    @ibrahimzeroual 4 ปีที่แล้ว +1

    thank you so much

  • @SecrethLab
    @SecrethLab 4 ปีที่แล้ว

    Hello. I have tried this method and i really like it. But for some reason when i pick a invoice in the drop down i get the same data no matter what number i pick. Any obvious reason why?
    EDIT: I figured it out. I forgot to use $_GET['InvoiceID'] from the html form. Ty for this guide it was really helpful

  • @qariibonline
    @qariibonline 2 ปีที่แล้ว

    Thanks Alot

  • @ddimport
    @ddimport 7 ปีที่แล้ว

    Hi mr Gemul, very good tutorial indeed.
    I am from Greece so my data contains greek letters than do not appear well in the resulting PDF.
    Any idea on how to fix this problem?

    • @ddimport
      @ddimport 7 ปีที่แล้ว

      Thank you very much Gemul, you saved my day!!!

  • @shrutijain9921
    @shrutijain9921 5 ปีที่แล้ว

    While running the code I am getting the error invoice Id is undefined index and some data has already sent...Can you please help me with these errors.!

  • @nozibusisomarumo2286
    @nozibusisomarumo2286 6 ปีที่แล้ว

    Please help me. I keep on getting this error message "Notice: Undefined index: invoiceID in C:\xampp\htdocs\invoice\invoice.php on line 12
    FPDF error: Some data has already been output, can't send PDF file. What should i do?

    • @nozibusisomarumo2286
      @nozibusisomarumo2286 6 ปีที่แล้ว

      Hello. invoiceID does exist in my database.
      I am not sure what you mean by declaring invoiceID "index".
      Can you please explain by making an example for me, because declaring ($invoiceID) did not change the error.
      Apologies for the inconvenience, I am still a beginner.

    • @nozibusisomarumo2286
      @nozibusisomarumo2286 6 ปีที่แล้ว

      nevermind. the form is displayed but now, its empty. the cell values are missing

  • @paulcamerino233
    @paulcamerino233 6 ปีที่แล้ว

    Hello, I have a question on action="invoice-db.php" how can I make multiple choices of pdfs?

    • @paulcamerino233
      @paulcamerino233 6 ปีที่แล้ว

      I'm sorry for the confusion I have solved this problem. Please nevermind that on the other hand I want to ask how can I compare values using _GET of the options selected? So if the user chooses an option it will get the option compare it and if correct display the desired outcome? And thanks for replying really appreciate it. Love your channel, btw.

    • @paulcamerino233
      @paulcamerino233 6 ปีที่แล้ว

      @@GemaCode ohh so i have to set a variable first as a container of a value to be compared?? I will try these. Thank you very much!

    • @paulcamerino233
      @paulcamerino233 6 ปีที่แล้ว

      @@GemaCode hey man i apologize but it didn't work also :(

    • @paulcamerino233
      @paulcamerino233 6 ปีที่แล้ว

      @@GemaCode im really grateful for your response thanks again!

    • @paulcamerino233
      @paulcamerino233 6 ปีที่แล้ว

      @@GemaCode no worries mate i solved the problem im really thankful to you and with all your videos i hope you keep on helping beginners like me. Thanks a lot!

  • @joymiegonzales5025
    @joymiegonzales5025 2 ปีที่แล้ว

    Or can you do coding electricity billing system using php.

  • @manickammurugappan9691
    @manickammurugappan9691 6 ปีที่แล้ว

    How do i print more than one column from the database in a same cell?

  • @sukanyagundanoor5660
    @sukanyagundanoor5660 7 ปีที่แล้ว

    Hello, can you tell me how to add image from database or excel??

    • @sukanyagundanoor5660
      @sukanyagundanoor5660 7 ปีที่แล้ว

      ok. Thank you for the reply. ya i know how to add static image. but i wanna dynamic image. can you tell me how to store image into database from excelsheet??

  • @cjellal
    @cjellal 6 ปีที่แล้ว

    How can I use a different size of paper? Is it possible?

    • @cjellal
      @cjellal 6 ปีที่แล้ว

      @@GemaCode thank you! 😊

  • @osamaisam5853
    @osamaisam5853 7 ปีที่แล้ว

    Hi .
    How to set font arabic utf8

  • @itspriyankaaa
    @itspriyankaaa 3 ปีที่แล้ว

    $pdf->Cell(130 ,20 , 'images/$result['image']',1,1); does not work, I don't know how to give the path

    • @GemaCode
      @GemaCode  3 ปีที่แล้ว

      Double check your path. It should be relative to your script. Or better yet, use absolute path. You can use __DIR__ to get your current working directory.

    • @joymiegonzales5025
      @joymiegonzales5025 2 ปีที่แล้ว

      @@GemaCode hello po

  • @crysoliteangelyn6475
    @crysoliteangelyn6475 5 ปีที่แล้ว

    Good work
    Please share the source code.

  • @nishantgholap5103
    @nishantgholap5103 ปีที่แล้ว

    can youn plese provide your db file .sql

  • @PabloEsparzaJimenez1
    @PabloEsparzaJimenez1 6 ปีที่แล้ว

    Thanks!

  • @ravesalways
    @ravesalways 6 ปีที่แล้ว

    I need help, like you do.
    Output : %PDF-1.3 3 0 obj endobj 4 0 obj Stream

    • @ravesalways
      @ravesalways 6 ปีที่แล้ว

      header('Content-type: application/pdf');
      Now, right? Should I change?

    • @ravesalways
      @ravesalways 6 ปีที่แล้ว

      Yes,What should I do?

    • @ravesalways
      @ravesalways 6 ปีที่แล้ว

      I make a like invoice-db.php file.

    • @ravesalways
      @ravesalways 6 ปีที่แล้ว

      You have to contact the others? I'll show you the code modified.

  • @petersababa4871
    @petersababa4871 4 ปีที่แล้ว

    Help me with the source code please

  • @shipleym4530
    @shipleym4530 ปีที่แล้ว

    Can't see clearly this video

  • @subhaRajamurugan
    @subhaRajamurugan 5 ปีที่แล้ว

    please send coding for me

  • @jzapapas
    @jzapapas 5 ปีที่แล้ว

    Thank you Gemul. Can you point me to the source? Thank you, and I subscribed to your channel. JIm Zapapas