Jump to content

Archived

This topic is now archived and is closed to further replies.

ginocote

How to make results clickable

Recommended Posts

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

But i'm not finish yet and need some help

Here my search page who query the file below
http://www.toolurl.com/testsearchkeywords11.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.
[url=http://www.partnerlink.com/search/showdetails.php4?partnerid=12345&language=fr&keyword=games.cx]games.cx[/url]
[url=http://www.partnerlink.com/search/showdetails.php4?partnerid=12345&language=fr&keyword=games.cg]games.gp[/url]
etc....

Here the first link target to: http://www.partnerlink.com/search/showdetails.php4?partnerid=12345&language=fr&keyword=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

[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>";
}
?>[/code]

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

Share this post


Link to post
Share on other sites
I think this is what you mean:

[code=php:0]<?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>";
$prefix="http://www.";
foreach($str as $item){
echo('<a href="'.$prefix.$item.'" traget="_blank">'.$item.'</a>');
}
?>

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.