echo $key;
    ?>
"  style="background-color:#ccffff"><?php 
    echo $sort_order;
    ?>
</option>
	<?php 
}
?>
	</select>
	<input type="submit" value="Search"  style="color:blue">
</form>

<?php 
if (!empty($_POST['search'])) {
    $results = $ebay->findItemsAdvanced($_POST['search'], $_POST['sort']);
    $item_count = $results['findItemsAdvancedResponse'][0]['searchResult'][0]['@count'];
    if ($item_count > 0) {
        $items = $results['findItemsAdvancedResponse'][0]['searchResult'][0]['item'];
        ?>
		<table width="1000" border="1" align="center" style="color:grey">
		<?php 
        $count = 0;
        $end = 1;
        foreach ($items as $i) {
            $count++;
            $end = 0;
            if ($count % 5 == 1) {
                echo '<tr><td align="center">';
            } else {
                if ($count % 3 == 2) {
Esempio n. 2
0
?>

<form action="services.php"  method="post">
	<input type="text" name="search" id="search"  style="color:blue " placeholder="what you r wishing today"><br>

	</select>
	<br><pre>PRICE: <br><input type="text" name="from" style="color:blue;width: 60px" placeholder="from"> - <input type="text" name="to" style="color:blue;width: 60px" placeholder="to"></pre>
	<input type="submit" value="Search"  style="color:blue">
	
</form>

<?php 
$val = $_POST['from'];
$val1 = $_POST['to'];
if (!empty($_POST['search'])) {
    $results = $ebay->findItemsAdvanced($_POST['search'], BestMatch);
    $item_count = $results['findItemsAdvancedResponse'][0]['searchResult'][0]['@count'];
    if ($item_count > 0) {
        $items = $results['findItemsAdvancedResponse'][0]['searchResult'][0]['item'];
        ?>
		<h1><img src="img/ebay.png" width="100" height="70"/> Results</h1>
		<table border="1" align="center" style="color:grey" target="one">
		<?php 
        $count = 0;
        $end = 1;
        foreach ($items as $i) {
            $count++;
            $end = 0;
            if ($count % 3 == 1) {
                echo '<tr><td align="center">';
            } else {