Hi,
I have messed with asp for awhile, but found a free php script that i need to edit to suit my purposes. Basically my issue is with the variable in the script below - $cbengine_cbid. Currently the script works great, but right now it pulls that value from an include called settings.inc. What i need is to be able to send that value to the script via the url...like:
www.mysite.com/script.php?cbid=myvalue
The reason is that the site is dynamic with many users and as it works now i would have to have a separate script for each user so i can change the settings.inc file as needed. If i can just send the value over (it is the only value that would change in the settings file) it would be great. Code is below and I hope someone can help.
Thanks in advance,
John
if ($totalrows > 0) {
for($i = $fr;$i < $to;$i++) {
$hoplink = $rss_channel["ITEMS"][$i]["LINK"] . "&u=" . $cbengine_user . "&cbid=" . $cbengine_cbid;
print ("<div class=\"item\">");
print ("\n<div class=\"itemtitle\"><a href=\"" . $hoplink . "\" target=\"_top\">" . $rss_channel["ITEMS"][$i]["TITLE"] . "</a></div>");
print ("<div class=\"itemdescription\">" . $rss_channel["ITEMS"][$i]["DESCRIPTION"] . "</div>");
print ("</div>");
}
} else {
print ("<b>Your search did not return any products.</b>");
}