Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged table



« Prev 1 Next »
Use PHP's DOM parser to convert a table into plain text (including links with images)
0 3397 posted 10 years ago by nigelnquande
Created by Quirol to avoid TOTAL errors
0 2113 posted 13 years ago by mrtonix
Let's say you want to show a list of employees, and you want to show 3 on each row, use the script below to accomplish that.
0 2623 posted 13 years ago by andreaskian
Creates table structure for pitchfx data that is provided by mlb.com. Open PHP file and enter username and password for localhost. Feel free to customize to suit your preference.
0 2292 posted 13 years ago by wa-rufio
This is a skeleton mock up for showing a database table in a basic datagrid with sorting and pagination.
0 2601 posted 14 years ago by brownrl
Here you see a example to make your table background color fdifferent at last
0 2341 posted 14 years ago by Darksider3
Refer to the following: http://codex.wordpress.org/Class_Reference/wpdb
0 3076 posted 14 years ago by redconservatory
0 2378 posted 14 years ago by dubogii
0 1230 posted 14 years ago by LemonPro
Create custom database tables within wordpress. Just replace 'stats' with the name of your table, and then the $sql variable with your create table sql.
0 1629 posted 14 years ago by prwhitehead
The script below connects to a MySQL database server on "localhost" using the login name "test" and password "123456" and then connects to the database "test". It then copies the table structure and data from the table "products" to a new table "prod...
4 2892 posted 15 years ago by fackz
1 1929 posted 15 years ago by ginoplusio
A script I used for quickly load a file (see line 3) and then make a table which had linenumbers on each line. You may want to add a +1 when its generating the table...
0 1291 posted 15 years ago by Knarf
This function is very helpfull when you need to put some data (that was gotten from database) to HTML table. You can choose vertical or horizontal types. **Horizontal type:** | 1 | 2 | 3 | | 4 | 5 | 6 | | 7 | 8 | 9 | **Vertical type:**...
1 2250 posted 16 years ago by kirik
2 1640 posted 16 years ago by cshaiku
Use instead of standard "sql\_tablesort()" function. Handles multiple "sort" in $header, but the arrow will be only on last sorted column. This can be handled with rewriting theme_table, for example.
0 1248 posted 16 years ago by kurokikaze
0 1198 posted 16 years ago by stavelin
0 1447 posted 17 years ago by crishnakh
This snipped adds columnstriping to cells. It works fine for most cases, but will behave strange when combined with colspan. Cells get an additional class 'even-col' or 'odd-col'
2 1737 posted 18 years ago by berkes
0 1239 posted 19 years ago by whitetiger
« Prev 1 Next »