PHP Classes

File: readme_ebay_de.txt

Recommend this page to a friend!
  Classes of Peter Klauer  >  ebay_de  >  readme_ebay_de.txt  >  Download  
File: readme_ebay_de.txt
Role: Documentation
Content type: text/plain
Description: How to use this class
Class: ebay_de
Get details from German eBay auction pages
Author: By
Last change: Some remarks added.
Date: 19 years ago
Size: 1,851 bytes
 

Contents

Class file image Download
Readme for ebay_de.php Caution: There are some auctions, where this script does not work properly! Please see the ebay_topangebote.php script. There are always some auctions in between that do not work. Ebay_de does not return proper results in all cases. Ebay_de.php worked fine for all auctions that my wife created for me until now. Hint: If you have trouble reading your auction data with ebay_de.php, let your wife enter the auction items into eBay. 1.) Include the class file in your script: include 'inc_ebay_de.php'; 2. ) Create an instance of ebay_de (make an object) $ebay = new ebay_de( '3619880818' ); The number in parantheses is the eBay auction number. You find the number in your eBay-url http://cgi.ebay.de/ws/eBayISAPI.dll?ViewItem&amp;item=3619880818 it is located after the string "item=" 3. ) Use the function showdata() to show the significant data: $ebay->showdata(); The function showdata can take 3 parameters: - a class name for the cells <td> - a class name for the header cell <th> - a target name by default all parameters are empty. If you want to use the class names you have to define a <style type="text/css">...</style> section in the <head> of your page. Here is an example of the classes used in the www.ingoknito.de page where I promote a program: <style type="text/css"> <!-- .smalltd{ font-size: x-small; color : navy; background-color: #ffffe8; } .smallth{ font-size: small; color : navy; background-color: #ffffe8; font-weight: bold; } --> </style> I use this classes with shodata() like this: $ebay->showdata('smalltd', 'smallth', '_blank'); '_blank' is not a class but a special target name for a new browser window.