Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged table



« Prev 1 Next »
  1. FAV

    HTML Table to plain text

    Use PHP's DOM parser to convert a table into plain text (including links with images)
    PHP 16 views posted 5 years ago by nigelnquande
  2. FAV

    Quirolrichimaro Adding Headers Technique

    Created by Quirol to avoid TOTAL errors
    PHP 1 views posted 7 years ago by mrtonix
  3. FAV

    Create table rows automatically based on number of columns

    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.
    PHP 4 views posted 7 years ago by andreaskian
  4. FAV

    PHP Create pitchfx Table Structure

    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.
    PHP 7 views posted 8 years ago by wa-rufio
  5. FAV

    PHP DB Table to HTML Datagrid

    This is a skeleton mock up for showing a database table in a basic datagrid with sorting and pagination.
    PHP 9 views posted 8 years ago by brownrl
  6. FAV

    Make your table color different by Mysql Select tag

    Here you see a example to make your table background color fdifferent at last
    PHP 2 views posted 8 years ago by Darksider3
  7. FAV

    Wordpress: retrieve values from a custom table in the Wordpress database

    Refer to the following: http://codex.wordpress.org/Class_Reference/wpdb
    PHP 8 views posted 8 years ago by redconservatory
  8. FAV

    Build a Calendar Table

    PHP 1 views posted 8 years ago by dubogii
  9. FAV

    HTML table with PHP

    PHP 5 views posted 8 years ago by LemonPro
  10. FAV

    Wordpress: Create custom database tables

    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.
    PHP 8 views posted 8 years ago by prwhitehead
  11. FAV

    PHP script to make a backup copy of a MySQL table

    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...
    PHP saved by 16 people 15 views posted 9 years ago by fackz
  12. FAV

    MySQLi convert a result set to an HTML table

    PHP saved by 6 people 5 views posted 10 years ago by ginoplusio
  13. FAV

    MySQLi repair and optimize tables

    PHP saved by 3 people 5 views posted 10 years ago by ginoplusio
  14. FAV

    Quickly load a file and give each line a linenumber.

    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...
    PHP 0 views posted 10 years ago by Knarf
  15. FAV

    Function for putting data to the html table [two different ways]

    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:**...
    PHP saved by 3 people 7 views posted 10 years ago by kirik
  16. FAV

    CakePHP Model or Controller without any database Table

    PHP saved by 3 people 2 views posted 10 years ago by jpsirois
  17. FAV

    Simple File Directory Listing Table

    PHP saved by 6 people 4 views posted 10 years ago by cshaiku
  18. FAV

    Sorting by multiple columns

    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.
    PHP 3 views posted 10 years ago by kurokikaze
  19. FAV

    alter table (float)

    PHP 2 views posted 11 years ago by stavelin
  20. FAV

    Color to rows in a table

    PHP 2 views posted 11 years ago by crishnakh
  21. FAV

    Drupal - Theme table with columstriping

    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'
    PHP saved by 6 people 5 views posted 12 years ago by berkes
  22. FAV

    PHP - InversoMoltiplicativo

    PHP 1 views posted 13 years ago by whitetiger
« Prev 1 Next »