Solution for PHP Smarty three columns

Example 1 Create a three-column table. (Display x items in one colum. For example, list 50 US states in three columns, that is, 17, 17 and 16 in each column.) <table border='0' cellpadding='0' cellspacing='0'> <tr> <td width='33%'> <{foreach name=states from=$data.states key=key item=state}> <{capture name='column'}><{math equation="x % 17" x=$smarty.foreach.states.index}><{/capture}> <{if (($smarty.capture.column == "0" ) && (($smarty.foreach.states.index != "0" )))}> </td><td width='32%' align='left'> <{/if}> <a href="<{$rootDir}>state.php?pid=<{$state.id}>"><{$state.name}></a><br /> <{/foreach}> </td> </tr> </table> Example 2 Create a three-column table. (Display each item in a cell and there are 3x times items.) <table border="0" cellpadding="0" cellspacing="0"> <tr> {foreach name=products from=$products item=product key=key} {capture name="column"}{math equation="x % 3" x=$key}{/capture} {if ($smarty.capture.column == "0")} </tr><tr> {/if} <td width="33%" align="left"> {$product.name} </td> {/foreach} </tr> </table>

SEO Google Status Checking Tools

Helpful tips to check SEO (Google) status. - Check backlinks to your site Go to Google -> link:yourURL ex) link: free-ebusinesshelp.com Google doesn't give you a total list of your existing backlinks. You can see more backlinks when you use Yahoo. Go to Yahoo -> linkdomain:yourURL ex) linkdomain:free-ebusinesshelp.com Does Google not consider all the backlinks that you see from Yahoo? This hasn't been answered yet among most SEO experts. - Check indexed pages by Google Go to Google -> site:yourURL - Check cached pages Go to Google -> cache:yourURL - Check keywords for your pages This tool helps you find keywords related to the content on your pages. https://adwords.google.com/select/KeywordToolExternal Select the ...

PHP - Single Quotes and Double Quotes

PHP allows you to define string values using single quotes or double quotes. The most significant difference between these two is that PHP parses a string enclosed in double quotations. Any variable in double quotes are expanded. Example: $var = 'tips'; echo 'Online Business' . $var; // Results in 'Online Business Tips' echo "Online Business $var"; // Results in 'Online Business Tips' echo 'Online Business $var'; // Results in 'Online Business $var' ($var in single quotes is not parsed.) There are a couple of tips to remember when deciding to use single or double quotations. 1. Using single quotations results in slightly faster execution of PHP scripts. 2. Consider ...