<a href=”javascript:window.print()”>Print</a>
Monthly Archives: October 2011
Check javascript is enabled in the browser + php
<noscript>Please enable Javascript</noscript>
Get the width and height of an image using a function in PHP
list($width,$height)=getimagesize($_FILES[‘business_logo’][‘tmp_name’]);
Order two columns with different orders – mysql
SELECT * from emp_table ORDER BY category DESC, name ASC;
Use two ORDER BY fields
SELECT * from emp_table ORDER BY category, name;
list values with ORDER BY – mysql
SELECT * from emp_table ORDER BY name ASC;
Check permalinks is enabled or not + wordpress
global $wp_rewrite;
$pagestruct = $wp_rewrite->get_page_permastruct();
$gdPermalink = ” != $pagestruct ?”Yes”:”No”;