Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

how do I call to 2 files at once in the coding


mariemeh

Recommended Posts

Posted

I am trying to re write a contrib to print both an invoice and a packing slip for the specified order in one command.

 

How do I tell the code two call on to files... for now it calls to one like this

 

 

$oID = $order_number;

include('nameoffile.php');

 

 

I've tried this... but mind you, I am a beginner so I might be going at this the wrong way

 

$oID = $order_number;

include('nameoffile.php');

include('nameoffile2.php');

 

or

 

$oID = $order_number;

include('nameoffile.php' . 'nameoffile2.php');

 

but none of that works... if anyone could help, I would greatly appreciate it. I meant to share this when I am done.

 

Thanks

Posted

It's always after one finds the courage to ask for help that the light comes on :blink:

 

 

Sorry... I figured it out

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...