Skip to main content

Posts

Showing posts from May, 2015

PHP & Mysql interview question

What’s PHP The PHP Hypertext Preprocessor is a programming language that allows web developers to create dynamic content that interacts with databases. PHP is basically used for developing web based software applications Who is the father of PHP and explain the changes in PHP versions?  Rasmus Lerdorf in 1994   How many ways you can retrieve the data in the result set of mysql using PHP? We can do it by 4 Ways          1. mysql_fetch_row ,                The mysql_fetch_row() function fetches one row from a result-set and returns it as an                enumerated array.         2. mysql_fetch_array ,                The mysql_fetch_array() function fetches a result row as an associative array, a numeric                 array, or both.         3. mysql_fetch_object                The mysql_fetch_object() function returns the current row of a result set, as an object.          4. mysql_fetch_assoc                 The mysql_fetch_assoc() function fetches a result row