Jump to content

watchdog

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

watchdog's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi all...I use ps2pdf to create pdf files using php. Basically just text files then I use : $command="enscript myFile.txt -p " . "psfile.ps ps -R -B -fTimes-Roman13"; $response=`$command`; $command="ps2pdf psfile.ps " . "myFile.pdf"; $response=`$command`; header("Location: myFile.pdf"); This works great for text files. Can anyone tell me how in the php code you code for an image to show up in the PDF file, and then in the ps2pdf command, anything that relates to showing that image in the PDF (myfile.pdf)..... Heres an example of what my text line in my php program might look like : $myTextLine="This is my dog ". $myTextLine.="here is where I want to put a pic of my dog". Hope this is clear. Thanks!
  2. ??? Hi folks...Can anyone help me with this?  In the code below, Im trying to capture the out variable p_pay_proposal_id as $p_pay_proposal_id to continue using in my php program.  Im not sure on the -1 parameter in the bind.  The error I'm getting is : <br /> <b>Warning</b>:  ocibindbyname(): OCIBindByName: ORA-01036: illegal variable name/number Thanks for the help, I appreciate it! $stmt=ociparse($connection, " declare l_object_version_number        number := 1; l_assignment_id                number(10); l_change_date                  date; l_element_entry_id            number; l_inv_next_sal_date_warning    boolean; l_proposed_salary_warning      boolean; l_approved_warning            boolean; l_payroll_warning              boolean; l_pay_proposal_id              number; p_false boolean := FALSE; p_true  boolean := TRUE; begin l_assignment_id := $assIdRow[ASSIGNMENT_ID]; l_change_date := '$row[SALARYDATE]'; hr_maintain_proposal_api.insert_salary_proposal (     p_pay_proposal_id                  => l_pay_proposal_id,     p_validate                              => p_true,     p_assignment_id                      => l_assignment_id,     p_business_group_id                => 0,     p_object_version_number          => l_object_version_number,     p_multiple_components            => 'Y',     p_change_date                      => l_change_date,     p_approved                            => 'N',     p_element_entry_id                => l_element_entry_id,     p_inv_next_sal_date_warning    => l_inv_next_sal_date_warning,     p_proposed_salary_warning      => l_proposed_salary_warning,     p_approved_warning                => l_approved_warning,     p_payroll_warning                  => l_payroll_warning ); end;"); OCIBindByName($stmt, ":p_pay_proposal_id",                                 $p_pay_proposal_id, -1) or die ('Cant bind variable'); $success=@ociexecute($stmt);
×
×
  • 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.