<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Programming Ideas, Logics, Tips and Tricks &#187; msql</title>
	<atom:link href="http://www.sajithmr.me/tag/msql/feed" rel="self" type="application/rss+xml" />
	<link>http://www.sajithmr.me</link>
	<description></description>
	<lastBuildDate>Mon, 23 Jan 2012 15:44:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Mysql Table Editor</title>
		<link>http://www.sajithmr.me/mysql-table-editor</link>
		<comments>http://www.sajithmr.me/mysql-table-editor#comments</comments>
		<pubDate>Thu, 04 Jun 2009 04:31:56 +0000</pubDate>
		<dc:creator>Mr Me</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[php source code]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[editor]]></category>
		<category><![CDATA[msql]]></category>
		<category><![CDATA[phpmyadmin]]></category>
		<category><![CDATA[query]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[table]]></category>

		<guid isPermaLink="false">http://www.sajithmr.com/?p=439</guid>
		<description><![CDATA[In a php project, if we get the requirement , we usually start design and database. But the data entry procedure is very hard. In this case PhpMyadmin is a good comfort.  Here is another tool from phpguru.org , MySQL Table Editor. Using this library you can make your database table editable from your php [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.sajithmr.com/wp-content/uploads/2009/06/mysql-table-editor.png"><img class="alignnone size-full wp-image-442" title="mysql-table-editor" src="http://www.sajithmr.com/wp-content/uploads/2009/06/mysql-table-editor.png" alt="" width="291" height="59" /></a></p>
<p>In a php project, if we get the requirement , we usually start design and database. But the data entry procedure is very hard. In this case PhpMyadmin is a good comfort. </p>
<p>Here is another tool from phpguru.org , MySQL Table Editor. Using this library you can make your database table editable from your php code. </p>
<p>You can  :</p>
<ol>
<li>Select the table to be displayed</li>
<li>decide which column should be hidden</li>
<li>Whether a column should be editable or not</li>
<li>Add advanced searching option</li>
<li>Download the table as csv format</li>
<li>Add pagination</li>
<li>Set alias display name for your column</li>
</ol>
<div>Download Library from: </div>
<div><a href="http://www.phpguru.org/downloads/TableEditor/TableEditor.zip">http://www.phpguru.org/downloads/TableEditor/TableEditor.zip</a></div>
<div></div>
<div>Documentation:</div>
<div><a href="http://www.phpguru.org/static/TableEditor.html">http://www.phpguru.org/static/TableEditor.html</a></div>
<div></div>
<div>Sample Code Below:</div>
<pre lang="php">

<?php
require_once('TableEditor.php');
//database connection object
$db_conn = mysql_connect('localhost','root','');
mysql_select_db('mydbname'); 

//select the table to be edited, here it is accounts
$editor = new TableEditor($db_conn, 'accounts');
//I dont want to display id and password column
$editor->noDisplay('id');
$editor->noDisplay('password');
//the email column should not be editable
$editor->noEdit('email');
//set display name for column email and login
$editor->setDisplayNames(array('email'       => 'Email',
                              'login'     => 'Username'
                              ));
//sort order of first name
$editor->setDefaultOrderby('namefirst', 0);
//set which are the filed to be searchable
$editor->setConfig('searchableFields', array('namefirst', 'namelast', 'email'));
//can set the type of input field
$editor->setInputType('available', 'select');
//finally display the editor window
$editor->display();
?>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.sajithmr.me/mysql-table-editor/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

