You can put them all in onle table, it just depends how you plan to do it in the future!
By spam filter i mean what if somebody searches for "nick is the best" or www.viagra.com. It then displays on your homepage!
Is that three table in the database then, product, merchants and price?
Phil
Try and think about seperating out the product info from the merchant. This way, a product dosen't need to know what a merchant is and it shouldn't need to know. It's the merchant that needs to know which product it has a relation to.
<-----------snip------------>
Hope this helps a little
$xml = simplexml_load_file("foldingdatafeed_79329.xml");
foreach($xml->merchant->prod as $product){
$productid = $product->pId;
$name = $product->text->name;
$descrip = $product->text->desc;
$sql = "INSERT INTO product (productid, productname, productdescription)
VALUES ('$productid', '$name', '$descrip')"
I'm quite please that I worked out how to get a dynamic page for each product tho, thus cutting down the number of affiliate links from the main products tables.
We use essential cookies to make this site work, and optional cookies to enhance your experience.