Hello,
I was wondering if I could stick code into the productline.
I was thinking of allowing my server to parse html files as php files and then inserting the following code into the productline template so that a link would be generated for each item.
I havnt really thought much about it - I just came up with it now. Would this work?
mysql_free_result($result);
I was wondering if I could stick code into the productline.
I was thinking of allowing my server to parse html files as php files and then inserting the following code into the productline template so that a link would be generated for each item.
I havnt really thought much about it - I just came up with it now. Would this work?
PHP Code:
$offer_id = 'NETQUOTEVAR:PRODUCTREF';
$ignore = 'this';
$query = sprintf("SELECT name, product_url FROM clproducts WHERE offer_id='%s'",
mysql_real_escape_string($offer_id),
mysql_real_escape_string($ignore));
// Perform Query
$result = mysql_query($query);
// Use result
while ($row = mysql_fetch_assoc($result)) {
$name = $row["name"];
$product_url = $row["product_url"];
echo( "<p>$name<br></br>" .
"(by <a href='$product_url'>$name</a>)</p>" );
}
Comment