Home » Wap n Web » Script Friends Random
07 Jan 2011 00:06 By : admin , Last Update: 09 Jan 2011 11:16 , On: Wap n Web



Klaten.tk - abt Cuma mau berbagi lg. Kemaren ada teman yg pv. kebetulan lg santai yg posting aja share script friend random :D

Caranya gmna? Gampang.. yuuu..
Buat satu file php terserah mu di kasih nama apa.
sebagai contoh tulodho abt namain
link.php
code:
Code:
<?php
$quot_arr=array(
'<a href="http://URL/">link frend1</a>',
'<a href="http://URL/">link frend2</a>',
'<a href="http://URL/">link frend2</a>',
'<a href="http://URL/">dst</a>',
);
$quot_rand=rand(0,count($quot_arr)-1);
echo ''.$quot_arr[$quot_rand].'';
?>



untuk menampilkan di index. atau di mana aja bsa.
tinggal pke func include
Code:
include("link.php" );

;) goo cekidot coba aja :D/

klo saya aq taruh di func.php
Cari code:
Code:

echo '<a href="'.$ur['blog_dir'].'recentcomment"><img src="'.$ur['blog_dir'].'images/comments.png" alt=""><b>View Last 15 Comments</b></a></div></div>
';

kenapa search itu. ya saya taruh nya di bawah script itu :D

NB 2 tampilan : klo mau nampilin lebih dr satu ya tgaal
Code:
<?php
$quot_arr=array(
'<a href="http://URL/">link frend1a</a><br><a href="http://URL/">link frend1b</a>',
'<a href="http://URL/">link frend2a</a><br><a href="http://URL/">link frend2b</a>',
);
$quot_rand=rand(0,count($quot_arr)-1);
echo ''.$quot_arr[$quot_rand].'';
?>

Edit dalam array nya aja. mau 2 3 4 terserah :D
Bagi yg ga mau ribet :p lgsung comot aja download


Share: |
Short URL: http://klaten.tk/121
Comment (36)
bakri memposting...
gan kok script nya gak bisa di download. .
abt memposting...
andre hehehe nah edit pke hp aja hihihii :$
andre memposting...
wah.tampilanya keren buanget...jd pngen...tp gkda warnet dcni:s
dunlut memposting...
tes ah.. (drool)
abt memposting...
Apanya yg error is.???
Kaismail memposting...
Kok error ?
View All

Leave a Comment
Name* :
Url :
Comment*:
[BB Code] [Smiley]
Code*:
97 Online | Today: 10 visit | Total: 65535 visit