Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Can you put HTML in PHP files?


ya_dood

Recommended Posts

I followed this article to create additonal pages such as an about us page.

http://www.oscommerce.info/kb/osCommerce/C...g_Area/Boxes/49

 

It works fine on my site but I've never wrote PHP before. I see that I can add text and links to the following line:

 

define('TEXT_INFORMATION', 'My text can go here ');

 

But how do I add tables and images that were written with HTML? Is it possible? Would I have to use CSS? I couldn't find an answer in the Knowledge base or on the Forums.

 

Thanks

Link to comment
Share on other sites

I followed this article to create additonal pages such as an about us page.

http://www.oscommerce.info/kb/osCommerce/C...g_Area/Boxes/49

 

It works fine on my site but I've never wrote PHP before. I see that I can add text and links to the following line:

 

define('TEXT_INFORMATION', 'My text can go here ');

 

But how do I add tables and images that were written with HTML? Is it possible? Would I have to use CSS? I couldn't find an answer in the Knowledge base or on the Forums.

 

Thanks

 

You can put html into php pages.

 

define('TEXT_INFORMATION', 'your html can go here ');

 

Makes sense?

don't forget to keep the the two single quotation marks without them it will not work.

Backup before making changes. Backup before making changes! Backup before making changes!!

 

You did do a backup? eh?

Link to comment
Share on other sites

I tried adding <table> tags but it said "Fatal error: Cannot redeclare tep_db_connect()" for the file catalog/includes/functions/database.php

 

it worked fine with just hyperlinks and basic text. Does it all have to be on one line? I double checked on the close '); as well.

Link to comment
Share on other sites

what a dummy, i was messing up-it's all set now. thx :lol:

 

My pleasure.

Backup before making changes. Backup before making changes! Backup before making changes!!

 

You did do a backup? eh?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...