Results 1 to 5 of 5

Thread: camne nk create PDF gune PHP???

  1. #1
    Join Date
    Jan 2008
    Location
    parit raja, batu pahat
    Posts
    8
    Rep Power
    0

    camne nk create PDF gune PHP???

    em...
    saya nk minta tolong la...
    camne nk create PDF gune php hah??
    dah try banyak kali tp asyik xjadi jer..
    dah pressure dah ni...

  2. #2
    Join Date
    Sep 2005
    Location
    in my body lar...
    Posts
    1,325
    Rep Power
    0
    Quote Originally Posted by kuumasang_n33 View Post
    em...
    saya nk minta tolong la...
    camne nk create PDF gune php hah??
    dah try banyak kali tp asyik xjadi jer..
    dah pressure dah ni...
    we also donno how to help u there coz your desc given a way too short and something like you the screnario below:-

    in the clinic: ring ring.... ring ring... (tel ringing)
    doc: ello, doctor XYZ here
    u: doc i'm not feeling weel, i try take panadol but cannot also lar...
    doc: come over to clinic pls...
    u: cannot lar...very tension now...you a doctor mah.. u cannot diagnose my problem on the phone meh?
    doc: no i can't
    u: are u really a doctor ar... why so lau yar wan...
    doc: u crazy ar... u tink i'm Professor X (x-men) meh... u tink i can read your mind and do diagnosis over the tel line meh.....

    so.... show your coding for the ppl here to do a proper diagnosis and get proper help in a timely manner... show the error message you encounter also lah....

    sorry if i offended you but i getting tired of hearing ppl say "i need help" but never give proper info on their problem...

  3. #3
    Join Date
    Jan 2008
    Location
    parit raja, batu pahat
    Posts
    8
    Rep Power
    0
    <?php
    // test the table functions
    error_reporting(E_ALL);
    include('class.ezpdf.php');
    $pdf =& new Cezpdf();
    $pdf->selectFont('./fonts/Helvetica');

    // open the connection to the db server
    $link = mysql_connect("localhost", "root", "");
    // change to the right database
    $db = mysql_select_db("permanent_asset");
    // initialize the array
    $data = array();
    // do the SQL query
    $result = mysql_query("SELECT * FROM usersystem ");
    // step through the result set, populating the array, note that this could
    //also have been written:
    while($data[0] = mysql_fetch_array($result, MYSQL_ASSOC)) {
    // make the table
    $pdf->ezTable($data);
    }
    // do the output, this is my standard testing output code, adding ?d=1
    // to the url puts the pdf code to the screen in raw form, good for
    //checking
    // for parse errors before you actually try to generate the pdf file.
    if (isset($d) && $d){
    $pdfcode = $pdf->output(1);
    $pdfcode = str_replace("\n","\n<br>",htmlspecialchars($pdfcod e));
    echo '<html><body>';
    echo trim($pdfcode);
    echo '</body></html>';
    } else {
    $pdf->stream();
    }
    ?>

  4. #4
    Join Date
    Jan 2008
    Location
    parit raja, batu pahat
    Posts
    8
    Rep Power
    0
    above is the code that cannot run well.

  5. #5
    Join Date
    Mar 2008
    Location
    Malaysia
    Posts
    1
    Rep Power
    0
    Quote Originally Posted by kuumasang_n33 View Post
    em...
    saya nk minta tolong la...
    camne nk create PDF gune php hah??
    dah try banyak kali tp asyik xjadi jer..
    dah pressure dah ni...
    try gune api fpdf...ade contoh skali...

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 10
    Last Post: 09-08-2008, 10:56 PM
  2. gune SSL dalam ASP
    By talapia in forum Website Programming
    Replies: 4
    Last Post: 23-02-2008, 02:17 AM
  3. tolong ye.. nak develop software...gune php
    By reeysza in forum Website Programming
    Replies: 0
    Last Post: 22-02-2008, 11:07 PM
  4. korang suker tak gune PSP?
    By ikan-todac in forum Graphic Design
    Replies: 7
    Last Post: 14-02-2003, 01:55 AM
  5. camne nak publish web gune php
    By silverX in forum Website Programming
    Replies: 7
    Last Post: 20-11-2002, 12:06 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Search Engine Optimization by vBSEO 3.5.0 RC1 PL1

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37