Wednesday, July 15, 2009

error types of php ?

Three types of errors in PHP?
a)Notics
b)Fatal
c)warnings

sorting array functions ?

1- sort($array)- is used for enumerated array(numeric array)
sorts the array element in asending order.

2- rsort($array)- used for enumerated array,sorts the array element in decending order.

3- asort($array)- used for associative array,sorts the array value in asending order.

4- arsort($array)- used for associative array,sorts the array value in decending order.

5- ksort($array)- used for associative array,sorts the array keys in asending order.

6- krsort($array)- used for associative array,sorts the array keys in decending order.

create a database using PHP and mysql?

We can create mysql table with the use of mysql_create_db($databaseName) to create a database.

how many type can we get data from the result set of mysql() ?

1 mysql_fetch_row()

2 mysql_fetch_array()

3 mysql_fetch_object()

4 mysql_fetch_assoc()

submit a form witout submit button.

by using javascript function submit() you can submit form.
by giving onclick="submit();" to a button.

diffrent bitween get and post ?

When we submit a form, which has the GET method it displays pair of name/value used in the form at the address bar of the browser preceded by url. Post method doesn’t display these values.