$result = mysql_query($sql, $db_link);
$num_rows = mysql_num_rows($result); echo "$num_rows rows found";
0 Comments
Calculate the md5 hash of a string. The hash is a 32-character
hexadecimal number. Normally we use this function for Password Encryption. $date1 = date(‘Y-m-d’);
$date2 = ’2006-08-15′; $days = (strtotime($date1) – strtotime($date2)) / (60 * 60 * 24); In php.ini file:
set short_open_tag=on to make PHP support 2 ways
a) sizeof($urarray) This function is an alias of count() b) count($urarray)
The functions in this section perform encryption , compression.
Encryption: AES_ENCRYT() ENCODE() DES_ENCRYPT() ENCRYPT() MD5() OLD_PASSWORD() PASSWORD() SHA() or SHA1() Not available http://blog.midstride.com/2008/12/01/5-tips-and-tools-to-optimize-your-php-application-part-1-simple/
Declaring class properties or methods as static makes them accessible without needing an instantiation of the class. A property declared as static can not be accessed with an instantiated class object (though a static method can).
A persistent cookie enables a website to remember you on subsequent visits, speeding up or enhancing your experience of services or functions offered.
These remain on your hard drive until you erase them or they expire. How long a cookie remains on your browser depends on how long the visited website has programmed the cookie to last. |