prasad konnur


{ City } new bombay
< Country > india
* Profession * software engineer
User No # 22537
Total Questions Posted # 0
Total Answers Posted # 10

Total Answers Posted for My Questions # 0
Total Views for My Questions # 0

Users Marked my Answers as Correct # 165
Users Marked my Answers as Wrong # 26
Questions / { prasad konnur }
Questions Answers Category Views Company eMail




Answers / { prasad konnur }

Question { 23765 }

How to find out the second largest element from mysql table


Answer

select id from tbl_name order by id desc limit(1,1)

(selects 2nd highest id)

for nth highest

select id from tbl_name order by id desc limit(n-1,1)

Is This Answer Correct ?    5 Yes 5 No

Question { HCL, 18775 }

What are the differences between Get and post methods in
form submitting, give the case where we can use get and we
can use post methods?


Answer

with Get we can send limited number of characters in query
string.

Post method is more secure than Get.

Is This Answer Correct ?    27 Yes 5 No


Question { 7488 }

Can you tell me how to send email using javascript?


Answer

No we can't send mail using javascript. java script is a
client side scripting.

To send a mail we need a server side scripting like PHP.

Is This Answer Correct ?    6 Yes 2 No

Question { 3544 }

What are the different ways we can retrive the mysql results
using php ? Explain each


Answer

mysql_fetch_row //fetch as row
mysql_fetch_array //fetch as array.retrieve data using
index or feild name
mysql_fetch_assoc //fetch as associative array
mysql_fetch_object //fetch as object

Is This Answer Correct ?    6 Yes 0 No

Question { 6283 }

What is the difference between unlink and unset ?


Answer

unlink delete the specified file
and unset destroy the variable

Is This Answer Correct ?    23 Yes 0 No

Question { 5223 }

How do you register one session ?


Answer

sessi8on_register

Is This Answer Correct ?    2 Yes 5 No

Question { 6153 }

What are the ways we can destroy a session variable ?


Answer

session_destroy. and session_unset

Is This Answer Correct ?    30 Yes 1 No

Question { Oracle, 8775 }

What is the difference between $message and $$message ?


Answer

$message is variable and $$message is variable variable.
$message="hello";
$$message="world";
echo $hello; // prints world
echo ${$message} //prints world

variable variable cant be used in php superglobalarray. and
cant use in functions and within classes

Is This Answer Correct ?    25 Yes 6 No

Question { 6887 }

In what are the ways you can encrypt the password ?


Answer

using md5() function to encrypt.
but we cant decrypt it.

Is This Answer Correct ?    13 Yes 1 No

Question { 8769 }

How many ways you can delete a session variable ?


Answer

two ways

Seesion_destroy
unset

Is This Answer Correct ?    28 Yes 1 No