Use DATEDIFF()
SELECT DATEDIFF(NOW(),’2006-07-01′);… Read more
Use DATEDIFF()
SELECT DATEDIFF(NOW(),’2006-07-01′);… Read more
This will change the name of column:
ALTER TABLE table_name CHANGE old_colm_name new_colm_name
This will change the data type of a column:
ALTER TABLE table_name CHANGE colm_name same_colm_name [new data type]… Read more
Answer 1:
MIME is Multipurpose Internet Mail Extensions is an Internet standard for the format of e-mail. However browsers also uses MIME standard to transmit files. MIME has a header which is added to a beginning of the data. When browser sees such header it shows the data as it … Read more
Answer 1:
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
Session depends on browser. If browser is closed then session is lost. The session data will be deleted after session time out. If connection is lost and you recreate connection, then session will continue in the browser.… Read more
Data is stored in name.myd
Table structure is stored in name.frm
Index is stored in name.myi… Read more
PHP4 cannot support oops concepts and Zend engine 1 is used.
PHP5 supports oops concepts and Zend engine 2 is used.
Error supporting is increased in PHP5.
XML and SQLLite will is increased in PHP5.… Read more
Yes we can include that many times we want, but here are some things to make sure of:
(including “abc.php”, the file names are case-sensitive)
there shouldn’t be any duplicate function names, means there should not be functions or classes or variables with the same name in “abc.php” and “bcd.php”… Read more
Anwser :
nl2br() inserts a HTML tag <br> before all new line characters \n in a string.
echo nl2br(“welcome to \n PHP”);
output:
welcome to<br>
PHP… Read more
For this purpose, you can first read the data from one server into session variables. Then connect to other server and simply insert the data into the database.… Read more