GIDForums  

Go Back   GIDForums > Computer Programming Forums > MySQL / PHP Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #21  
Old 20-Feb-2004, 12:23
gargonzo gargonzo is offline
New Member
 
Join Date: Feb 2004
Posts: 2
gargonzo is on a distinguished road
Div, any chance of you sharing with us? I'm also interested in using datafeeds..

tia
garz
  #22  
Old 20-Feb-2004, 14:02
Div's Avatar
Div Div is offline
Moderator
 
Join Date: May 2002
Posts: 996
Div has a spectacular aura aboutDiv has a spectacular aura about
What would you like to know?

I am not as enthusiastic about the feeds as I was a couple of months ago. But I am still looking at them, especially Amazon (AWS) as you don't need to maintain a local database and there are free scripts that can be used.
__________________
Web Hosting Tips | Career Advice
  #23  
Old 03-Mar-2004, 14:49
gargonzo gargonzo is offline
New Member
 
Join Date: Feb 2004
Posts: 2
gargonzo is on a distinguished road
not so much amazon.com, but buy.com or another large affiliate.

Can you post your script, the one that displays the data from the db?

regards
garz
  #24  
Old 05-Mar-2004, 23:37
Div's Avatar
Div Div is offline
Moderator
 
Join Date: May 2002
Posts: 996
Div has a spectacular aura aboutDiv has a spectacular aura about
It is very small. Once you've created a database (using PHPMyadmin or something similar), you can replace the dbusername, dbpassword, etc from the code below. Your_Var and what_ever will also depend on your datafeed. For eg, they could be Desktop and Gateway, respectively.

Code:
<html> <body> <?php $db = mysql_connect("localhost", "dbusername", "dbpassword"); mysql_select_db("your_data_base_name",$db); $result = mysql_query("SELECT * FROM your_data_base_name where Your_Var='what_ever'",$db); while ($row = mysql_fetch_array($result)) { echo " <table width='480' border='0' cellspacing='0' cellpadding='0' span='2'> <tr align='center'> <td width='56' valign='top'><img src=$row[Small_Images] vspace='2' hspace='6' border='0'></td> <td width='135' valign='top'><strong><a href=$row[Buy_URL] target='_blank'>$row[Product_Name]</a></strong><br><strong>Price: $ $row[Price]</strong></td> </table> "; } ?> </body> </html>

The part between echo "..." is the formatting and it can be tweaked any way you like. You can also refer to page 1 for better formatting tips.
__________________
Web Hosting Tips | Career Advice
 
 

Recent GIDBlogProblems with the Navy (Chiefs) by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Google Adsense could mean death to affilliate programs jrobbio AdSense Forum 12 11-Feb-2006 16:51
premade forums and other premade php programs invaderz MySQL / PHP Forum 1 06-Jul-2003 03:10

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 21:59.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.