Giter Club home page Giter Club logo

dbpress's Introduction

===  DbPRess ===
Contributors: kvvaradha
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&[email protected]&item_name=KV Plugin Hider	
Tags: dbpress,kvcodes, Second database,  
Requires at least: 3.1
Tested up to: 3.9

A simple wordpress plugin which helps you to use another database for your wordpress. 

== Description ==

A simple wordpress plugin which helps you to use another database for your wordpress. 

If you want to rework with the code, fine take a look at here before start using this code, It will be helpful to work with your own project.<a href="http://kvcodes.com/2014/03/dbpress-configurations/" target="blank" > Kvcodes.com </a> 

**Features**

* Easy install
* Easy to show hide from the plugins directory.

== Installation ==

You can use the built in installer and upgrader, or you can install the plugin manually.

**Installation via Wordpress**

1. Go to the menu 'Plugins' -> 'Install' and search for 'WP List PlugIns'
1. Click 'install'

**Manual Installation**

1. Upload folder `kv_backlink` to the `/wp-content/plugins/` directory
1. Activate the plugin through the 'Plugins' menu in WordPress

== Screenshots ==

1. Screenshot of KV Backlink Checker.
2. Dashboard Widget.

== Functions And Usage ==

Create table,insert, delete, update, get results.
More similar functions like the core$ wpdb. If you encounter any problem or bug, please feel free to comment below.
Sample Codes :
<pre>
	global $kvdb ; 
	$test_table = $kvdb->prefix.'kv_test_table';
		
		$sql_query = "CREATE TABLE IF NOT EXISTS $test_table  (
			  `id` int(11) NOT NULL AUTO_INCREMENT,
			  `person_name` varchar(64) NOT NULL default '',
			  `contact_no` varchar(128) NOT NULL default '',
			  `email` varchar(15) NOT NULL default '',          
			  UNIQUE KEY id (id)
			)ENGINE=MyISAM  DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;";
			
	dbDelta($sql_query);
	</pre>
The above code helps you to create a  new table in your new database.
Likewise you query and get results from the second table,
<pre>
	$users = $kvdb->get_results( "SELECT * FROM kv_custom_table");
							
	foreach ( $users as $user ) {
		echo $user->username; 
	}
	</pre> 
You can do much more.

dbpress's People

Contributors

kvvaradha avatar

Stargazers

 avatar

Watchers

James Cloos avatar  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.