Login     Sign up
Auto Add friends once join <Using DO WHILE LOOP Statement>
eugene (@sonysg)
Join date: Sep 1st 2011
Community posts: 1
View Profile
Send Message

I'm referring the auto add users as friend script at

[url]http://community.jcow.net/forums/viewthread/1041?page=2[/url]

Script work perfectly, i was thinking whether we can enhance a bit using Do While Loop to scan the entire jcow_accounts
database instead adding multiples users by

add code

Code
sql_query("insert into ".tb()."friends (uid,fid,created) values ($uid,1,$timeline)");
sql_query("insert into ".tb()."friends (uid,fid,created) values (1,$uid,$timeline)");

it will be something like this

Do while scan the entire jcow_accounts
sql_query code to scan and add everyone as friend
end

Anyone know how to accomplish this?

151 months ago