Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

need an experienced php programmer


asim0s

Recommended Posts

<?php 
function evalFromDB($php){
$questionMark = "?";
$phpOpenTag = "<${questionMark}php";
$phpCloseTag = "${questionMark}>";
return eval("$phpCloseTag" . stripslashes($php) . "$phpOpenTag ");
}
?>

      <p><?php echo evalFromDB($product_info['products_description']); ?></p>  

 

 

 

ok boys/girls couple of days ago i was asking around how to insert php in product descriptions

 

i asked in another couple of forums and managed to find it and implement it

i entered this in my product info and yes you can execute php in product description

 

 

now what i want to do is make a function to query the database and retrieve product name and product price ( this piece of code will be inserted in product description )

i tried to include the default tep_db_query function but i get an error already declared and also the same happens if i include the application.top

 

any help will be appreciated

thx

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...