Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

php functions


davidstummer

Recommended Posts

Posted

what i need is for my php file to go to another webpage, and retrieve info from on of its tables. i can get it to go to a different URL, but at the moment it just displays the whole page.

 

how can i make sure that it goes to the url, and only displays one of it's tables?

 

thanks

Posted

If I understand correctly you're talking about an HTML table, not a database table.

 

I think what you need to do is to put the table code into a separate php file. Then in the old file replace the table code with

<?php require('includes/mynewtable.php'); ?>

Then also add this line to the new page that you want to be able to display the table. This way both pages will be able to show the same table without having duplicate code.

In olden times the men were made of iron and the ships were made of wood; now it's the other way around. :wink:

Archived

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

×
×
  • Create New...