nav33n 472 Purple hazed! Team Colleague Featured Poster

If you have a counter or id field in your table which is unique, you can do this easily.

<?php
$connection=mysql_connect($dbhost,$dbuser,$dbpass);
mysql_select_db($dbname);
$query="select * from tablename";
$result=mysql_query($query);
$max=mysql_num_rows($result);//count the total records in the table
$random_members=array();
while(count($random_members) <= 5){ // until 5 members are selected
	$random=rand(1,$max);//generate random number
	if(! in_array($random,$random_members)){ //if random number is not in the array, add it. 
	 	$random_members[]=$random;
 	}
}
print_r($random_members); //print random numbers
?>

Thats it.. Cheers.. :)

nav33n 472 Purple hazed! Team Colleague Featured Poster

stupid politicians can never cheat.

nav33n 472 Purple hazed! Team Colleague Featured Poster

First, you fetch the data from the csv file using fgetcsv. Its returns the value as an array. Access the array element where the date is stored and do as scru has mentioned.

nav33n 472 Purple hazed! Team Colleague Featured Poster

Yuck..

After we run out of all the letters (A to Z excluding F and S), what should we do ? :P

Edit: I didn't read the description properly :( My mistake!

nav33n 472 Purple hazed! Team Colleague Featured Poster

stupid people always elect wrong politicians.

nav33n 472 Purple hazed! Team Colleague Featured Poster

Humanely raised eggs are consumed more and liked by most of the people.

nav33n 472 Purple hazed! Team Colleague Featured Poster

Umm.. I believe you are 'an instance' of this user ? Why did you unearth a dead thread ? Well, I see a ban coming !

nav33n 472 Purple hazed! Team Colleague Featured Poster

Please post your problem in the correct Widows forum.

:D Bad typo there !

nav33n 472 Purple hazed! Team Colleague Featured Poster

First of all, this isnt the right forum to post your question. Secondly, you should show us what you have done so far. Thirdly, you have not mentioned which language you are supposed to use. Finally, we wont do any homeworks. :)

nav33n 472 Purple hazed! Team Colleague Featured Poster

Search google for pagination in php. There is already a code snippet here.. I guess you can modify it to suit your needs.

nav33n 472 Purple hazed! Team Colleague Featured Poster

Working as a software engineer is fun. When you have work, you work your a55 off and you are a free bird when you don't have any work! :D

nav33n 472 Purple hazed! Team Colleague Featured Poster

:D Welcome to Daniweb ! I am sure you will learn a lot from this place !

nav33n 472 Purple hazed! Team Colleague Featured Poster

Welcome to Daniweb. But i guess its against the community rules to promote your website this way :-/ !

nav33n 472 Purple hazed! Team Colleague Featured Poster

Welcome to Daniweb :)

nav33n 472 Purple hazed! Team Colleague Featured Poster

Welcome to Daniweb Bob.

nav33n 472 Purple hazed! Team Colleague Featured Poster

Welcome to Daniweb !

nav33n 472 Purple hazed! Team Colleague Featured Poster

Hi,
since the pages are not giving any error about not finding the path,i think the url is correct,so check the images are present in the folder

Since the images are displayed using <img> tag, it wont give any error. It will just output an empty placeholder. For example,

<html><body><img src="blahblah.jpg" /></body></html>

. This wouldn't give any error but prints an empty image placeholder.

nav33n 472 Purple hazed! Team Colleague Featured Poster

Do need any software on my computer ?

Yes. You need a webserver (IIS or apache) , Php and mysql. To learn the basics, you can start Here

nav33n 472 Purple hazed! Team Colleague Featured Poster

I am fat ! My new year's resolution would be to lose some tonnes of weight ! lol..

nav33n 472 Purple hazed! Team Colleague Featured Poster

monkeys are funny creatures.

nav33n 472 Purple hazed! Team Colleague Featured Poster

Hey ! System mechanic has this feature (i checked it sometime ago) to remove duplicate files. It checks the file size and also the dates to mark a file as duplicate.

Welcome to Daniweb btw.

nav33n 472 Purple hazed! Team Colleague Featured Poster

He can play word games if he wants to increase his post count ! duh! This is definitely a stupid way rather than intresting way. :D

nav33n 472 Purple hazed! Team Colleague Featured Poster

Whatsoever is one big word without any spaces separating the words.

nav33n 472 Purple hazed! Team Colleague Featured Poster

Union and intersection are 2 operators in SQL.

nav33n 472 Purple hazed! Team Colleague Featured Poster

ya the game is intresting

Dude! What's with you and intresting ?

nav33n 472 Purple hazed! Team Colleague Featured Poster

fly like a bird, not like a mosquito.

nav33n 472 Purple hazed! Team Colleague Featured Poster

What a colossal idiot you are...
How on this damn blue earth can you say something is interesting (sorry, "really intresting") and you haven't the greenest flying hoot what is going on???

lol..very true.

nav33n 472 Purple hazed! Team Colleague Featured Poster

It is not what you see.

nav33n 472 Purple hazed! Team Colleague Featured Poster

:) you are welcome.

nav33n 472 Purple hazed! Team Colleague Featured Poster

miserable life can be wonderful life. You just have to change the way you look at life.

nav33n 472 Purple hazed! Team Colleague Featured Poster

Well, you are doing it wrong then. Because,
distance ^2 = (24-36)^2 + (15-8)^2
distance ^ 2 = (-12)^2 + (7)^2
distance ^ 2 = 144 + 49
distance ^ 2 = 193.
distance = sqrt ( 193)
distance = 13.89...

nav33n 472 Purple hazed! Team Colleague Featured Poster

unlucky people are very rare. I am one among them.

nav33n 472 Purple hazed! Team Colleague Featured Poster

effort is of no use if you aren't lucky.

nav33n 472 Purple hazed! Team Colleague Featured Poster

finding the distance from these points (15,20) and (45,70) Considering 15 as x1, 20 as y1, 45 as x2 and 70 as y2, if we apply the formula, it is, sqrt((45 - 15)^2 + (70-20)^2) = 58.3095189485 :-/

<?php
$A=45;
$B=15;
$C=($A-$B);
$D=($C*$C);
$E=70;
$F=20;
$G=($E-$F);
$H=($G*$G);
$I=sqrt($D+$H);
echo "The distance is: $I";
?>

The above program also gives the same output !

nav33n 472 Purple hazed! Team Colleague Featured Poster

I guess its looking in F:/billadelphia/Admin/images. Change the img src path to ../images/hdr.jpg . (You can right click the image placeholder and click on properties to check whether its path is correct)

nav33n 472 Purple hazed! Team Colleague Featured Poster

Shouldn't it be sqrt((x2-x1)^2+(y2-y1)^2)=distance ? You are just taking the sqrt of $H and not $H + $D.

nav33n 472 Purple hazed! Team Colleague Featured Poster

you are welcome.. feel free to post your problems :) Someone or the other will help you out.. Cheers..

nav33n 472 Purple hazed! Team Colleague Featured Poster

Can you be a bit more specific ?

nav33n 472 Purple hazed! Team Colleague Featured Poster

Obviously its adding 1 record because you have 1 sql statement to insert and you are not looping it either. In your html form, you should have different input elements name. For example, you can concatenate $i value with textbox name to give it a unique name. When the page is submitted, you can loop through the posted values and insert into the table. Just a small example.

<?php //page1.php
for ($i=1;$i<10;$i++){
	echo "<form name=update method=post action=page2.php>";
	echo "Name : <input type=text name=name_".$i.">\t";	
	echo "Marks1: <input type=text name=test1_".$i."><br />";
}
echo "<input type=submit name=submit value=submit>";
?>
<?php //page2.php
for ($i=1;$i<10;$i++){
	$name = "name_".$i;
	$new_name=$_POST[$name];
	$marks = "test1_".$i;
	$new_marks=$_POST[$marks];
	//database connection string
	$query="insert into table (col1,col2) values ('$new_name','$new_marks')";
	mysql_query($query);
}
echo "All names and marks are entered into the table !!";
?>

Hope it helps.

nav33n 472 Purple hazed! Team Colleague Featured Poster

Again you end your sentence with 'again' going against my wishes.

nav33n 472 Purple hazed! Team Colleague Featured Poster

Better late than never.

nav33n 472 Purple hazed! Team Colleague Featured Poster

lol.. You can find politics everywhere, like air.

nav33n 472 Purple hazed! Team Colleague Featured Poster

What's wrong ? Are you getting any errors ?

nav33n 472 Purple hazed! Team Colleague Featured Poster

To go against your wishes would be my last wish.

nav33n 472 Purple hazed! Team Colleague Featured Poster

Umm..I dont think its possible(I am quite sure its not possible!).. When a user opens a page on your site, hes opening an instance of your page in his browser and its different for different users. Why do you want something like this btw ?

nav33n 472 Purple hazed! Team Colleague Featured Poster

Civilization has improved exponentially with time.

nav33n 472 Purple hazed! Team Colleague Featured Poster

Umm.. are you asking whether it is possible to refresh other visitor's page when 'one' of the visitor clicks a link/submits a form/.. ??

nav33n 472 Purple hazed! Team Colleague Featured Poster

poisoning the food to kill someone is not only horrible but also barbaric.

nav33n 472 Purple hazed! Team Colleague Featured Poster

sick people should be taken to infirmary as soon as possible.

nav33n 472 Purple hazed! Team Colleague Featured Poster

sickness is common during this part of the year.