Archive for May, 2011
Preg Match All – Examples
Only characters $source_string = ‘234foo23doo’; $pattern = ‘#([a-z]+)#’; $result = preg_match_all($pattern,$source_string,$matches); echo $matches[0]; Result: foo,doo
Read moreExample Date and strtotime to PHP
Soms heb je in een webpagina een datumvermelding nodig die relatief is aan de werkelijke datum. De eerste dag van de lopende maand, bijvoorbeeld. In PHP kan je met de “date”-functie, al dan niet in combinatie met “strotime” een groot aantal van deze relatieve datumvermeldingen eenvoudig opnemen. Algemene syntax: string date ( string $format [, […]
Read morePHP Date – Reference
Now that you know the basics of using PHP’s date function, you can easily plug in any of the following letters to format your timestamp to meet your needs. Important Full Date and Time: r: Displays the full date, time and timezone offset. It is equivalent to manually entering date(“D, d M Y H:i:s O”) […]
Read moreDate functions MSSQL
This Getdate: Month Year Select DateName(Month,getdate())+’ ‘+ DateName(YYYY,getdate()) Result:
Read moreGreenshot
The screenshot tool optimized. Save a screenshot or a part of the screen to a file within a second. Apply text and shapes to the screenshot. Offers capture of window, region or full screenshot. Supports several image format.
Read moreHandtekening van Outlook 2007/2010
In Outlook 2007 en 2010 hebt u het handtekeningbestand niet nodig. U kunt direct vanuit het mailprogramma een handtekening instellen, inclusief opmaak en een afbeelding. In Outlook 2007 opent u het menu Extra, Opties en vervolgens het tabblad E-mailindeling. In Outlook 2010 gaat u naar het tabblad (menu) Bestand en hier kiest u Opties, E-mail. […]
Read moreOutlook 2003: Toevoegen extra mailbox
Voor deze functie is een Microsoft Exchange-account nodig. Veel persoonlijke en privéaccounts gebruiken een ander accounttype, zoals POP3 of IMAP, inclusief Windows Live Hotmail en Google Gmail. Deze accounts kunnen niet met deze functie worden gebruikt. Als u als gemachtigde toegangsmachtiging voor andere Exchange-postvakken hebt, kunt u de postvakken opgeven die u in Microsoft Outlook […]
Read moreIntersect
Similar to the UNION command, INTERSECT also operates on two SQL statements. The difference is that, while UNION essentially acts as an OR operator (value is selected if it appears in either the first or the second statement), the INTERSECT command acts as an AND operator (value is selected only if it appears in both […]
Read moreSQL HAVING Clause
Having clause is used to filter data based on the group functions. This is similar to WHERE condition but is used with group functions. Group functions cannot be used in WHERE Clause but can be used in HAVING clause.
Read moreCase
CASE is used to provide if-then-else type of logic to SQL. Its syntax is: SELECT CASE (“column_name”) WHEN “condition1” THEN “result1” WHEN “condition2” THEN “result2” … [ELSE “resultN”] END FROM “table_name” “condition” can be a static value or an expression. The ELSE clause is optional.
Read more