<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/tags/tables</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Tue, 21 May 2013 03:28:58 GMT</pubDate>
<item>
<title>(JavaScript) Dynamic Table Generator - COBOLdinosaur</title>
<link>http://snipplr.com/view/70654/dynamic-table-generator/</link>
<description><![CDATA[ <p>The use of dynamic data acquisition on modern web sites and in a lot of intranet applications, sometimes means we have to build structures dynamically as data comes in from a feed or AJAX operations. The problem is not with the data, but rather that it is unstructured, or not appropriately tagged. The solution is to dynamically build the necessary structures to make the data presentable in a web page</p> ]]></description>
<pubDate>Thu, 04 Apr 2013 07:15:15 GMT</pubDate>
<guid>http://snipplr.com/view/70654/dynamic-table-generator/</guid>
</item>
<item>
<title>(SQL) Delete all tables from SQL - fixpq</title>
<link>http://snipplr.com/view/69971/delete-all-tables-from-sql/</link>
<description><![CDATA[ <p>It removes relations before deleting tables.</p> ]]></description>
<pubDate>Sun, 17 Feb 2013 23:58:38 GMT</pubDate>
<guid>http://snipplr.com/view/69971/delete-all-tables-from-sql/</guid>
</item>
<item>
<title>(Objective C) dealloc - dbck</title>
<link>http://snipplr.com/view/58213/dealloc/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 26 Aug 2011 20:48:27 GMT</pubDate>
<guid>http://snipplr.com/view/58213/dealloc/</guid>
</item>
<item>
<title>(PHP) PHP getTotal - brownrl</title>
<link>http://snipplr.com/view/55780/php-gettotal/</link>
<description><![CDATA[ <p>Simple function to return the total records in a DB. This function probably has to be modified for every project you do to adjust for your db layer and server. I have it here simply because I use ado-db lite and my other functions almost all the time.</p> ]]></description>
<pubDate>Mon, 27 Jun 2011 20:04:11 GMT</pubDate>
<guid>http://snipplr.com/view/55780/php-gettotal/</guid>
</item>
<item>
<title>(SQL) ALTER TABLE - vedgiee</title>
<link>http://snipplr.com/view/44225/alter-table/</link>
<description><![CDATA[ <p>Alter Table</p> ]]></description>
<pubDate>Tue, 16 Nov 2010 00:52:54 GMT</pubDate>
<guid>http://snipplr.com/view/44225/alter-table/</guid>
</item>
<item>
<title>(VB.NET) Read user tables from access - dirkschoeters</title>
<link>http://snipplr.com/view/38335/read-user-tables-from-access/</link>
<description><![CDATA[ <p>This snippet reads all user tables from a Access Database</p> ]]></description>
<pubDate>Wed, 04 Aug 2010 16:11:54 GMT</pubDate>
<guid>http://snipplr.com/view/38335/read-user-tables-from-access/</guid>
</item>
<item>
<title>(Java) Changing Header Class (CSS) in JSF Datatables - Codedrop™ Weblog - adriamooney</title>
<link>http://snipplr.com/view/37731/changing-header-class-css-in-jsf-datatables--codedrop-weblog/</link>
<description><![CDATA[ <p>Something I have always found annoying about JSF datatables is the limitation to only apply one header class style to the entire table. This is un-functional for datatables that would display monetary amount or other data that is typically right aligned whereas descriptive columns are left aligned. The table doesn’t look very nice if the heading don’t match the columns.</p> ]]></description>
<pubDate>Thu, 22 Jul 2010 06:53:52 GMT</pubDate>
<guid>http://snipplr.com/view/37731/changing-header-class-css-in-jsf-datatables--codedrop-weblog/</guid>
</item>
<item>
<title>(Objective C) Dynamic Cell Height - peetj</title>
<link>http://snipplr.com/view/36039/dynamic-cell-height/</link>
<description><![CDATA[ <p>How to work out the cell height of a piece of text in order to set the row height of a table dynamically.</p> ]]></description>
<pubDate>Wed, 23 Jun 2010 14:15:20 GMT</pubDate>
<guid>http://snipplr.com/view/36039/dynamic-cell-height/</guid>
</item>
<item>
<title>(SQL) Find Tables in Database (SQL Query) - emregulcan</title>
<link>http://snipplr.com/view/32420/find-tables-in-database-sql-query/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 20 Apr 2010 03:56:52 GMT</pubDate>
<guid>http://snipplr.com/view/32420/find-tables-in-database-sql-query/</guid>
</item>
<item>
<title>(MySQL) Drop all tables in a MySQL database - wnasich</title>
<link>http://snipplr.com/view/28881/drop-all-tables-in-a-mysql-database/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 24 Feb 2010 19:05:36 GMT</pubDate>
<guid>http://snipplr.com/view/28881/drop-all-tables-in-a-mysql-database/</guid>
</item>
<item>
<title>(PHP) Colorear filas de una tabla par/impar con PHP - jrobinsonc</title>
<link>http://snipplr.com/view/28328/colorear-filas-de-una-tabla-parimpar-con-php/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 15 Feb 2010 08:02:24 GMT</pubDate>
<guid>http://snipplr.com/view/28328/colorear-filas-de-una-tabla-parimpar-con-php/</guid>
</item>
<item>
<title>(JavaScript) Zebra tables with Prototype - shapeshifta</title>
<link>http://snipplr.com/view/26757/zebra-tables-with-prototype/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 20 Jan 2010 10:13:17 GMT</pubDate>
<guid>http://snipplr.com/view/26757/zebra-tables-with-prototype/</guid>
</item>
<item>
<title>(SAS) Finding the number of observations in the Dataset - sarathannapareddy</title>
<link>http://snipplr.com/view/18186/finding-the-number-of-observations-in-the-dataset/</link>
<description><![CDATA[ <p>There are a number of ways of finding out the number of observations in a SAS data set and, while they are documented in a number of different places, I have decided to collect them together in one place. At the very least, it means that I can find them again.

Read more at: http://studysas.blogspot.com/2008/08/finding-number-of-observations-in-sas.html</p> ]]></description>
<pubDate>Tue, 11 Aug 2009 16:22:13 GMT</pubDate>
<guid>http://snipplr.com/view/18186/finding-the-number-of-observations-in-the-dataset/</guid>
</item>
<item>
<title>(PHP) Output zebra stripe rows in PHP - dizzley</title>
<link>http://snipplr.com/view/17973/output-zebra-stripe-rows-in-php/</link>
<description><![CDATA[ <p>This is a simple way to stripe alternate rows of output or to do  anything different as I process each alternate row. Typically, I set the  element's class to "myEvenRow" or "myOddRow" then output the  data just after the IF statement.

I found this full example at nullislove.com. The page also has a Ruby example. Full props to them.</p> ]]></description>
<pubDate>Thu, 06 Aug 2009 11:54:16 GMT</pubDate>
<guid>http://snipplr.com/view/17973/output-zebra-stripe-rows-in-php/</guid>
</item>
<item>
<title>(SAS) Dictionary Tables and SASHELP Views (SAS metadata) - sarathannapareddy</title>
<link>http://snipplr.com/view/17697/dictionary-tables-and-sashelp-views-sas-metadata/</link>
<description><![CDATA[ <p>Most of the SAS programmers think that the Metadata concepts (Dictionary tables and SASHELP views) are advanced SAS topics, in fact it is not.

I tried here to explain the concept precise and clear……

Here, I will cover the following topics……

Introduction to SAS metadata
How to see what’s in the tables
How to use the tables, using several real-world examples
Advantages

What are Dictionary Tables4?</p> ]]></description>
<pubDate>Thu, 30 Jul 2009 13:06:03 GMT</pubDate>
<guid>http://snipplr.com/view/17697/dictionary-tables-and-sashelp-views-sas-metadata/</guid>
</item>
<item>
<title>(SAS) Subscript or Superscript in the footers/titles of RTF output - sarathannapareddy</title>
<link>http://snipplr.com/view/17379/subscript-or-superscript-in-the-footerstitles-of-rtf-output/</link>
<description><![CDATA[ <p>Wondering how to create a subscripts and superscipt in title or footnotes of the rtf output... here is a way to do it....

Execute the following program to get an Idea about how to keep SUBSCRIPTS and SUPERSCRIPTS in footnotes and titles of rtf output..

************************************************************;
data test;
length secnam $15;
input sortord secnam $ pvalue;
cards;
1 demog 0.8812
2 ae 0.7112
3 disposition 0.8112
4 medicalhistory 0.9112
;
run;

ods listing close;
ods rtf file="Test output.rtf" style=rtfout;
ods escapechar='\';

proc report data = test missing split="$" spacing=0 headline nowd;
column sortord secnam pvalue;
define sortord / order noprint;
define secnam / order flow "Demographics$Variable\{super a}";
define pvalue / display flow "ANOVA$P-Value\{sub p}";
run; 

ods rtf close;
ods trace off;
ods listing;
*************************************************************; 

Variable\{super a}"; *Adds a superscript a to Demographics variable;
ANOVA$P-Value\{sub p}";*Adds a subscript p to ANOVA P-Value variable; 

Make sure to use the same kind of brackets { }I have used in the sample code to get the superscripts and subscripts to get printed in the rtf output.

ESCAPECHAR need not be '\' as it is mentioned in the sample code... It could be '*' or '^' or '#' anything we can think of...</p> ]]></description>
<pubDate>Thu, 23 Jul 2009 09:32:13 GMT</pubDate>
<guid>http://snipplr.com/view/17379/subscript-or-superscript-in-the-footerstitles-of-rtf-output/</guid>
</item>
<item>
<title>(SAS) Renaming All Variables in a SAS Data Set Using the SASHELP VIEWS - sarathannapareddy</title>
<link>http://snipplr.com/view/17378/renaming-all-variables-in-a-sas-data-set-using-the-sashelp-views/</link>
<description><![CDATA[ <p>*Create a temporary dataset... DSN;
data dsn;
a=1;
b=2;
c=3;
d=4;
e=5;
f=6;
run;


%macro test(lib,dsn);

*/1)*/ data _null_;
set sashelp.vtable(where=(libname="&amp;LIB" and memname="&amp;DSN"));
call symput('nvars',nvar);
run;

*/2)*/ data dsn;
set sashelp.vcolumn(where=(libname="&amp;LIB" and memname="&amp;DSN"));
call symput(cats("var",_n_),name);
run;

*/3)*/ proc datasets library=&amp;LIB;
modify &amp;DSN;
rename
%do i = 1 %to &amp;nvars;
&amp;&amp;var&amp;i=Rename_&amp;&amp;var&amp;i.
%end;
;
quit;
run;
%mend;

%test(WORK,DSN);

After submitting the above program... the output looks like this....


Output:
Rename_a Rename_b Rename_c Rename_d Rename_e Rename_f
1 2 3 4 5 6</p> ]]></description>
<pubDate>Thu, 23 Jul 2009 09:29:51 GMT</pubDate>
<guid>http://snipplr.com/view/17378/renaming-all-variables-in-a-sas-data-set-using-the-sashelp-views/</guid>
</item>
<item>
<title>(PHP) Dynamic Navigation From Database Table Names - jiggyhat</title>
<link>http://snipplr.com/view/15104/dynamic-navigation-from-database-table-names/</link>
<description><![CDATA[ <p>This will create a Navigation from a MySQL database table names.  It removes the table name "includes" by default so you can see how to remove any certain tables you wish to not use as a site section.   Just plug in your MySQL database details and connection info into data.php and you should be great to go.</p> ]]></description>
<pubDate>Sat, 16 May 2009 15:27:32 GMT</pubDate>
<guid>http://snipplr.com/view/15104/dynamic-navigation-from-database-table-names/</guid>
</item>
<item>
<title>(PHP) Dump a database to HTML tables - brent-man</title>
<link>http://snipplr.com/view/8975/dump-a-database-to-html-tables/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 13 Oct 2008 09:47:49 GMT</pubDate>
<guid>http://snipplr.com/view/8975/dump-a-database-to-html-tables/</guid>
</item>
<item>
<title>(PHP) Easy Excel export from PHP - stavelin</title>
<link>http://snipplr.com/view/8894/easy-excel-export-from-php/</link>
<description><![CDATA[ <p>This is saved from Gerhard Slettens weblog www.gersh.no. I just want yo keep it on snipplr so it easily can be fetched through textmate.</p> ]]></description>
<pubDate>Wed, 08 Oct 2008 11:31:37 GMT</pubDate>
<guid>http://snipplr.com/view/8894/easy-excel-export-from-php/</guid>
</item>
</channel>
</rss>