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

How to create a text file in PHP?

603


What is framework in php for beginners?

514


What is a php session?

558


How does one prevent the following warning ‘warning: cannot modify header information – headers already sent' and why does it occur in the first place?

497


What is the use of @ in php?

530






What is the delimiter default in PHP?

599


How to convert numbers to strings in php?

505


Is age interval or ordinal?

514


Which is better php or wordpress?

507


What is dao in php?

466


What is put method in php?

520


Which have the fastest execution between mysql_fetch_array() and mysql_fetch_assoc()

1803


How to remove a file?

599


what is the use of include_once in php?

521


How does csrf attack work?

522