Saturday, June 20, 2009

how to generate a range of random number with C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Rand
{
class Program
{
static void RandomNumber(int min, int max)
{
int x;
Random random = new Random();
for (int i = min; i <= max; i++)
{
x = random.Next(min, max);
Console.WriteLine(x);
}
}

static void Main(string[] args)
{

RandomNumber(36, 60);



}
}
}
N.B: here 36 to 58 is the range

Thursday, April 23, 2009

Some more free premium accounts for downloading movies,games,music,software and everything u want!!!

1.) www.divxcrawler.com {download movies fastly}

Username : divx273
Password : 8342729

2.) www.butterflydownloadnetwork.com {movies, music, Pc Games, Tv shows}

Username : cinemanetwork20
Password : butterfly20

3.) www.downloadprofessional.com {movies,Pc softwares, Pc Games, Tv shows}

Username : lo886Ees
Password : zAgt88er

4.) www.sharingzone.net {movies, Pc softwares, Pc Games}

Username : LODMQYHX
Password : 375021402
Receipt : 4T5W89RD

5.) www.unlimitedgamedownloads.com {movies, Pc Games, psp softwares}

Username : ga20me
Password : ke01feb

6.) www.watchdirect.tv {movies, music, Pc Games, online Tv}

Username : cinemanetwork20
Password : butterfly20

7.) www.fullreleasez.com {Greatly Every thing}

Username : Af872HskL
Password : XjsdH28N

8.) www.fulldownloads.us {Greatly Every thing}

Username : Af872HskL
Password : XjsdH28N

9.) www.pirateaccess.com {Every thing}

Username : yourfrienddalat@gmail.com
Password : CHh5LKPI

Username : xxx_heel_xxx@yahoo.com
Password : MJY0BUY

Username : i_l0ve_u_786@yahoo.com
Password : rYvLgPrt

Username : mubashar_siddique@yahoo.com
Password : F9Gzgwb5

10.) www.warezquality.com {Every thing}

Username : ageg2020
Password : z8fsDfg3

11.) wwww.warezreleases.com {All Stuff}

Username : HnRPxKQz
Password : a59KBV7

Username : a25bipZP
Password : 1TeVnoJb

Username : SHYyJfWU
Password : P4K20uO

12.) www.fulldownloadaccess.com {All Stuff}

Username : mpuv3y
Password : umvpy3x

13.) www.alphaload.com {All Stuff}

Username : AL3429352
Password : ykbcKTNS

Username : AL3429355
Password : RCHAbhKM

Username : AL3429350
Password : gMZNFcyS

Username : AL3429351
Password : cTAkWAxc

Username : AL3429352
Password : ykbcKTNS

14) www.gamedownloadnow.com {All Stuff}

Username : ga20me
Password : ke01feb

15.) www.unlimiteddownloadcenter.com {All Stuff}

Username : cu20me
Password : ke01feb

16.) www.tvadvanced.com {online Tv}

Username : mv03dl
Password : frmvdl

some free premium accounts

most accounts r hacked.use this premium service but dont misuse

1.) www.divxcrawler.com {download movies fastly}

Username : divx273
Password : 8342729

2.) www.butterflydownloadnetwork.com {movies, music, Pc Games, Tv shows}

Username : cinemanetwork20
Password : butterfly20

3.) www.downloadprofessional.com {movies,Pc softwares, Pc Games, Tv shows}

Username : lo886Ees
Password : zAgt88er

4.) www.sharingzone.net {movies, Pc softwares, Pc Games}

Username : LODMQYHX
Password : 375021402
Receipt : 4T5W89RD

5.) www.unlimitedgamedownloads.com {movies, Pc Games, psp softwares}

Username : ga20me
Password : ke01feb

6.) www.watchdirect.tv {movies, music, Pc Games, online Tv}

Username : cinemanetwork20
Password : butterfly20

7.) www.fullreleasez.com {Greatly Every thing}

Username : Af872HskL
Password : XjsdH28N

Thursday, November 13, 2008

PHP Source Code: How to search in database

//connect to MySQL
$connect = mysql_connect(localhost,"root","password")
or die ("Hey loser, check your server connection.");
//make sure we’re using the right database
mysql_select_db("your schema") or die(mysql_error());
$s=$_POST['t1'];
$q1="select column_name from table_name where br like '$s%' ";
$query=mysql_query($q1);
$num=mysql_numrows($query);
$i=0;
while($i<$num)
{
$rst=mysql_result($query,$i,"br");
echo $rst;
echo "
";
$i++;
}
?>

Sunday, November 9, 2008

PHP Tutorial: some basic example for SQL and PHP

//$link = mysql_connect(“localhost”, “root”, “123”)
or die(“Could not connect: “ . mysql_error());
// for connecting with MySQL NB: you shoul use your own password and username
//mysql_select_db(‘moviesite’, $link)
or die ( mysql_error());
//for selecting the schema in database here the selected schema is moviesite
//$peoplesql = “SELECT * FROM people”;
// select the table in schema
//$result = mysql_query($peoplesql)

or die(“Invalid query: “ . mysql_error());
// to query

Saturday, November 8, 2008

PHP Tutorial: how PHP Fits with MySQL

With the onset of PHP5, you need to take a few extra steps to convince PHP and MySQL to play well
with each other. Before your MySQL functions will be recognizable by PHP, make sure to enable MySQL
in your php.ini file, which we covered in Chapter 1.
You can use MySQL commands within PHP code almost as seamlessly as you do with HTML.
Numerous PHP functions work specifically with MySQL to make your life easier; you can find a comprehensive
list in Appendix C.
Some of the more commonly used functions are:
❑ mysql_connect ("hostname", "user", "pass"): Connects to the MySQL server.
❑ mysql_select_db("database name"): Equivalent to the MySQL command USE; makes the
selected database the active one.
❑ mysql_query("query"): Used to send any type of MySQL command to the server.
❑ mysql_fetch_rows("results variable from query"): Used to return a row of the entire
results of a database query.
❑ mysql_fetch_array("results variable from query"): Used to return several rows of
the entire results of a database query.
❑ mysql_error(): Shows the error message that has been returned directly from the MySQL server

PHP Tutorial: how to show a welcome message in your page

Try it out:

Welcome to my site


echo "welcome to my site";
echo “Today is “;
echo date(“F d”);
echo “, “;
echo date(“Y”);
?>