how to store case sensitive data in mysql ?
how repair mysql table?
diff bet float, double,real?
diff bet mysql_fetch_object() and mysql_fetch_array()?
which version of mysql support procedure , trigger?
diff php4 and php 5?
op - 2+5+"8"=?
how to create object in javascript?
query - select games from team who won games 2/4/6?
NaN command in php?
How to offload System date in mysql?
typecasting in php?
how to convert string to two decimal no?
how to parse xml file in php
command line argument in php?
diff bet $msg,$$msg?
diff bet require(), include(), include_once()?
tables in mysql?

Answer Posted / dinesh g

Q : diff bet mysql_fetch_object() and mysql_fetch_array()?
A : mysql_fetch_object() will return the resulted row as
object, mysql_fetch_array() will return the resulted row as
associated array and numeric array.

Q : diff php4 and php 5?
A :
# Unified __Constructor & Destructor,
# introduced magic method like, __call, __tostring, __get,
__set.
# introduced autoload().
# Added visibility using Public.,private,protected
# Added abstract class and interfaces
# Class constants and static methods.

Q : op - 2+5+"8"=?
A : 2 & 5 is numeric 8 is a string
so 2+5 = 7, then 7 is concatinated with 8
result : 78

Q : command line argument in php?
A : Once CLI [ Command Line Interface ] is opened the to run
a file execute the below command.
$php sample.php
Note : If sample.php was coded as per CGI [ I.e., Not CLI ]
then it may not execute properly.

Q : diff bet $msg,$$msg?
A : $msg is a variable which can hold values of the user and
$$msg is a reference variable. which can refer some other
variable.

Q : diff bet require(), include(), include_once()?
A : All the three are to include another php file to access
the variables & methods of that php.

require() -> it will not execute if the file is not found
provide error and stops executing.
include() -> it'l show warning if file not found also it
will execute the other codes of the php file
include_once() -> file should be included only once else
it'll return a warning message.

Q : tables in mysql?
A : I guess u mean Engines in Mysql not tables. So if u
meant as Engine, then
1)MyISAM
2)ISAM
3)Heap
4)innodb
5)BDB

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is apache and php?

493


How to create an array of a group of items inside an html form?

569


What is pdo in php why use?

492


What version of php do I have windows?

485


How to make database connection in php?

535






What are session variables in php?

523


List data types in PHP?

535


How do I use isdigit function?

560


What is empty php?

493


Which function is used to strip whitespace?

442


Tell me how is it possible to return a value from a function?

552


What is the use of "ksort" in php?

503


How can we determine whether a variable is set?

523


What is htmlspecialchars?

548


Explain me what are the main error types in php and how do they differ?

542