Jump to content


Photo

How to make results clickable


  • Please log in to reply
1 reply to this topic

#1 ginocote

ginocote
  • Members
  • PipPip
  • Member
  • 13 posts

Posted 04 July 2006 - 06:46 AM

Hi,
I finally find how to read this external file with my search query
http://www.sedo.com/...hp4?key=keyword

But i'm not finish yet and need some help

Here my search page who query the file below
http://www.toolurl.c...1.php?url=games
i enter the word games to show a result, you can enter any word you want.

Now i want that all my results become link to go to a external page.
games.cx
games.gp
etc....

Here the first link target to: http://www.partnerli...eyword=games.cx
As you see all link begin the same but the extension after the keyword=
change acording to the results
all link should be blank. Here my php code

<?php
$file = fopen("http://www.sedo.com/search/keysearch.php4?key=$_GET[url]", "r") or die("Couldn't open file"); 
$str = fread($file, 400); 
echo $str = explode('#', $str);
echo "<tr align=center><td colspan=3>Keywords return " . sizeof($str) . " results on Sedo auction</br>";
foreach($str as $item){
     echo $item . "<br>";
}
?>

How can i link all results to the right extension?

BTW, how to remove this "Array" text in my result page? -> ArrayKeywords return .....

Tank you for your help

Gino
www.toolurl.com

#2 Orio

Orio
  • Staff Alumni
  • Advanced Member
  • 2,491 posts

Posted 04 July 2006 - 07:54 AM

I think this is what you mean:

[code=php:0]<?php
$file = fopen("http://www.sedo.com/....php4?key=$_GET[url]", "r") or die("Couldn't open file");
$str = fread($file, 400);
echo $str = explode('#', $str);
echo "<tr align=center><td colspan=3>Keywords return " . sizeof($str) . " results on Sedo auction</br>";
$prefix="http://www.";
foreach($str as $item){
echo('<a href="'.$prefix.$item.'" traget="_blank">'.$item.'</a>');
}
?>
Think you're smarty?

(Gone until 20 to November)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users