Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2012
    Posts
    51
    Tokens
    313

    Default [Diffrent Topic yet i still need help!] Confused on this. (Stuck)

    Hey Guys,

    I'll keep it short.
    > Creating invoice part to one of my projects.
    > Found a simple nice tut on a invoice system
    > Want to integrate it into my system.

    {Here Go's}

    So i have a customer booking system created and ready to go, Now i want to integrate an invoice system to it. I'm confused at where i am on the following code.

    The invoice system (tut) want's to create new customers every time although i want to link it with my current one's?
    (If that makes any sense)

    When you submit the invoice it run's this code:
    INSERT into $database.Order_head values('', '$invoice_number', '$buyer', '$time_stamp', '$delivery_date', '$payment_method')

    How could i change or modify that to insert it into my other db and tell it to select the user's id?

    I want it to submit into my "customer db" but to the correct user i want it to?

    I hope i haven't mixed my words - Sorry for any confusion i've been up since 3am trying to work this out..

    You can see the tut for the invoice system here: http://aarnet.dl.sourceforge.net/pro...asyInvoice.zip

    Thanks heaps again.
    Chris.

  2. #2
    Join Date
    Oct 2006
    Posts
    9,900
    Tokens
    26,832
    Habbo
    Zak

    Latest Awards:

    Default

    PHP Code:
    $sql="INSERT INTO $your_tbl_name(invoiceNum, buyer, time, date, payment)VALUES('$invoice_number', '$buyer', '$time_stamp', '$delivery_date', '$payment_method')";

    $result=mysql_query($sql); 
    Make sure your field names in your db are correct. Sorry I don't know much PHP I'm more of an SQL man myself.

  3. #3
    Join Date
    Nov 2012
    Posts
    51
    Tokens
    313

    Default

    Thank-You for your reply.
    I have had this sorted out already.
    Thanks

Posting Permissions

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