<?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>Vision Master Designs &#187; MySQL</title>
	<atom:link href="http://visionmasterdesigns.com/tag/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://visionmasterdesigns.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Thu, 29 Oct 2009 20:00:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Tutorial : Auto Completer using Prototype, Script.aculo.us</title>
		<link>http://visionmasterdesigns.com/tutorial-auto-completer-using-prototype-scriptaculous/</link>
		<comments>http://visionmasterdesigns.com/tutorial-auto-completer-using-prototype-scriptaculous/#comments</comments>
		<pubDate>Sun, 26 Oct 2008 13:35:43 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[Javascript Frameworks]]></category>
		<category><![CDATA[Prototype, Script.aculo.us]]></category>
		<category><![CDATA[Web Programming]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP & MySQL]]></category>
		<category><![CDATA[Prototype]]></category>
		<category><![CDATA[Script.aculo.us]]></category>

		<guid isPermaLink="false">http://www.visionmasterdesigns.com/?p=770</guid>
		<description><![CDATA[How many of you have always dreamt of creating an Auto Suggest Box. I bet everyone must have seen one of these somewhere or the other. if you use Gmail to send mails, you might recall that while typing the To address, Gmail shows a probable list of users from your address book. Nowadays most [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin: 0 0 0.6em 0.6em;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fvisionmasterdesigns.com%2Ftutorial-auto-completer-using-prototype-scriptaculous%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fvisionmasterdesigns.com%2Ftutorial-auto-completer-using-prototype-scriptaculous%2F&amp;source=rowoot&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>How many of you have always dreamt of creating an Auto Suggest Box. I bet everyone must have seen one of these somewhere or the other. if you use Gmail to send mails, you might recall that while typing the To address, Gmail shows a probable list of users from your address book. Nowadays most of the modern browsers also have this Auto Suggest control built in them, i.e when the user begins to type in a text box, a menu appears below the text offering completion suggestions. </p>
<p>Today I am going to teach you how to create an Auto Suggest Box using Prototype, Script.aculo.us. The script.aculo.us auto suggest box (autocompleter) replicates this control, but gives the developer control of the probable suggestions.</p>
<p>Index</p>
<ul>
<li>Page 1 : <a title="Introduction" href="http://www.visionmasterdesigns.com/2008/10/tutorial-auto-completer-using-prototype-scriptaculous/">Introduction and </a></li>
<li>Page 2 : <a title="Auto Suggest Box (local)" href="http://www.visionmasterdesigns.com/2008/10/tutorial-auto-completer-using-prototype-scriptaculous/2/">Auto Suggest Box (local)</a></li>
<li>Page 3 : <a title="AJAX Auto Suggest Box (remote via PHP/MySQL)" href="http://www.visionmasterdesigns.com/2008/10/tutorial-auto-completer-using-prototype-scriptaculous/3/">AJAX Auto Suggest Box (remote via PHP/MySQL)</a></li>
</ul>
<h4>Demo &amp; Source Download</h4>
<p>Type out the name of the states of U.S.A.<br />
Local Auto Suggest Box Demo : <a href="http://www.visionmasterdesigns.com/demo/autocompleter/local.html" target="_blank">Click Here</a><br />
Remote Auto Suggest Box Demo : <a href="http://www.visionmasterdesigns.com/demo/autocompleter/ajax.html" target="_blank">Click Here</a></p>
<p>Download Source <a href="http://www.visionmasterdesigns.com/demo/autocompleter/autocompleter_src.rar">Here</a><br />
<span id="more-770"></span></p>
<h2>Problem Statement</h2>
<p>Lets try creating an Auto Suggest Box which displays the states of America as the user begins to type a state&#8217;s name in the text box.</p>
<h2>Solution</h2>
<p>Before using any functions, first we need to make our HTML page i.e how the suggestion box is going to look.</p>
<ol>
<li>Create an empty HTML file.</li>
<li>
    First, to take the input of any state name from the user we need an input box.<br />
    Second, we need a container to display all the probable suggestions i.e different names of states according to User input.</p>
<p>    Lets create these right now.</p>
<pre class="brush: html">
    &lt;!-- This code will be added inside the  &lt;strong&gt;&lt;BODY&gt;&lt;/strong&gt; tag of the HTML page --&gt;
    &lt;input type=&quot;text&quot; name=&quot;state_input&quot; id=&quot;state_input&quot; size=&quot;30&quot; /&gt;
    &lt;div id=&quot;state_suggestions&quot;&gt;&lt;!-- container for list of probable suggestions !--&gt;&lt;/div&gt;
    </pre>
</li>
<li>
    Now that we have designed our suggestion box, its time to implement the Auto Suggest Box method. Since this method is readily available as a part of Script.aculo.us, we need to include the scriptaculous file, and since scriptaculous depends on prototype, we need to include the prototype file to our HTML document. Type following code inside the <strong>&lt;HEAD&gt;</strong> tag.</p>
<pre class="brush: javascript">
	&lt;script src=&quot;js/lib/prototype.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
    &lt;script src=&quot;js/src/scriptaculous.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
    </pre>
</li>
<li>
	The HTML page should look something like this.</p>
<pre class="brush: html">
    &lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;
    &lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
    &lt;head&gt;
    &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;
    &lt;title&gt;Untitled Document&lt;/title&gt;
    &lt;script src=&quot;js/lib/prototype.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
	&lt;script src=&quot;js/src/scriptaculous.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
    &lt;/head&gt;
    &lt;body&gt;
    &lt;input type=&quot;text&quot; name=&quot;state_input&quot; id=&quot;state_input&quot; size=&quot;30&quot; /&gt;
    &lt;div id=&quot;state_suggestions&quot;&gt;&lt;!-- container for list of probable suggestions !--&gt;&lt;/div&gt;

    &lt;/body&gt;
    &lt;/html&gt;
    </pre>
</li>
</ol>
<p>Now that we have a HTML page ready, preview it. Obviously it won&#8217;t work yet. We still have to define the AutoCompleter function.</p>
<p>There are 2 ways to achieve our goal. Script.aculo.us&#8217;s Autocompleter comes in two flavors.</p>
<ol>
<li><span class="code">Autocompleter.Local</span> : The local array autocompleter. Used when you’d prefer to inject an array of autocompletion options into the page, rather than sending out Ajax queries.</li>
<li><span class="code">Ajax.Autocompleter</span> : Which relies on a remote server to give it suggestions, making an AJAX Request whenever suggestions need to be retrieved.</li>
</ol>
<p>Now both have thier Pros and Cons. I`ll explain each one of them and how they can be used.</p>
]]></content:encoded>
			<wfw:commentRss>http://visionmasterdesigns.com/tutorial-auto-completer-using-prototype-scriptaculous/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Tutorial : Using phpMyAdmin to manage mySQL</title>
		<link>http://visionmasterdesigns.com/tutorial-using-phpmyadmin-to-manage-mysql/</link>
		<comments>http://visionmasterdesigns.com/tutorial-using-phpmyadmin-to-manage-mysql/#comments</comments>
		<pubDate>Fri, 25 Jul 2008 17:53:00 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[PHP & MySQL]]></category>
		<category><![CDATA[Web Programming]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PhpMyAdmin]]></category>

		<guid isPermaLink="false">http://blog.visionmasterdesigns.com/?p=175</guid>
		<description><![CDATA[Hello Everyone ! I am really excited ! Its been 18 days since the blog started and the response is amazing. I really hope these tutorials are helpful. Anyways I have seen a lot of people having problem setting up phpmyadmin and Lot more have no idea how to use it. So this tutorial is [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin: 0 0 0.6em 0.6em;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fvisionmasterdesigns.com%2Ftutorial-using-phpmyadmin-to-manage-mysql%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fvisionmasterdesigns.com%2Ftutorial-using-phpmyadmin-to-manage-mysql%2F&amp;source=rowoot&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>Hello Everyone !</p>
<p>I am really excited ! Its been 18 days since the blog started and the response is amazing. I really hope these tutorials are helpful. Anyways I have seen a lot of people having problem setting up phpmyadmin and Lot more have no idea how to use it. So this tutorial is dedicated to you folks. I`ll teach you the basics of how to play with phpMyAdmin. Frankly I have not seen much tutorials on how to use phpmyadmin, and I don`t know how well you guys will like it.<br />
Anyways</p>
<h2 style="text-align: center;">phpMyAdmin 2.11.x Front Page</h2>
<p style="text-align: center;"><a title="phpmyadmin front page" rel="lightbox[pics175]" href="http://www.visionmasterdesigns.com/blog/wp-content/uploads/2008/07/t11a.jpg"><img class="attachment wp-att-176 centered" src="http://www.visionmasterdesigns.com/blog/wp-content/uploads/2008/07/t11a.thumbnail.jpg" alt="phpmyadmin front page" width="425" height="251" /></a></p>
<p><span id="more-175"></span><br />
The Front page shows you something similar to the above image. As you can see, On the left we have the existing databases. If there are none available its fine, and on the right we have the page which has a lot of text in it <img src='http://visionmasterdesigns.com/wordpress/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> . You can see that I have marked the area from where you can create your database.<br />
For more information about your mysql server, its configurations etc you can check the many links on this page. Exploring more links is the key to master it <img src='http://visionmasterdesigns.com/wordpress/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<h4>Lets create a database called &#8216;test&#8217;</h4>
<p>Now lets create a database called test. Put the name test in the Create New database box and click on create.</p>
<p style="text-align: center;"><a title="Create dbase screen using phpmyadmin" rel="lightbox[pics175]" href="http://www.visionmasterdesigns.com/blog/wp-content/uploads/2008/07/t11b.jpg"><img class="attachment wp-att-180 centered" src="http://www.visionmasterdesigns.com/blog/wp-content/uploads/2008/07/t11b.thumbnail.jpg" alt="Create dbase screen using phpmyadmin" width="425" height="250" /></a></p>
<p>You`ll see something similar to the above when you create your first database. Cool ! Now you might notice that I have boxed an area in the above image.</p>
<ul>
<li><span class="code">Structure</span> &#8211; Shows you the structure of the database (Schema)</li>
<li><span class="code">SQL</span> &#8211; You can use the query language to modify your database</li>
<li><span class="code">Search</span> &#8211; Search for a particular item</li>
<li><span class="code">Query</span> &#8211; Right now don`t worry about this much. <img src='http://visionmasterdesigns.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </li>
<li><span class="code">Export/Import</span> &#8211; You can export your database in SQL or import an equivalent</li>
<li><span class="code">Operations</span> &#8211; Operations you can perform on your database</li>
<li><span class="code">Privileges</span> &#8211; Shows you the user who can use this database and his privileges.</li>
<li><span class="code">Drop</span> &#8211; Delete the database</li>
</ul>
<p>Phew that was quite a bunch ! Lets move on. Now we have created our database test. Lets create tables in it. Click on <span class="code">SQL</span> from the area I had marked in the image, and goto the next step.</p>
<h4>Create table &#8216;user&#8217;</h4>
<p style="text-align: center;"><a title="create table in phpmyadmin" rel="lightbox[pics175]" href="http://www.visionmasterdesigns.com/blog/wp-content/uploads/2008/07/t11c.jpg"><img class="attachment wp-att-181 centered" src="http://www.visionmasterdesigns.com/blog/wp-content/uploads/2008/07/t11c.thumbnail.jpg" alt="create table in phpmyadmin" width="425" height="250" /></a></p>
<p>You will see a page similar to the above image. Write a SQL query to create a table.</p>
<pre lang="sql">CREATE TABLE user (
id INT AUTO_INCREMENT NOT NULL,
user VARCHAR(50),
pass VARCHAR(50),
PRIMARY KEY(id) )</pre>
<p style="text-align: center;"><a title="phpmyadmin table code executed" rel="lightbox[pics175]" href="http://www.visionmasterdesigns.com/blog/wp-content/uploads/2008/07/t11d.jpg"><img class="attachment wp-att-188 centered" src="http://www.visionmasterdesigns.com/blog/wp-content/uploads/2008/07/t11d.thumbnail.jpg" alt="phpmyadmin table code executed" width="425" height="250" /></a></p>
<p>If the code was executed successfully you`ll see something similar to the above image. I think the image is self explainatory. On the left the table you just created under database test. Click on &#8216;test&#8217;. you will be taken to the &#8216;Table Info Page&#8217;.</p>
<h2 style="text-align: center;">phpMyAdmin Database Info page</h2>
<p style="text-align: center;"><a title="phpmyadmin database info page" rel="lightbox[pics175]" href="http://www.visionmasterdesigns.com/blog/wp-content/uploads/2008/07/t11i.jpg"><img class="attachment wp-att-193 centered" src="http://www.visionmasterdesigns.com/blog/wp-content/uploads/2008/07/t11i.thumbnail.jpg" alt="phpmyadmin database info page" width="425" height="251" /></a></p>
<p>This page is where all your tables of a particular database are shown. As shown in the above figure, in the database test, we currently have only 1 table i.e user.</p>
<h2 style="text-align: center;">phpMyAdmin Table Info page</h2>
<p style="text-align: center;"><a title="phpmyadmin table page" rel="lightbox[pics175]" href="http://www.visionmasterdesigns.com/blog/wp-content/uploads/2008/07/t11e.jpg"><img class="attachment wp-att-189 centered" src="http://www.visionmasterdesigns.com/blog/wp-content/uploads/2008/07/t11e.thumbnail.jpg" alt="phpmyadmin table page" width="425" height="250" /></a></p>
<p>Ok ! So you clicked on test and something similar to the above image will be displayed. This page shows you the structure of your table. As you can see, the table we had created has 3 attributes</p>
<ul>
<li><span class="code">id</span> -int (Primary key)</li>
<li><span class="code">user</span> -VARCHAR of size 50</li>
<li><span class="code">pass</span> &#8211; VARCHAR of size 50</li>
</ul>
<p>You can see in the above image, I have marked an area &#8220;edit the attributes&#8221;. Those little icons help to modify your attributes. From the Left -</p>
<ul>
<li><span class="code">Browse</span> &#8211; Browse values of a particular attribute</li>
<li><span class="code">edit &#8211; Edit structure of attribute, (example: change particular attribute&#8217;s datatype from VARCHAR to text)</span></li>
<li><span class="code">delete</span> &#8211; delete particular attribute</li>
<li><span class="code">Primary, Unique, Index</span>. (It is pretty self explainatory, if you know anything about DBMS)</li>
</ul>
<h4>Insert values inside table</h4>
<p>Ok, Now you know how to create a database, create table inside a database. Lets learn how to insert values inside our table. First goto the &#8216;user&#8217; &#8216;table info page&#8217;. then Click on <span class="code">Insert</span> in the top.</p>
<p style="text-align: center;"><a title="insert page phpmyadmin" rel="lightbox[pics175]" href="http://www.visionmasterdesigns.com/blog/wp-content/uploads/2008/07/t11f.jpg"><img class="attachment wp-att-195 centered" src="http://www.visionmasterdesigns.com/blog/wp-content/uploads/2008/07/t11f.thumbnail.jpg" alt="insert page phpmyadmin" width="425" height="250" /></a></p>
<p>You`ll see a page similar to the above image. As you can see, its pretty neatly laid out, I hope its not that tough for you to decide where to type your data <img src='http://visionmasterdesigns.com/wordpress/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  *There is no need to type anything in <span class="code">id</span>, since if you notice this line<br />
<span class="code">id INT AUTO_INCREMENT NOT NULL</span> which we had typed earlier to create a table ,you`ll see that <span class="code">id</span> is a primary key &amp; it auto increments as you go on inserting records.*</p>
<p style="text-align: center;"><a title="inserted values" rel="lightbox[pics175]" href="http://www.visionmasterdesigns.com/blog/wp-content/uploads/2008/07/t11g.jpg"><img class="attachment wp-att-197 centered" src="http://www.visionmasterdesigns.com/blog/wp-content/uploads/2008/07/t11g.thumbnail.jpg" alt="inserted values" width="425" height="251" /></a></p>
<p>The above image will be displayed once you have inserted your values successfully. Now since you have inserted values, you can double check or see what all values your table contains by clicking on the <span class="code">Browse</span> link on the top. It`ll browse the table for all the records. The following image is what it`ll look like.</p>
<h2 style="text-align: center;">phpMyAdmin Table browse page</h2>
<p style="text-align: center;"><a title="phpmyadmin browse all records" rel="lightbox[pics175]" href="http://www.visionmasterdesigns.com/blog/wp-content/uploads/2008/07/t11h.jpg"><img class="attachment wp-att-198 centered" src="http://www.visionmasterdesigns.com/blog/wp-content/uploads/2008/07/t11h.thumbnail.jpg" alt="phpmyadmin browse all records" width="425" height="251" /></a></p>
<p>You can see all the values for every record. You can edit, delete the records as well. The small Icons are very obvious and not hard to miss. PhpMyAdmin also gives the ability to see results for particular queries. Suppose you want to execute a query on a particular table then click on SQL on the top of the &#8216;Table Info/Browse Page&#8217;</p>
<h4>Execute SQL queries on your table</h4>
<p style="text-align: center;"><a title="phpmyadmin sql query" rel="lightbox[pics175]" href="http://www.visionmasterdesigns.com/blog/wp-content/uploads/2008/07/t11j.jpg"><img class="attachment wp-att-205 centered" src="http://www.visionmasterdesigns.com/blog/wp-content/uploads/2008/07/t11j.thumbnail.jpg" alt="phpmyadmin sql query" width="425" height="251" /></a></p>
<p>The above page is how it`ll look like, you can type in any query to check.</p>
<p>Well, that was very basics of phpMyAdmin. If you guys want any help regarding other functions of phpmyadmin feel free to ask.</p>
<p>If the response for this tutorial is well, then I`ll move to the advanced phpmyadmin stuffz <img src='http://visionmasterdesigns.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . Enjoy Guys</p>
<div class="donate">Found this tutorial really useful, you can click here to donate.</p>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input name="cmd" type="hidden" value="_donations" />
<input name="business" type="hidden" value="rowoot@gmail.com" />
<input name="item_name" type="hidden" value="MICHEAL BENEDICT ARUL" />
<input name="no_shipping" type="hidden" value="0" />
<input name="no_note" type="hidden" value="1" />
<input name="currency_code" type="hidden" value="USD" />
<input name="tax" type="hidden" value="0" />
<input name="lc" type="hidden" value="IN" />
<input name="bn" type="hidden" value="PP-DonationsBF" />
<input alt="PayPal - The safer, easier way to pay online!" name="submit" src="https://www.paypal.com/en_US/i/btn/btn_donate_SM.gif" type="image" /> <img src="https://www.paypal.com/en_US/i/scr/pixel.gif" border="0" alt="" width="1" height="1" /><br />
</form>
<p>else you can click on just any ad <img src='http://visionmasterdesigns.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </div>
]]></content:encoded>
			<wfw:commentRss>http://visionmasterdesigns.com/tutorial-using-phpmyadmin-to-manage-mysql/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Tutorial : Creating a Content Management System using PHP/MySQL</title>
		<link>http://visionmasterdesigns.com/tutorial-creating-a-content-management-system-using-phpmysql/</link>
		<comments>http://visionmasterdesigns.com/tutorial-creating-a-content-management-system-using-phpmysql/#comments</comments>
		<pubDate>Sun, 20 Jul 2008 18:46:07 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[PHP & MySQL]]></category>
		<category><![CDATA[Web Programming]]></category>
		<category><![CDATA[CMS]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://blog.visionmasterdesigns.com/?p=103</guid>
		<description><![CDATA[Its been 2 weeks since visionmasterdesigns.com was started and I am very glad with the response. Lot of people want to explore PHP/MySQL more and I think I`ll give in to that . So Today lets design a Content Management System using PHP/MySQL. Index Page 1 : Introduction Page 2 : Database Work Page 3 [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin: 0 0 0.6em 0.6em;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fvisionmasterdesigns.com%2Ftutorial-creating-a-content-management-system-using-phpmysql%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fvisionmasterdesigns.com%2Ftutorial-creating-a-content-management-system-using-phpmysql%2F&amp;source=rowoot&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>Its been 2 weeks since visionmasterdesigns.com was started and I am very glad with the response. Lot of people want to explore PHP/MySQL more and I think I`ll give in to that <img src='http://visionmasterdesigns.com/wordpress/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> . So Today lets design a Content Management System using PHP/MySQL.</p>
<h4>Index</h4>
<ul>
<li>Page 1 : Introduction</li>
<li>Page 2 : <a href="http://www.visionmasterdesigns.com/2008/07/tutorial-creating-a-content-management-system-using-phpmysql/2/">Database Work</a></li>
<li>Page 3 : <a href="http://www.visionmasterdesigns.com/2008/07/tutorial-creating-a-content-management-system-using-phpmysql/3/">functions.php</a></li>
<li>Page 4 : <a href="http://www.visionmasterdesigns.com/2008/07/tutorial-creating-a-content-management-system-using-phpmysql/4/">articlefunctions.php</a></li>
<li>Page 5 : <a href="http://www.visionmasterdesigns.com/2008/07/tutorial-creating-a-content-management-system-using-phpmysql/5/">insertarticle.php</a></li>
<li>Page 6 : <a href="http://www.visionmasterdesigns.com/2008/07/tutorial-creating-a-content-management-system-using-phpmysql/6/">editarticle.php</a></li>
<li>Page 7 : <a href="http://www.visionmasterdesigns.com/2008/07/tutorial-creating-a-content-management-system-using-phpmysql/7/">article.php &#8211; Our start File</a></li>
<li>Demo &#8211; <a href="http://visionmasterdesigns.com/demo/cms/article.php">Here</a></li>
<li>Script &#8211; <a href="http://visionmasterdesigns.com/demo/cms/cms.zip">Here</a></li>
</ul>
<p>Don`t get scared seeing the number of pages. This system has 5 files as listed above. Our CMS features add,edit and delete article records.</p>
<h4>Introduction to CMS</h4>
<p>CMS is an application through which you can add content without the need of uploading any files. You can create,edit,delete articles directly online. These articles are stored in the backend i.e database, in our case MySQL. Everytime user requests for a particular article, the php script retrieves the article and displays it to the user.</p>
<p>I`ll try to keep it as simple as possible.</p>
]]></content:encoded>
			<wfw:commentRss>http://visionmasterdesigns.com/tutorial-creating-a-content-management-system-using-phpmysql/feed/</wfw:commentRss>
		<slash:comments>58</slash:comments>
		</item>
		<item>
		<title>Tutorial : Intoduction to AJAX with PHP</title>
		<link>http://visionmasterdesigns.com/tutorial-introduction-ajax-with-php/</link>
		<comments>http://visionmasterdesigns.com/tutorial-introduction-ajax-with-php/#comments</comments>
		<pubDate>Thu, 17 Jul 2008 10:31:43 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[PHP & MySQL]]></category>
		<category><![CDATA[Web Programming]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://blog.visionmasterdesigns.com/?p=49</guid>
		<description><![CDATA[Hey Everyone, I have been busy lately, but that ain`t gonna stop me from writing tutorials ! Anyways I had promised a Ruby on Rails tutorial, I am working on that, I am trying to make it as descriptive as possible, but before I post that, a lot of people asked me what is AJAX, [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin: 0 0 0.6em 0.6em;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fvisionmasterdesigns.com%2Ftutorial-introduction-ajax-with-php%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fvisionmasterdesigns.com%2Ftutorial-introduction-ajax-with-php%2F&amp;source=rowoot&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>Hey Everyone,</p>
<p>I have been busy lately, but that ain`t gonna stop me from writing tutorials ! Anyways I had promised a Ruby on Rails tutorial, I am working on that, I am trying to make it as descriptive as possible, but before I post that, a lot of people asked me what is AJAX, how to integrate it with PHP/MySQL etc ? Well guys, This tutorial is dedicated to you all !</p>
<p>Along with answering all your queries, I will be teaching you how to make a simple application in PHP/MySQL using AJAX.</p>
<h4>Index</h4>
<ul>
<li>Page 1 : <a href="http://www.visionmasterdesigns.com/blog/2008/07/tutorial-introduction-ajax-with-php/">Introduction</a></li>
<li>Page 2 : <a href="http://www.visionmasterdesigns.com/blog/2008/07/tutorial-introduction-ajax-with-php/2/">Introduction  to &#8216;AJAX&#8217;</a></li>
<li>Page 3 : <a href="http://www.visionmasterdesigns.com/blog/2008/07/tutorial-introduction-ajax-with-php/3/">General AJAX code</a></li>
<li>Page 4 : <a href="http://www.visionmasterdesigns.com/blog/2008/07/tutorial-introduction-ajax-with-php/4/">Ajax Application using PHP (Username validator)</a></li>
<li><a target="_blank" href="http://visionmasterdesigns.com/demo/ajax/usernamechecker.html">Click here to see demo</a></li>
</ul>
<p>Required : Some basic knowledge in Javascript, HTML.<br />
<span id="more-49"></span></p>
]]></content:encoded>
			<wfw:commentRss>http://visionmasterdesigns.com/tutorial-introduction-ajax-with-php/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Tutorial : Developing your First Ruby on Rails 2 Application</title>
		<link>http://visionmasterdesigns.com/tutorial-developing-your-first-ruby-on-rails-2-application/</link>
		<comments>http://visionmasterdesigns.com/tutorial-developing-your-first-ruby-on-rails-2-application/#comments</comments>
		<pubDate>Wed, 09 Jul 2008 19:30:44 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[Web Programming]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://blog.visionmasterdesigns.com/?p=39</guid>
		<description><![CDATA[So, you have setup a RoR environment on your computer but don`t know where to start. Click here to learn to create your first application using RoR.]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin: 0 0 0.6em 0.6em;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fvisionmasterdesigns.com%2Ftutorial-developing-your-first-ruby-on-rails-2-application%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fvisionmasterdesigns.com%2Ftutorial-developing-your-first-ruby-on-rails-2-application%2F&amp;source=rowoot&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p><!-- 20/8/2008 !--><br />
So, you want to make an application using Ruby on Rails (RoR) huh ! Well, Lets try to make a simple &#8220;Article System&#8221;. Ruby on Rails is very easy at the same time a lil complicated. If you want to know more theory about Ruby on Rails, you can visit its official homepage <a href="http://www.rubyonrails.org">http://www.rubyonrails.org</a>. If you want a small summary of what it is, you can read my previous post <a href="http://www.visionmasterdesigns.com/2008/07/tutorial-installing-ruby-on-rails-2-in-windows-vista-xp/">Tutorial : Installing Ruby on Rails in Windows Vista/XP</a>.</p>
<p>Like I said in my previous post, RoR uses the MVC Architecture. (M-Model, V-Views, C-Controller)</p>
<p><a title="MVC Patter" rel="lightbox[pics39]" href="http://www.visionmasterdesigns.com/blog/wp-content/uploads/2008/07/t3a.jpg"><img class="attachment wp-att-40 centered" src="http://www.visionmasterdesigns.com/blog/wp-content/uploads/2008/07/t3a.thumbnail.jpg" alt="MVC Patter" width="450" height="337" /></a></p>
<p><span id="more-39"></span></p>
<p>The below diagram must be self-explainatory, but if it is not, then<br />
<strong>Models</strong> &#8211; Models communicate with the database, to retrieve the data and keep.<br />
<strong>Controller</strong> &#8211; Any requests made by the browser are forwarded to the Controller by the View, which refers the Models and modifies it in different ways (methods written in the Controller) and returns the results to View.<br />
<strong>View</strong> &#8211; This communicates with the browser, takes the inputs and forwards it to the Controller for the respective action, and the returned result from the Controller is forwarded by the view back to the browser.</p>
<p>Anyways, that was about MVC. So in RoR we always have to create these files for different functions.<br />
For our Article System, our objective is to create a system in RoR</p>
<ol>
<li>Create Database &#8216;articlesystem_development&#8217;</li>
<li>Take Article input from User</li>
<li>Display All the Article</li>
<li>Edit Article</li>
<li>Delete Article</li>
</ol>
<p>If we were to use PHP, this system would take not less than 50 Lines of Code, but in RoR &#8230;. you`ll soon find out;)</p>
<ol>
<li>Firstly open up Command Prompt (Start->Run) type cmd and click OK, then lets navigate to our ruby folder and create our application.<br />
The Syntax to create a new application is</p>
<pre class="brush: ruby">rails -d mysql appname</pre>
<p>So type</p>
<pre class="brush: ruby">C:\ruby\bin\&gt;rails -d mysql articlesystem</pre>
<p>A long list of files &amp; directories are created.</li>
<li>Before editing, Create a database articlesystem_development through phpmyAdmin. If you don`t know how to create a database then refer to <a href="http://www.visionmasterdesigns.com/blog/2008/07/tutorial-creating-a-content-management-system-using-phpmysql/2">Tutorial : Creating a Content Management System using PHP/MySQL</a> else you can use the mysql command to create the database.
<ol>
<li>Goto Start->Run. Type cmd and hit Enter. You will be prompted with the command prompt.</li>
<li>type <span class="code">mysql -u username -p</span>, hit enter</li>
<li>It`ll prompt you for your password. Enter the password.</li>
<li>Once your inside the console type CREATE DATABASE databasename \g i.e <span class="code">mysql>CREATE DATABASE databasename \g</span></li>
<li>If you see the following then you have successfully created a database.
<pre class="brush: sql">
mysql&gt; create database boo \g
Query OK, 1 row affected (0.00 sec)
</pre>
</li>
</ol>
</li>
<li>Good ! Now navigate to <strong>F:\server\ruby\bin\articlesystem\config</strong> and open the file <strong>&#8216;database.yml&#8217;</strong> in wordpad.
<pre class="brush: ruby">
development:
adapter: mysql
encoding: utf8
database: databasename
username: username
password: password
host: localhost

test:
adapter: mysql
encoding: utf8
database: databasename
username: username
password: password
host: localhost

production:
adapter: mysql
encoding: utf8
database: databasename
username: username
password: password
host: localhost
</pre>
<p>You will see the following,except the password area has not been edited yet so type in your mysql user password. (If you have followed the previous tutorial, then password is <strong>root</strong>), and please enter the same database name in all development,test and production.</li>
<li>Save the file.</li>
<li>Now comes the fun part. Open up Command Prompt. Now we need to create the tables for our database.<br />
Our database schema is</p>
<p>id(int)     title(string)     article(text)<br />
1            test article      bla bla bla.. lot of content</p>
<p>The above post was just an example, so basically we have 3 attributes i.e id, title and article.</li>
<li>We will be using rails &#8220;Scaffolding&#8221; feature to create these tables and link it with our system. Scaffolding as the name says, to clean the windows of a high rise building, scaffolding is used as support temporarily, similarly here we are going to use &#8216;scaffold&#8217; to generate links &amp; code.</li>
<li>Now type in
<pre class="brush: ruby">
c:\ruby\bin\articlesystem&gt;ruby script/generate scaffold article title:string article:text
</pre>
<p>You`ll see notice that rails creates another bunch of files
<pre class="brush: ruby">
C:\ruby\bin\articlesystem&gt;ruby script/generate scaffold article title:string article:text
exists  app/models/
exists  app/controllers/
exists  app/helpers/
create  app/views/articles
exists  app/views/layouts/
exists  test/functional/
exists  test/unit/
exists  public/stylesheets/
create  app/views/articles/index.html.erb
create  app/views/articles/show.html.erb
create  app/views/articles/new.html.erb
create  app/views/articles/edit.html.erb
create  app/views/layouts/articles.html.erb
create  public/stylesheets/scaffold.css
create  app/controllers/articles_controller.rb
create  test/functional/articles_controller_test.rb
create  app/helpers/articles_helper.rb
route  map.resources :articles
dependency  model
exists    app/models/
exists    test/unit/
exists    test/fixtures/
create    app/models/article.rb
create    test/unit/article_test.rb
create    test/fixtures/articles.yml
create    db/migrate
create    db/migrate/20080709183936_create_articles.rb
C:\ruby\bin\articlesystem&gt;
</pre>
</li>
<li>I know, there are hell lot of files being created !! <img src='http://visionmasterdesigns.com/wordpress/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />  Anyways, I`ll just tell you what RoR has generated, it has managed to create
<ul>
<li><span class="code">article.rb</span> -> Model inside c:\ruby\bin\articlesystem\app\models\,</li>
<li><span class="code">articles_controller.rb</span> -> Controller (Which has methods of all the functions i.e Create,delete,showall,edit) inside c:\ruby\bin\articlesystem\app\controllers</li>
<li><span class="code">index.html.erb, edit.html.erb, new.html.erb, show.html.erb</span> -> View Files (More like templates which determine the looks of the site) inside C:\ruby\bin\articlesystem\app\views\articles</li>
</ul>
<p>Remember MVC &#8230; you can check the code out. But don`t modify any right now.</li>
<li>Now all you have to do is create the tables of the database. Hold on your horses, no need of logging in to mysql to create your tables. Just type this code
<pre class="brush: ruby">C:\ruby\bin\articlesystem&gt;rake db:migrate</pre>
</li>
<li>rake db:migrate -> executes the database schema RoR had generated automatically,<br />
Not only did RoR generate so many files, It also generated the table schema for articles.</p>
<pre class="brush: ruby">
# This file is auto-generated from the current state of the database. Instead of editing this file,
# please use the migrations feature of Active Record to incrementally modify your database, and
# then regenerate this schema definition.
#
# Note that this schema.rb definition is the authoritative source for your database schema. If you need
# to create the application database on another system, you should be using db:schema:load, not running
# all the migrations from scratch. The latter is a flawed and unsustainable approach (the more migrations
# you&#039;ll amass, the slower it&#039;ll run and the greater likelihood for issues).
#
# It&#039;s strongly recommended to check this file into your version control system.

ActiveRecord::Schema.define(:version =&gt; 20080709183936) do

create_table &quot;articles&quot;, :force =&gt; true do |t|
t.string   &quot;title&quot;
t.text     &quot;article&quot;
t.datetime &quot;created_at&quot;
t.datetime &quot;updated_at&quot;
end

end
</pre>
</li>
<li>Voila !!! RoR has just created all the necessary tables for you in mysql. Don`t believe me ? go check your database. Don`t be amazed, thats nothing, now time to test our code, invoke the ruby web server
<pre class="brush: ruby">C:\ruby\bin\articlesystem&gt;ruby script/server</pre>
</li>
<li>Point your web browser to <a href="http://localhost:3000/articles" target="_blank">http://localhost:3000/articles</a>
<p style="text-align: center;"><a title="Output" rel="lightbox[pics39]" href="http://www.visionmasterdesigns.com/blog/wp-content/uploads/2008/07/t3c.jpg"><img class="attachment wp-att-42 centered" src="http://www.visionmasterdesigns.com/blog/wp-content/uploads/2008/07/t3c.thumbnail.jpg" alt="Output" width="450" height="324" /></a></p>
</li>
<li>Congratulations !!! you have developed your first application in Ruby on Rails 2. Play around with the application, see what all you can do. RoR by default creates the delete,edit,create,show functions for your application when using &#8220;scaffold&#8221;. You can add articles, delete em, edit em or view all of em, from just 3 lines of code <img src='http://visionmasterdesigns.com/wordpress/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </li>
</ol>
<p>This is the power of RoR !! Although I wrote a very basic tutorial (since I had less time), this tutorial covers a little theory of RoR&#8217;s architecture, how to create an application using rails in development mode, how to create a scaffold and finally to rebuild the database using rake db:migrate.</p>
<p>So I hope you had fun, you can modify the view files in C:\ruby\bin\articlesystem\app\views\articles if you want to change the look of it.</p>
<p>You can make the application start directly from http://localhost:3000/ I`ll be showing that, in my next tutorial for RoR which includes basic link routing, some more extra features to our article system. In the next tutorial I`ll also discuss about the singular &amp; plural concepts in RoR which are very important. Till then Chow !</p>
<div class="donate">Found this tutorial really useful, you can click here to donate.</p>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input name="cmd" type="hidden" value="_donations" />
<input name="business" type="hidden" value="rowoot@gmail.com" />
<input name="item_name" type="hidden" value="MICHEAL BENEDICT ARUL" />
<input name="no_shipping" type="hidden" value="0" />
<input name="no_note" type="hidden" value="1" />
<input name="currency_code" type="hidden" value="USD" />
<input name="tax" type="hidden" value="0" />
<input name="lc" type="hidden" value="IN" />
<input name="bn" type="hidden" value="PP-DonationsBF" />
<input alt="PayPal - The safer, easier way to pay online!" name="submit" src="https://www.paypal.com/en_US/i/btn/btn_donate_SM.gif" type="image" />
<img src="https://www.paypal.com/en_US/i/scr/pixel.gif" border="0" alt="" width="1" height="1" /><br />
</form>
</div>
]]></content:encoded>
			<wfw:commentRss>http://visionmasterdesigns.com/tutorial-developing-your-first-ruby-on-rails-2-application/feed/</wfw:commentRss>
		<slash:comments>31</slash:comments>
		</item>
		<item>
		<title>Tutorial : Installing Ruby on Rails 2 in Windows Vista/XP</title>
		<link>http://visionmasterdesigns.com/tutorial-installing-ruby-on-rails-2-in-windows-vista-xp/</link>
		<comments>http://visionmasterdesigns.com/tutorial-installing-ruby-on-rails-2-in-windows-vista-xp/#comments</comments>
		<pubDate>Wed, 09 Jul 2008 12:09:19 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[Web Programming]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Vista]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[XP]]></category>

		<guid isPermaLink="false">http://blog.visionmasterdesigns.com/?p=35</guid>
		<description><![CDATA[Ruby on Rails is the next "in" thing. This tutorial teaches you step by step to set up Ruby on Rails environment on your local Computer.]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin: 0 0 0.6em 0.6em;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fvisionmasterdesigns.com%2Ftutorial-installing-ruby-on-rails-2-in-windows-vista-xp%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fvisionmasterdesigns.com%2Ftutorial-installing-ruby-on-rails-2-in-windows-vista-xp%2F&amp;source=rowoot&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p style="text-align: justify;">Greetings,</p>
<p style="text-align: justify;">Most of you must have heard of <span style="color: #000000;"><strong>&#8220;Ruby on Rails (RoR)&#8221;</strong></span>. It being touted as the next best thing (apart from php <img src='http://visionmasterdesigns.com/wordpress/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> ). Well lemme give you a lowdown of what Ruby on Rails is&#8230;</p>
<p style="text-align: justify;">I`ll try to explain the power of RoR in the simplest of words,</p>
<p>If PHP can do something after typing <strong>75</strong> lines of code, RoR can do the same thing in typing mearly <strong>3</strong> lines of code !!!!<br />
Thats as simple is it gets ! But then again, there is a catch to it, RoR is equally complex. So Today, I`ll just give you the basic idea of what Ruby on Rails is, and how to set up a developer environment for RoR, So next time we can directly start creating applications. woohoo !<br />
<span id="more-35"></span></p>
<p style="text-align: justify;">But Firstly the basics.<br />
If you are aware of the basics then <a href="#down">Click Here</a> to jump below, else read on.</p>
<p style="text-align: justify;">&#8220;<strong><span style="color: #000000;">Ruby</span></strong> is a dynamic, reflective, general purpose object-oriented programming language that combines syntax inspired by Perl with Smalltalk-like features. Ruby was initially developed and designed by Yukihiro &#8220;Matz&#8221; Matsumoto.&#8221;</p>
<ul style="text-align: justify;">
<li> Ruby is very similar to our native object-oriented programming languages (eg: C++,Java).</li>
<li>You can define variables using &#8216;@&#8217; symbol.</li>
<li>You can define functions, more commonly known as methods using
<pre lang="ruby">def method_name
....
end</pre>
</li>
</ul>
<p style="text-align: justify;">&#8220;<strong>Ruby on Rails</strong> is framework developed particularly for web applications. The framework is coded using Ruby. It basically makes our lives easier by generating code automatically on execution of a single piece of code.</p>
<ul style="text-align: justify;">
<li>It uses the MVC Architecture. (Model-View-Controller, I`ll be explainin this in the next tutorial, which will be &#8216;Creating Your First RoR Application&#8217;)</li>
</ul>
<p style="text-align: justify;">I like to tell you that, its not easy deploying a RoR application (Thats right, its an application, not a script or a piece of code, but a combination of lots of directories &amp; files).<br />
Its not anything like the php scripts we upload to the server and run the script by pointing to the right address, there are various modes on how a RoR application is executed (Eg. developer, test, production).</p>
<p>Enough of the technical mumbo-jumbo, lets get down business.<a id="down" name="down"></a></p>
<p style="text-align: justify;">Pre-Requisites :</p>
<ol style="text-align: justify;">
<li>Webserver + MySQL installed</li>
<li><span style="color: #000000;"><strong>Ruby (1.8.6)</strong></span> : We need to install the basic ruby binaries and extensions to execute RoR applications.<br />
Download <a title="ruby186-26.exe" href="http://rubyforge.org/frs/download.php/29263/ruby186-26.exe">ruby186-26.exe</a></li>
</ol>
<p style="text-align: justify;">Basically you must have a normal php/mysql developer environment already installed, if not, you can refer to my earlier tutorial i.e<br />
<a href="http://www.visionmasterdesigns.com/blog/2008/07/tutorial-installing-apache-php-5-mysql-5-phpmyadmin-windows-vista-xp/">Tutorial : Installing Apache, PHP5, MySQL5, PhpMyAdmin 2.11 in Windows Vista/XP</a></p>
]]></content:encoded>
			<wfw:commentRss>http://visionmasterdesigns.com/tutorial-installing-ruby-on-rails-2-in-windows-vista-xp/feed/</wfw:commentRss>
		<slash:comments>23</slash:comments>
		</item>
	</channel>
</rss>
