Difference between revisions of "Import Functions"

From AWBS Wiki
Jump to: navigation, search
(create_encoded_invoiceid)
Line 18: Line 18:
  
 
''Example:'' $inc_enc=create_encoded_invoiceid($invoice_id);
 
''Example:'' $inc_enc=create_encoded_invoiceid($invoice_id);
 +
 
Then you can query the client_invoices_items table - where id = '$inc_enc'
 
Then you can query the client_invoices_items table - where id = '$inc_enc'
  
 
===Instructions===
 
===Instructions===
 
Place the importfunctions.php file from the importfunctions.zip in your AWBS /tools directory and include into your php script file.
 
Place the importfunctions.php file from the importfunctions.zip in your AWBS /tools directory and include into your php script file.

Revision as of 22:37, September 4, 2010

Functions:

create_encoded_password

Usage: create_encoded_password(md5_encoded_password)

Example: $newpass=create_encoded_password("md5encodedpassword");

generate_seed

Usage: generate_seed()

Example: $newseed=generate_seed();

create_encoded_invoiceid

Usage: create_encoded_invoiceid($invoice_id)

Example: $inc_enc=create_encoded_invoiceid($invoice_id);

Then you can query the client_invoices_items table - where id = '$inc_enc'

Instructions

Place the importfunctions.php file from the importfunctions.zip in your AWBS /tools directory and include into your php script file.