Login:      Password:
  Dynamic Datafeeds
Our dynamic datafeeds make it easy for you to promote specific types of products from your website. Download some simple code, customize it for your site, and you'll never have to worry about updating your datafeeds again.
 

We have stored all of our datafeeds from 100+ stores in a MySQL table for your use. In order to connect to the MySQL database on our server and display products from our datafeeds, your website must be located on a server that is PHP, ASP, or CF enabled. For any page of your website that you want to place datafeed content on, you must paste the correct code into that page.
You will need to modify two lines of code initially:
1. Change the table variable from the default "hammocks" to whatever store you want to pull data from (see complete list below).
2. Change "CD1" to your own unique affiliate id.

Click here for an example of pulling a datafeed for hammock stands from the hammocks table using php.

PHP code
ASP code
ColdFusion code

3. It is recommended that you first run the provided script to get a sense of the categories those products are broken down into.
4. Decide how you want to categorize the products on your site, and then modify the SQL query to pull only the products you want for each page.
5. Feel free to modify the layout of the table to suit your design tastes - the example above is just for introductory purposes - you'll want to tweak it and make it your own (you will probably want to remove the category field, for example).

The more familiar you are with HTML, SQL, and at least one of the above languages, the more you can do with the script. The tables in the below right column should prove very helpful as well. If you are having problems, please contact us.

Valid table names: Approximate # items in feed
adirondackchairs300
allbriefcases565
aquariumsdirect250
armoiregallery300
babygift1,500
backgammonplus140
badmintonsource100
bakersracks150
banquettables200
barstools1,100
barware2,200
beachchairs200
beanbags300
bedroomfurnituremart2,000
benches600
billiardsauthority950
binoculars4,000
birdbaths400
birdcages260
birdhouses350
bistrosets100
bocceballsets100
bombechests150
bookcasesgalore200
candelabras160
canopycenter130
carportsusa90
cartsandwagons200
cedarchests68
chaiselounges125
chesssets370
childrenschairs770
childrensdesks400
childrenstablesandchairs480
chinacabinets200
chocolatefountains60
christmaslights800
christmastrees160
christeningshop450
clockstyle1,000
closetorganizersource360
clubchairs150
coatracks175
coffeetablesgalore885
computerdesks500
cribs950
croquet120
curiocabinets150
dartboards280
daybeds230
desklamps580
desksetshop500
diaperbags900
diningtables720
directorschairs50
doghouses360
dogkennels600
dollhousesgalore240
draftingtables300
ecoatracks175
egametables200
electricfireplacesource280
entertainmentcenters (for buyentertainmentcenters.com)650
eriflescopes1,600
esoccergoals115
eweatherInstruments450
ewineracks450
filingcabinets330
firepitshop175
fireplacemantels160
fireplacescreens500
furboots75
futons (for AffordableFutons.com)900
gardenbridges (for eGardenBridges.com)30
gardenstatueshop760
gaslogshop20
gloves (for OnlyGloves.com)500
grandfatherclocks100
greatbackyards1,250
greathomebars200
greatpubtables180
greatrusticfurniture500
grills (for GrillsDirect.com)400
hammocks275
handtrucks680
hometheaterseating140
hosereelsource120
inflatabletrampolines200
ipooltablelights (for pooltablelights.com)320
itorches100
itoyboxes400
jewelryarmoire130
jewelryboxes415
justairhockeytables100
justbathroomfurniture620
justbookends200
justfoosballtables100
kidsfurnituremart2,000
kitchenislands (for eKitchenIslands.com)200
landscapelightingshop600
magazineracks270
metaldetectors120
modelplanes215
modernfurniture2,000
moreofficefurniture1,000
musicboxes275
nativitysets575
netshops35,000
operglasses50
ottomans200
outdoorcarpet1,000
pajamas (for OnlyPajamas.com)500
pans900
patiofurnitureusa1,400
patioheaterstore60
patioumbrellas225
peepers2,100
petcarriers600
photoalbums550
pillowsuperstore1,150
plantstands200
playhouses700
porchswings265
potracksgalore300
pottingbenches175
quiltracks40
radarbusters85
reclinersplus225
ridingtoys400
robe200
rockingchairs350
rockinghorses (for eRockingHorses.com)185
roomdividers (for iRoomDividers.com)300
seniorshops700
sewingtableshop150
showercurtainsgalore1,850
silkpalms260
simplyarbors235
simplybeds900
simplybunkbeds150
simplyfountains550
simplymirrors800
simplyplanters465
simplyplatformbeds435
simplyvanities550
skitube150
sleighbeds280
sofasgalore900
solarlightstore350
spottingscopes350
sundials (for eSunDials)80
swingsetsource320
terrariums 30
telescopes4,700
tiffanylampsgalore1,000
tikibars200
toddlerbeds840
toolboxesdirect460
trailerhitches1,640
tvtraysource180
weatherinstruments450
wickerfurniture400
windchime460
worldglobes230
wreathsgalore300
writingdesks335
vasesgalore750
volleyballhq280
 
SQL name PHP value Description
link $link Link to product
sku $sku Product sku number
category $category Product category
price $price Product price
product $product Product name
description $description Product description
image $image Link to image
$table $table Store to pull data from
  $aid Your unique affiliate id
best_seller best_seller Pulls the top best selling products from the site/table

SQL statement Description
select choose, pick
* all
order by sort order
desc in descending order
where under the following conditions
= equals
!= not equal to
and both rules must be true
or either rule must be true
not not true
like similar to
% variable placeholder
limit x,y limit results to y, begin at record x

Sample SQL queries (PHP)
select * from $table where category like '%chair%' order by price desc
select * from $table where category like '%hammock%' or product like '%hammock%' order by price
select * from $table where product not like '%hammock%' order by price
select * from $table order by best_seller

SQL Equivalent Variables
PHP ASP ColdFusion
$link link #link#

 Copyright ©2008 NetShops Affiliates