User Profile

Collapse

Profile Sidebar

Collapse
amnos
amnos
Last Activity: Oct 28 '14, 04:12 AM
Joined: Oct 9 '14
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • amnos
    replied to HOW TO SOLVE Notice: Undefined index: IN PHP
    in PHP
    Code:
    //First assign default value for all variables
    $BMK81A = 0;
    $DL3=0;
    //Check the value is posted by post method if it is assign it to the corresponding value
     if (isset($_POST['BMK81A']) { 
      $BMK81A = $_POST['BMK81A'];
     }
       
     if(isset($_POST['DL3'])){
     	$DL3=$_POST['DL3'];
     }
    Like wise do this for all the variables for which you are getting notice error.
    See more | Go to post

    Leave a comment:


  • amnos
    replied to how can i solve and how to fix to correct?
    seems to be that you have extra space between
    Code:
    COUNT (paidvacation.staffid)
    count and open braces remove it and check,

    Code:
    SELECT staff.staffid,staff.name,attendance.checkintime,attendance.checkouttime,attendance.breakintime,attendance.breakouttime,
    attendance.latetime,attendance.overtime,attendance.transfees,COUNT(paidvacation.staffid) AS Leave,COUNT(attendance.staffid) AS Work
    FROM attendance INNER JOIN staff ON (staff.staffid
    ...
    See more | Go to post

    Leave a comment:


  • amnos
    replied to use pdf class in php and mysql
    in PHP
    there are more php libraries available to convert html to pdf like html2pdf, mpdf, tcpdf and fpdf,etc. you can check those libraries.

    for mpdf you can use the code like below

    Code:
    include("../mpdf.php");
    $mpdf=new mPDF();
    $mpdf->WriteHTML($html);
    $mpdf->Output();
    exit;
    check this tutorial for more info
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...