Does anyone have any advice about how I
can get these duplicates rows out of my results array ?
If you look here:
Clickbank Super Analyzer
Then just hit the Analyse Clickbank Now button
you will see these all have double entries:
ID: AFFSUPER
ID: COHYPNOSIS
ID: MAVERICK66
I want to just show one of them (the first one)
This is the script that outputs that list:
(this is just one if out of about ten)
Thanks for any help
can get these duplicates rows out of my results array ?
If you look here:
Clickbank Super Analyzer
Then just hit the Analyse Clickbank Now button
you will see these all have double entries:
ID: AFFSUPER
ID: COHYPNOSIS
ID: MAVERICK66
I want to just show one of them (the first one)
This is the script that outputs that list:
(this is just one if out of about ten)
Code:
if($Db_recurr == "r"){
$sql = "SELECT * FROM clickbank WHERE (title LIKE '%$Db_search%' || descrip LIKE '%$Db_search%' )
AND pop > '$Db_pop_min' AND pop < '$Db_pop_max' AND grav > '$Db_grav_min' AND grav < '$Db_grav_max'
AND percent > '$Db_sale_pc_min' AND recurr = 't' AND totearn > '$Db_earn_min' AND cat = '$Dpcat'
ORDER BY $Db_sort1 DESC, $Db_sort2 DESC ";
} // end if
$result = mysql_query($sql)
or die("could not execute SELECT Clickbank". mysql_error());
$num = mysql_num_rows($result);
$Rctr = 1;
while($row = mysql_fetch_assoc($result)){
extract($row);
$extr = $totearn-$earn;
$disp1 = "<b>$Rctr) $cat</b><br>$title, <b>ID: $id</b><br>";
$disp2 = "$descrip<br>";
$disp3 = "<b>$/sale: $earn, +/mth: $rebill, Pop: $pop, Gravity: $grav, Comm%: $comm, Refers: $refer, Total Earn: $totearn</b>";
echo "<div style=\"width: 800px; text-align: left;\">
<span>$disp1</span>
<span>$disp2</span>
<span>$disp3</span>
<br><br>
</div>";
if($Rctr >= $Db_resp)
{ exit();
} // end if
$Rctr = $Rctr+1;
} // end while
Comment