GithubHelp home page GithubHelp logo

rahulyhg / textpress-db Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tecnixindo/textpress-db

0.0 1.0 0.0 12 KB

texTPress DB is a text-based database in PHP (flat file db). You can see demo in texTPress CMS (text-press.googlecode.com)

License: MIT License

PHP 100.00%

textpress-db's Introduction

textpress db
============
texTPress DB is a text-based database in PHP (flat file db). 
You can see demo in texTPress CMS (text-press.googlecode.com)

how to use
==========
insert file "functions.php" into your php file like this:
  include_once "functions.php";
    
db command list
===============
  add_db ($filename,$array_data)
  edit_db ($filename,$array_data)
  del_db ($filename,$key)
  read_db($filename,$first_row,$last_row)
  search_db($filename,$pattern)
  key_db($filename,$key)
  get_key_db($filename,$pattern)
  replace_db($filename,$array_data,$pattern)
  array_sort($array, $column_data, $order=SORT_ASC)
  recursive_data($pattern,$column_parent=1,$row_array_in)

example add_db guest book
=========================
	$data[1] = date('Y-m-d H:i:s');     // submitted date
	$data[2] = 'John Doe';              // person name
	$data[3] = 'Message from John Doe'; // guest book message
	add_db('guestbook.txt',$data);		// save database
	
file name can be: guestbook.txt or guestbook.db, or guestbook or whatever

Donation for development:
=========================
BTC	1AEdAhje16RSeUMvYLQ4rzu9i5ZcHP9uDn
BCH	bitcoincash:qpfs5k3v73ness44qvxeqaauknyem0uv0uwv0thvhu
BTG	GfzmgESHyogYGt3UMc8Zp6wyB4wovpeuJn
DASH	XwYEp7DbaPechDyEvcdfkNt99htVK3vmC5
DOGE	DHKufkhPXbmgbCTpMGYNeGCQD4Zb6uAMsg
ETC	0x310ac05f20b75f175711a9e20d778ff3fa4a4221
ETH	0x3483a47d0962853a292f88cc008635be15630095
LTC	LXaz5trQTZ6YMTfvPEi9EhsMb3KLAyCsKo
XZC	Zzv5V8o5jiygAu85jYihsBNwLykT71isbd

textpress-db's People

Contributors

tecnixindo avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.