require(): It will cause a fatal error and halt the execution of the script if the file not found.
include(): If the file not found a warning will be issued, but execution will continue.
Saturday, January 15, 2011
get number of records count in mysql
SELECT COUNT('fieldname') AS numcount FROM tablename;
//Instead of using COUNT(*) it is good i think
//Instead of using COUNT(*) it is good i think
submit a form without submit button
document.formname.submit(); //It will work when we are using single form in a page
document.forms['formname'].submit(); //It will work when we are using multiple forms
// above formname is our formname
document.forms['formname'].submit(); //It will work when we are using multiple forms
// above formname is our formname
submit a form using javascript
document.formname.submit(); //It will work when we are using single form in a page
document.forms['formname'].submit(); //It will work when we are using multiple forms
// above formname is our formname
document.forms['formname'].submit(); //It will work when we are using multiple forms
// above formname is our formname
maximum length of a database name, table name, field name in MySQL
Database name: 64 characters
Table name: 64 characters
Column name: 64 characters
Table name: 64 characters
Column name: 64 characters
Sunday, January 9, 2011
PHP Tutorial
Some best links for php that i know
http://www.w3schools.com/php/default.asp
http://www.php.net/manual/en/getting-started.php
http://www.w3schools.com/php/default.asp
http://www.php.net/manual/en/getting-started.php
Sunday, October 31, 2010
Subscribe to:
Posts (Atom)