MySQL set can take zero or more values but at the maximum it can
take 64 values
Related Posts:
What are the differences between mysql_fetch_array(), mysql_fetch_object(), mysql_fetch_row()?
mysql_fetch_array() -> Fetch a result row as a combination of
associative array and regular array.
mysql_fetch_object() -> Fetch a result row as an object.
mysql_fetch_row() -> Fetch a result set as a regular array… Read More
$_ENV and $_SERVER ?
PHP sets several variables for you containing information about the server, the
environment, and your visitor's request. These are stored in the superglobal
arrays $_ENV and $_SERVER, but their availability depends on
whe… Read More
calculate the sum of values in an array ?
array_sum method can calculate sum of values in an array
… Read More
How we know browser properties?
echo $_SERVER['HTTP_USER_AGENT'];
$browser = get_browser();
foreach ($browser as $name => $value) {
echo “$name $value
\n”;
}
get_browser returns
the capabilities of the user's browser.
… Read More
Web server compression?
The best way to understand web server compression is to think of sending ZIP filesinstead of uncompressed files from your web server to your web user. Sending less dataover the network will minimize network latency and your … Read More
What line should you add to the Apache configuration file to ensure that the .php extension is recognized?
This line ensures that Apache will treat files ending with the .php extension asPHP scripts:AddType application/x-httpd-php .php
… Read More
magic_quotes_gpc, magic_quotes_runtime
Magic quotes is the name of a PHP feature that automatically quotes inputdata, by using the addslashes() function. Historically, this was used so thatform data could be used directly in SQL queries without any security or qu… Read More
What Is a Session?
It is stored at server side because PHP is server side scripting language
Session is stored on server side
because how much time page will execute it doesn't depend on client it
depends on server. Server decide the sess… Read More
How can we get second of the current time using date function?
$second = date("s");
… Read More
What is the use of PEAR in php?
PEAR is known as PHP Extension and Application Repository. It provides
structured library to the PHP users and also gives provision for package
maintenance.
… Read More
What is triggers?
A trigger is a database object which is associated with particular
database table.
Triggers gets called automatically when particular
event(INSERT, UPDATE, DELETE)
occurs on table.
… Read More
THE DIFFERENT TYPES OF ERRORS IN PHP?
1. Notices: These are trivial, non-critical errors that PHP
encounters while executing a script – for example, accessing a variable
that has not yet been defined
2. Warnings: These are more serious errors – for example, a… Read More
What are the MySQL database files stored in system ?
Data is stored in name.myd
Table structure is stored in name.frm
Index is stored in name.myi
… Read More
$_GET , $_POST,$_COOKIE??
$_GET contains any variables provided to a script through the GET method.
$_POST contains any variables provided to a script through the POST method.
$_COOKIE contains any variables provided to a script through a… Read More
What function can be used to encode passwords for storage in the database
The md5() function creates a one-way encoding of the
password.
… Read More