Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

PHP in Products Description


kronnyq

Recommended Posts

Posted

Is there any way I can include a php file in a Products description...the script returns text based on the passed string and I need to get it to display when a product is viewed.

 

Can it be done? I normal php include didn't work.

Posted
Is there any way I can include a php file in a Products description...the script returns text based on the passed string and I need to get it to display when a product is viewed.

 

Can it be done? I normal php include didn't work.

 

just show what you want to do

Treasurer MFC

Posted
just show what you want to do

 

I need to be able to include output from a separate php file in products listing.

 

<?php include='http://mysite.com/mtype.php?h'; ?>

 

is not working

Posted

Nope didn't work either.

 

Viewing the source of the product page reveals <?php include('http://mysite.com/mtype.php?h'); ?>, why isn't it rendering?

Posted

<?php include('http://mysite.com/mtype.php?h'); ?>

 

.php?h has an "?"

 

I'm not sure that yuou can include a query on a php file (.php?)

 

Whay don't you include a .txt or html file?

Posted

There's no way to do this? I really don't want to have to make 20 seperate TXT files to have to include, the script I wrote returns the needed data based on a query.

Archived

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

×
×
  • Create New...