Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged data



« Prev 1 Next »
  1. FAV

    function to obfuscate web text into random design

    Function for obfuscate Text in html pages. good for making screenshot and mind data protection if needed. changes Text into many small divs with different bgcolor.
    PHP 128 views posted 3 months ago by PietKeizer
  2. FAV

    Simple PDO Connection and select

    This is the basic code that you need to know to connect and list data with PDO. Don't use de old method (mysql_connect and mysqli_connect) to connect and interact with databases.
    PHP 16 views posted 4 years ago by snstro
  3. FAV

    Creating and Parsing JSON Data in PHP

    This code demonstrates how to create and parse the JSON data format of using array of PHP. It's a very simple code, that allows you to perform this task.
    PHP 11 views posted 6 years ago by apphp-snippets
  4. FAV

    DataObject class

    Abstract class from which other classes can be derived to handle database access and data retrieval. Constants for database connection (DB_DSN, DB_USERNAME, etc.) must be set in another php file (eg. config.php)
    PHP saved by 2 people 15 views posted 7 years ago by osccar
  5. FAV

    SessCacher: Class for caching data through php session

    This is a custom class for caching results through php's session. The class can be used to cache anything, but i use it to cache mysql results so i don't have to get all the time the results by querying MySQL (wich may take a long time, especialy if...
    PHP 11 views posted 8 years ago by TimoZachi
  6. FAV

    Request data from apprequest facebook api

    Rescatamos los datos que pasamos por apprequest .
    PHP 7 views posted 8 years ago by serialk89
  7. FAV

    Request data from URL iframe Facebook app

    Rescato variables desde un iframe con $signed_request
    PHP 10 views posted 8 years ago by serialk89
  8. FAV

    Simple inline PHP alternating rows

    Traditionally when you have lost lists of dat you want to alternate rows for usability. The first thing everybody makes to fix this is a simple if statement loop, but this adds a number of lines and is hardly a clean solution. Additionally it require...
    PHP 4 views posted 8 years ago by FatFolderDesigner
  9. FAV

    Encrypting sensitive data

    PHP 3 views posted 8 years ago by olemedia
  10. FAV

    Get Twitter Data using twitter API

    PHP 4 views posted 9 years ago by kangcom
  11. FAV

    gets the data from a URL

    PHP saved by 2 people 3 views posted 9 years ago by fackz
  12. FAV

    Zend Data Mapping example

    Example set of files for data mapping objects to db records. (Not perfect, but funcional)
    PHP 6 views posted 9 years ago by nikefido
  13. FAV

    data sanitization

    PHP saved by 2 people 5 views posted 9 years ago by sadus
  14. FAV

    Wordpress | Get All Meta Data

    Gets all meta data keys/values for a particular post
    PHP saved by 2 people 7 views posted 9 years ago by mattkenefick
  15. FAV

    CakePHP - Dynamic Model

    A small snippet on how to create a dynamic model in CakePHP (useful for global functions that need a model to function. IE functions defined in the AppController
    PHP 7 views posted 9 years ago by stolkchris
  16. FAV

    How to use Google HTTP Geocoding

    PHP 5 views posted 9 years ago by adampatterson
  17. FAV

    PHP MySql Class

    PHP 12 views posted 9 years ago by Myrddin
  18. 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 10 views posted 10 years ago by kirik
  19. FAV

    PHP/MySQL - Get Table Data

    Use this function to print out all the rows in a table. Specify columns to show using the columnstring parameter: tablulardata(tablename, columnstring); ie: tabluardata("users","username=Username|fname=First Name|lname=Last Name");
    PHP saved by 4 people 6 views posted 10 years ago by kilrizzy
  20. FAV

    PHP/MySQL - Get Row Data

    Use this function to pull all columns from a single database field. getrowdata(tablename,rowid,prefix); You would call this function like: getrowdata("users",$_SESSION['user'],"user_"); The prefix is the prefix you want for the array names,...
    PHP saved by 4 people 4 views posted 10 years ago by kilrizzy
  21. FAV

    Formatar Data e Hora Portugues

    PHP saved by 1 person 4 views posted 10 years ago by fackz
  22. FAV

    Formatar data em portugues por extenso

    Para utilizar, proceda assim: echo formata_data_extenso('2007-04-17'); echo formata_data_extenso('2007-04-17 15:20:35');
    PHP saved by 1 person 4 views posted 10 years ago by fackz
  23. FAV

    Get The Inside String

    Using this you can get the inside string from another given string. Great for scraping data from other sites.
    PHP 5 views posted 10 years ago by Unreal
  24. FAV

    Explode date formato BR

    Explode de data para formato BR
    PHP 5 views posted 10 years ago by wesleymacente
  25. FAV

    dataList - Listar dados

    Simplified form to extract data through MySQL
    PHP 5 views posted 11 years ago by LondonWeb
  26. FAV

    Ci Controller: Print data (for testing)

    PHP saved by 2 people 4 views posted 11 years ago by plasticated
  27. FAV

    Simple Data Access Class

    This is a simple class to encapsulate CURD functions. This class also includes some simple search methods.
    PHP saved by 4 people 6 views posted 12 years ago by ecavazos
  28. FAV

    基本数据结构和php内置函数

    sorting, searching in array, some string function
    PHP 6 views posted 12 years ago by juno
  29. FAV

    display data from myusql

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