Question: What is the difference between mysql_fetch_object and mysql_fetch_array?
Answer:
MySQL fetch object will collect first single matching record where mysql_fetch_array will collect all matching records from the table in an array. mysql_fetch_object() is similar to mysql_fetch_array()‚ with one difference - an object is returned‚ instead of an array.
Indirectly‚ that means that you can only access the data by the field names‚ and not by their offsets.
MySQL_fetch_array() - Fetches a result row as an associative array‚numeric array.
MySQL_fetch_object() - Fetches a result row as an object.
MySQL_fetch_row() - Fetches a result set as a numeric array().
Secure file download in PHP, Security question PHP, PHP MYSQL Interview Question -Books download - PHP solutions guidelines queries update, phpmysqlquestion
Subscribe to:
Post Comments (Atom)
security header validate
HTTP Security Headers Check Tool - Security Headers Response (serpworx.com)
-
QUESTION: 1 What is the output of the following code? echo '1' . (print '2') + 3; A. 123 B. 213 C. 142 D. 214 E. ...
-
Windows tool for creating a self-signed certificate. https://sourceforge.net/projects/portecle/ kindly install portecle tool from abov...
-
Which pillar of the AWS Well-Architected Framework recommends maintaining infrastructure as code? Operational Excellence Which of the foll...
No comments:
Post a Comment