<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-389300815933907074</id><updated>2024-10-24T09:11:17.515-07:00</updated><category term="Database"/><category term="PHP"/><category term="HTML/CSS/Javascript"/><category term="XML/XSLT/XHTML"/><title type='text'>Basics Blog</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://miprabuddini.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/389300815933907074/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://miprabuddini.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>test</name><uri>http://www.blogger.com/profile/01891251140325704448</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>15</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-389300815933907074.post-1411404316822700531</id><published>2014-09-24T00:29:00.000-07:00</published><updated>2014-09-24T00:29:08.072-07:00</updated><title type='text'>calling different action from a yii form</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&amp;lt;?php $form=$this-&amp;gt;beginWidget(&#39;CActiveForm&#39;, array(&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&#39;id&#39;=&amp;gt;&#39;rep-data-models-form&#39;,&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&#39;action&#39; =&amp;gt; Yii::app()-&amp;gt;createUrl(&#39;reports/repColumns/create&#39;),&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&#39;enableAjaxValidation&#39;=&amp;gt;true,&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&#39;htmlOptions&#39; =&amp;gt; array(&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;enctype&#39; =&amp;gt; &#39;multipart/form-data&#39;,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ),&lt;br /&gt;
));&lt;br /&gt;
&lt;br /&gt;
?&amp;gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://miprabuddini.blogspot.com/feeds/1411404316822700531/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://miprabuddini.blogspot.com/2014/09/calling-different-action-from-yii-form.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/389300815933907074/posts/default/1411404316822700531'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/389300815933907074/posts/default/1411404316822700531'/><link rel='alternate' type='text/html' href='http://miprabuddini.blogspot.com/2014/09/calling-different-action-from-yii-form.html' title='calling different action from a yii form'/><author><name>test</name><uri>http://www.blogger.com/profile/01891251140325704448</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-389300815933907074.post-340722611161681893</id><published>2014-07-29T11:11:00.002-07:00</published><updated>2014-07-29T11:11:58.800-07:00</updated><title type='text'>Relationships in Yii</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;ul style=&quot;background-color: white; background-image: initial; background-repeat: initial; border: 0px; color: #222222; font-family: arial; font-size: 14px; line-height: 21px; list-style-position: initial; margin: 0px 0px 20px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;li style=&quot;background-color: transparent; background-image: initial; background-repeat: initial; border: 0px; font-family: Arial, sans-serif; font-size: 14px; margin: 0px 0px 0px 30px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;div style=&quot;background: transparent; border: 0px; font-size: 14px; margin-bottom: 0.2em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;code style=&quot;background: transparent; border-bottom-color: rgb(204, 204, 204); border-bottom-style: dotted; border-width: 0px 0px 1px; font-family: Menlo, Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 14px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;BELONGS_TO&lt;/code&gt;: e.g.&amp;nbsp;&lt;code style=&quot;background: transparent; border-bottom-color: rgb(204, 204, 204); border-bottom-style: dotted; border-width: 0px 0px 1px; font-family: Menlo, Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 14px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Student&amp;nbsp;&lt;/code&gt;belongs to&amp;nbsp;&lt;code style=&quot;background: transparent; border-bottom-color: rgb(204, 204, 204); border-bottom-style: dotted; border-width: 0px 0px 1px; font-family: Menlo, Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 14px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;School&lt;/code&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; background-image: initial; background-repeat: initial; border: 0px; font-family: Arial, sans-serif; font-size: 14px; margin: 0px 0px 0px 30px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;div style=&quot;background: transparent; border: 0px; font-size: 14px; margin-bottom: 0.2em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;code style=&quot;background: transparent; border-bottom-color: rgb(204, 204, 204); border-bottom-style: dotted; border-width: 0px 0px 1px; font-family: Menlo, Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 14px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;HAS_MANY&lt;/code&gt;: e.g.&amp;nbsp;&lt;code style=&quot;background: transparent; border-bottom-color: rgb(204, 204, 204); border-bottom-style: dotted; border-width: 0px 0px 1px; font-family: Menlo, Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 14px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;School&lt;/code&gt;&amp;nbsp;has many&amp;nbsp;&lt;code style=&quot;background: transparent; border-bottom-color: rgb(204, 204, 204); border-bottom-style: dotted; border-width: 0px 0px 1px; font-family: Menlo, Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 14px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Student&lt;/code&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; background-image: initial; background-repeat: initial; border: 0px; font-family: Arial, sans-serif; font-size: 14px; margin: 0px 0px 0px 30px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;div style=&quot;background: transparent; border: 0px; font-size: 14px; margin-bottom: 0.2em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;code style=&quot;background: transparent; border-bottom-color: rgb(204, 204, 204); border-bottom-style: dotted; border-width: 0px 0px 1px; font-family: Menlo, Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 14px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;HAS_ONE&lt;/code&gt;:&amp;nbsp;e.g.&amp;nbsp;&lt;span style=&quot;font-family: Menlo, Consolas, &#39;Courier New&#39;, Courier, mono;&quot;&gt;Student&amp;nbsp;&lt;/span&gt;has at most one&amp;nbsp;&lt;code style=&quot;background: transparent; border-bottom-color: rgb(204, 204, 204); border-bottom-style: dotted; border-width: 0px 0px 1px; font-family: Menlo, Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 14px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;School&lt;/code&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; background-image: initial; background-repeat: initial; border: 0px; font-size: 14px; margin: 0px 0px 0px 30px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;div style=&quot;background-color: transparent; background-image: initial; background-repeat: initial; border: 0px; font-size: 14px; margin-bottom: 0.2em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;code style=&quot;background-color: transparent; background-image: initial; background-repeat: initial; border-bottom-color: rgb(204, 204, 204); border-bottom-style: dotted; border-width: 0px 0px 1px; font-family: Menlo, Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 14px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;MANY_MANY&lt;/code&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;: e.g.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Menlo, Consolas, &#39;Courier New&#39;, Courier, mono;&quot;&gt;Student&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;belongs to many&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Menlo, Consolas, Courier New, Courier, mono;&quot;&gt;Teacher&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;and&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;&lt;span style=&quot;font-family: Menlo, Consolas, &#39;Courier New&#39;, Courier, mono;&quot;&gt;Teacher&amp;nbsp;&lt;/span&gt;has many&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;background-color: transparent; background-image: initial; background-repeat: initial; border-bottom-color: rgb(204, 204, 204); border-bottom-style: dotted; border-width: 0px 0px 1px; font-family: Menlo, Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 14px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Student&lt;/code&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;.&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;div class=&quot;gmail_default&quot; style=&quot;color: #222222; font-family: arial; font-size: small;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &#39;comic sans ms&#39;, sans-serif;&quot;&gt;​​&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: comic sans ms, sans-serif;&quot;&gt;class Student extends CActiveRecord&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;gmail_default&quot; style=&quot;color: #222222; font-family: arial; font-size: small;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: comic sans ms, sans-serif;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;gmail_default&quot; style=&quot;color: #222222; font-family: arial; font-size: small;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: comic sans ms, sans-serif;&quot;&gt;&amp;nbsp;&lt;span class=&quot;&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;public function relations()&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;gmail_default&quot; style=&quot;color: #222222; font-family: arial; font-size: small;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: comic sans ms, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class=&quot;&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;gmail_default&quot; style=&quot;color: #222222; font-family: arial; font-size: small;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: comic sans ms, sans-serif;&quot;&gt;&lt;span class=&quot;&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;return array(&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;gmail_default&quot; style=&quot;color: #222222; font-family: arial; font-size: small;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: comic sans ms, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class=&quot;&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&#39;school&#39;=&amp;gt;array(self::BELONGS_TO, &#39;School&#39;, &#39;school_id&#39;),&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;gmail_default&quot; style=&quot;color: #222222; font-family: arial; font-size: small;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: comic sans ms, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class=&quot;&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&#39;teachers&#39;=&amp;gt;array(self::MANY_MANY, &#39;Teacher&#39;,&#39;tbl_student_teacher(student_id, teacher_id)&#39;),&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;gmail_default&quot; style=&quot;color: #222222; font-family: arial; font-size: small;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: comic sans ms, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class=&quot;&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;gmail_default&quot; style=&quot;color: #222222; font-family: arial; font-size: small;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: comic sans ms, sans-serif;&quot;&gt;&lt;span class=&quot;&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;gmail_default&quot; style=&quot;color: #222222; font-family: arial; font-size: small;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: comic sans ms, sans-serif;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;gmail_default&quot; style=&quot;color: #222222; font-family: arial; font-size: small;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: comic sans ms, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;gmail_default&quot; style=&quot;font-family: arial; font-size: small;&quot;&gt;
&lt;div class=&quot;gmail_default&quot; style=&quot;background-color: white;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;class School extends CActiveRecord&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;gmail_default&quot; style=&quot;background-color: white;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;gmail_default&quot; style=&quot;background-color: white;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; ......&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;gmail_default&quot; style=&quot;background-color: white;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;gmail_default&quot; style=&quot;background-color: white;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; public function relations()&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;gmail_default&quot; style=&quot;background-color: white;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;gmail_default&quot; style=&quot;background-color: white;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return array(&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;gmail_default&quot; style=&quot;background-color: white;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;students&#39;=&amp;gt;array(self::HAS_MANY, &#39;Student&#39;, &#39;school_id&#39;),&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;gmail_default&quot; style=&quot;background-color: white;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;teacher&#39;=&amp;gt;array(self::HAS_ONE, &#39;Teacher&#39;, &#39;school_id&#39;),&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;gmail_default&quot; style=&quot;background-color: white;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; );&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;gmail_default&quot; style=&quot;background-color: white;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;gmail_default&quot; style=&quot;background-color: white;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: blue; font-family: comic sans ms, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://miprabuddini.blogspot.com/feeds/340722611161681893/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://miprabuddini.blogspot.com/2014/07/relationships-in-yii.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/389300815933907074/posts/default/340722611161681893'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/389300815933907074/posts/default/340722611161681893'/><link rel='alternate' type='text/html' href='http://miprabuddini.blogspot.com/2014/07/relationships-in-yii.html' title='Relationships in Yii'/><author><name>test</name><uri>http://www.blogger.com/profile/01891251140325704448</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-389300815933907074.post-252949205351502229</id><published>2014-07-29T10:53:00.000-07:00</published><updated>2014-07-29T10:53:01.763-07:00</updated><title type='text'>FindAll() in Yii</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;gmail_default&quot; style=&quot;background-color: white; color: blue; font-family: &#39;comic sans ms&#39;, sans-serif; font-size: 13.333333969116211px;&quot;&gt;
&lt;div class=&quot;gmail_default&quot;&gt;
$models = Vehicle::model()-&amp;gt;&lt;span class=&quot;il&quot; style=&quot;background: rgb(255, 255, 204); color: #222222;&quot;&gt;findAll&lt;/span&gt;(&lt;span style=&quot;font-size: 13.333333969116211px;&quot;&gt;&amp;nbsp;array(&#39;order&#39; =&amp;gt; &#39;vehicle_no&#39;));&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;gmail_default&quot;&gt;
&lt;span style=&quot;font-size: 13.333333969116211px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;gmail_default&quot;&gt;
&lt;u&gt;&lt;b&gt;FindAll with Where clause = condition&lt;/b&gt;&lt;/u&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: arial, sans-serif; font-size: 13.333333969116211px;&quot;&gt;
&lt;div class=&quot;gmail_default&quot; style=&quot;color: blue; font-family: &#39;comic sans ms&#39;, sans-serif;&quot;&gt;
​MainMenu::model() -&amp;gt;&amp;nbsp;&lt;span class=&quot;il&quot; style=&quot;background: rgb(255, 255, 204); color: #222222;&quot;&gt;findAll&lt;/span&gt;(array(&quot;condition&quot;=&amp;gt;&quot;&lt;wbr&gt;&lt;/wbr&gt;res_id = &amp;nbsp;$res_id&quot;,&quot;order&quot;=&amp;gt;&quot;name&quot;));​&lt;/div&gt;
&lt;div class=&quot;gmail_default&quot; style=&quot;color: blue; font-family: &#39;comic sans ms&#39;, sans-serif;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;gmail_default&quot; style=&quot;color: blue; font-family: &#39;comic sans ms&#39;, sans-serif;&quot;&gt;
&lt;div class=&quot;gmail_default&quot; style=&quot;font-size: small;&quot;&gt;
&lt;u style=&quot;font-size: 13.63636302947998px;&quot;&gt;&lt;b&gt;FindAll with Where clause Like condition&lt;/b&gt;&lt;/u&gt;&lt;/div&gt;
&lt;div class=&quot;gmail_default&quot; style=&quot;font-size: small;&quot;&gt;
$Staff= CHtml::listData(AuthAssignment::model() -&amp;gt; findAll(&#39;itemname LIKE :Staff&#39;,array(&#39;:Staff&#39; =&amp;gt; &quot;%Staff%&quot;)), &#39;userid&#39;, &#39;userid&#39;);&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;gmail_default&quot; style=&quot;color: blue; font-family: &#39;comic sans ms&#39;, sans-serif;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;gmail_default&quot; style=&quot;font-family: &#39;comic sans ms&#39;, sans-serif;&quot;&gt;
&lt;div class=&quot;gmail_default&quot; style=&quot;font-size: small;&quot;&gt;
&lt;div class=&quot;gmail_default&quot; style=&quot;color: blue;&quot;&gt;
&lt;b&gt;&lt;u&gt;Joining Two tables&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;gmail_default&quot; style=&quot;color: blue;&quot;&gt;
$criteria=new CDbCriteria;&lt;/div&gt;
&lt;div class=&quot;gmail_default&quot; style=&quot;color: blue;&quot;&gt;
$criteria-&amp;gt;select = &#39;t.userid,users.username&#39;;&lt;/div&gt;
&lt;div class=&quot;gmail_default&quot; style=&quot;color: blue;&quot;&gt;
$criteria -&amp;gt; join = &#39;JOIN &amp;nbsp;users on userid= users.id&#39;;&lt;/div&gt;
&lt;div class=&quot;gmail_default&quot; style=&quot;color: blue;&quot;&gt;
$criteria-&amp;gt;condition = &#39;itemname LIKE :Staff OR itemname LIKE :Admin OR itemname LIKE :Cashier&#39;;&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;gmail_default&quot; style=&quot;color: blue;&quot;&gt;
$criteria-&amp;gt;params &amp;nbsp; &amp;nbsp;= array(&#39;:Staff&#39;=&amp;gt;&#39;%Staff%&#39;,&#39;:Admin&#39;=&amp;gt;&#39;%Admin%&#39;,&#39;:Cashier&#39;=&amp;gt;&#39;%Cashier%&#39;);&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;gmail_default&quot; style=&quot;color: blue;&quot;&gt;
$criteria-&amp;gt;order = &#39;username DESC,userid DESC&#39;;&lt;/div&gt;
&lt;div class=&quot;gmail_default&quot;&gt;
&lt;span style=&quot;color: yellow;&quot;&gt;$Staff = AuthAssignment::model()-&amp;gt;findAll($criteria);&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;gmail_default&quot; style=&quot;color: blue;&quot;&gt;
$StaffList= CHtml::listData($Staff, &#39;userid&#39;, &#39;username&#39;);&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: arial; font-size: small;&quot;&gt;
&lt;div class=&quot;gmail_default&quot; style=&quot;color: blue; font-family: &#39;comic sans ms&#39;, sans-serif;&quot;&gt;
​echo $form-&amp;gt;dropDownList($model,&#39;emp_id&#39;,$StaffList);​&lt;/div&gt;
&lt;div class=&quot;gmail_default&quot; style=&quot;color: blue; font-family: &#39;comic sans ms&#39;, sans-serif;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;gmail_default&quot; style=&quot;color: blue; font-family: &#39;comic sans ms&#39;, sans-serif;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;gmail_default&quot; style=&quot;color: blue; font-family: &#39;comic sans ms&#39;, sans-serif;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;gmail_default&quot; style=&quot;color: blue; font-family: &#39;comic sans ms&#39;, sans-serif;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://miprabuddini.blogspot.com/feeds/252949205351502229/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://miprabuddini.blogspot.com/2014/07/findall-in-yii.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/389300815933907074/posts/default/252949205351502229'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/389300815933907074/posts/default/252949205351502229'/><link rel='alternate' type='text/html' href='http://miprabuddini.blogspot.com/2014/07/findall-in-yii.html' title='FindAll() in Yii'/><author><name>test</name><uri>http://www.blogger.com/profile/01891251140325704448</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-389300815933907074.post-6500939142674750134</id><published>2014-07-17T06:14:00.001-07:00</published><updated>2014-07-17T06:14:15.307-07:00</updated><title type='text'>Insert Update with createCommand in yii</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
public function assignVehicle($driver_id=null,$vehicle_id=null)&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;$sql = &quot;UPDATE `drivers` SET `vehical_id`=$vehicle_id WHERE id=:driver_id&quot;;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;$parameters = array(&quot;:driver_id&quot;=&amp;gt;$driver_id);&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;Yii::app()-&amp;gt;db-&amp;gt;createCommand($sql)-&amp;gt;execute($parameters);&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;br /&gt;
&lt;br /&gt;
public function insertCharges($area_id=null,$charge=null){&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;$sql = &quot;insert into delivery_charge (`area_id`,`charge`) values (:area_id,:charge)&quot;;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;$parameters = array(&quot;:area_id&quot;=&amp;gt;$area_id,&quot;:charge&quot;=&amp;gt;$charge);&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;Yii::app()-&amp;gt;db-&amp;gt;createCommand($sql)-&amp;gt;execute($parameters);&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://miprabuddini.blogspot.com/feeds/6500939142674750134/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://miprabuddini.blogspot.com/2014/07/insert-update-with-createcommand-in-yii.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/389300815933907074/posts/default/6500939142674750134'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/389300815933907074/posts/default/6500939142674750134'/><link rel='alternate' type='text/html' href='http://miprabuddini.blogspot.com/2014/07/insert-update-with-createcommand-in-yii.html' title='Insert Update with createCommand in yii'/><author><name>test</name><uri>http://www.blogger.com/profile/01891251140325704448</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-389300815933907074.post-5820082984615230550</id><published>2014-07-17T01:06:00.000-07:00</published><updated>2014-07-17T01:06:20.655-07:00</updated><title type='text'>Install CakePHP</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
We need,&lt;br /&gt;
&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;A web server (Eg:Apache)&lt;/li&gt;
&lt;li&gt;PHP &amp;nbsp;5.2.8 or greater version&lt;/li&gt;
&lt;li&gt;A database server (Eg: MySQL)&lt;/li&gt;
&lt;li&gt;Enabled pdo_mysql in PHP configurations&lt;/li&gt;
&lt;li&gt;Basic PHP Knowledge (Object Oriented Programming, MVC Programming Pattern)&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
Download CakePHP (&lt;a href=&quot;http://cakephp.org/&quot;&gt;http://cakephp.org/&lt;/a&gt;)&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;
Once you download CakePHP ZIP folder,extract files and rename the folder as cakephp or whatever….&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
Put this folder in your document root. I’m using WAMP Server. So my document root is www.&lt;/div&gt;
&lt;div&gt;
Then access this cakephp folder through your browser.&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPTggyONKe5jilTYM7zfUOH8yCzdPdIi4U4CRMtb3SwuHjpTwtsv7NOhX6plGd6La7yOjZ9FO1okSffgbZtKGdeoWynTWC3hY6uLdjTutR_fbwpyWBOaXD1wMBem0iEN_MrkzgaJNvP2A/s1600/cake.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPTggyONKe5jilTYM7zfUOH8yCzdPdIi4U4CRMtb3SwuHjpTwtsv7NOhX6plGd6La7yOjZ9FO1okSffgbZtKGdeoWynTWC3hY6uLdjTutR_fbwpyWBOaXD1wMBem0iEN_MrkzgaJNvP2A/s640/cake.png&quot; height=&quot;284&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
Figure 1 : Browser Display&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
In the first red line it says to change the value of &#39;Security.salt&#39;.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&quot;Notice (1024): Please change the value of &#39;Security.salt&#39; in APP/Config/core.php to a salt value specific to your application. [CORE\Cake\Utility\Debugger.php, line 849]&quot;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Open &quot;/app/Config/core.php&quot; and change the following code&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;color: purple;&quot;&gt;Configure::write(&#39;Security.salt&#39;, &#39;DYhG93b0qyJfIxfs2guVoUubWwvniR2G0FgaC9mi&#39;);&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
to&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;color: purple;&quot;&gt;Configure::write(&#39;Security.salt&#39;, &#39;pl345e-P45s_7h3*S@l7!&#39;);&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
and refresh the browser.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Now you will see that first red line will disappear.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Second red line it says to change the value of &quot;Security.cipherSeed&quot;.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&quot;Notice (1024): Please change the value of &#39;Security.cipherSeed&#39; in APP/Config/core.php to a numeric (digits only) seed value specific to your application. [CORE\Cake\Utility\Debugger.php, line 853]&quot;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
Open &quot;/app/Config/core.php&quot; and change the following code&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: purple;&quot;&gt;Configure::write(&#39;Security.cipherSeed&#39;, &#39;76859309657453542496749683645&#39;);&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
to&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: purple;&quot;&gt;Configure::write(&#39;Security.cipherSeed&#39;, &#39;7485712659625147843639846751&#39;);&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
and refresh the browser.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Now you will see that second red line will disappear.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
In yellow line it says to configure the database settings.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&quot;Your database configuration file is NOT present.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Rename APP/Config/database.php.default to APP/Config/database.php&quot;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Open &quot;/app/Config/database.php.default&quot;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
and change the following code&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: purple;&quot;&gt;public $default = array(&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: purple;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&#39;datasource&#39; =&amp;gt; &#39;Database/Mysql&#39;,&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: purple;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&#39;persistent&#39; =&amp;gt; false,&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: purple;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&#39;host&#39; =&amp;gt; &#39;localhost&#39;,&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: purple;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&#39;login&#39; =&amp;gt; &#39;user&#39;,&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: purple;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&#39;password&#39; =&amp;gt; &#39;password&#39;,&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: purple;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&#39;database&#39; =&amp;gt; &#39;database_name&#39;,&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: purple;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&#39;prefix&#39; =&amp;gt; &#39;&#39;,&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: purple;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;//&#39;encoding&#39; =&amp;gt; &#39;utf8&#39;,&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: purple;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
Insert your hostname for host, database username for login. database password for password and database name for database&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://miprabuddini.blogspot.com/feeds/5820082984615230550/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://miprabuddini.blogspot.com/2014/07/install-cakephp.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/389300815933907074/posts/default/5820082984615230550'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/389300815933907074/posts/default/5820082984615230550'/><link rel='alternate' type='text/html' href='http://miprabuddini.blogspot.com/2014/07/install-cakephp.html' title='Install CakePHP'/><author><name>test</name><uri>http://www.blogger.com/profile/01891251140325704448</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPTggyONKe5jilTYM7zfUOH8yCzdPdIi4U4CRMtb3SwuHjpTwtsv7NOhX6plGd6La7yOjZ9FO1okSffgbZtKGdeoWynTWC3hY6uLdjTutR_fbwpyWBOaXD1wMBem0iEN_MrkzgaJNvP2A/s72-c/cake.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-389300815933907074.post-7231315014614144080</id><published>2014-07-17T00:45:00.003-07:00</published><updated>2014-07-17T00:45:58.319-07:00</updated><title type='text'>Uploading image/file by creating a directory on the server in yii</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
$model-&amp;gt;attributes=$_POST[&#39;Vehicle&#39;];&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;$model-&amp;gt;tax_document=CUploadedFile::getInstance($model,&#39;tax_document&#39;);&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;$model-&amp;gt;mot_document=CUploadedFile::getInstance($model,&#39;mot_document&#39;);&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;$model-&amp;gt;image=CUploadedFile::getInstance($model,&#39;image&#39;);&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;$model-&amp;gt;save();&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;if($model-&amp;gt;save())&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; &amp;nbsp; &amp;nbsp;$path=&quot;document/vechicle/&quot;;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;if(!file_exists(&#39;document/vechicle/&#39;.$model-&amp;gt;id)){&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;mkdir(&#39;document/vechicle/&#39;.$model-&amp;gt;id, 0777,true);&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;chmod(&#39;document/vechicle/&#39;.$model-&amp;gt;id, 0777);&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;}&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;if ($model-&amp;gt;tax_document){&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;$model-&amp;gt;tax_document-&amp;gt;saveAs(&#39;document/vechicle/&#39;.$model-&amp;gt;id.&#39;/taxt&#39;.$model-&amp;gt;tax_document);&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;}&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;if ($model-&amp;gt;mot_document){&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;$model-&amp;gt;mot_document-&amp;gt;saveAs(&#39;document/vechicle/&#39;.$model-&amp;gt;id.&#39;/mot&#39;.$model-&amp;gt;mot_document);&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;}&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;if ($model-&amp;gt;image){&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;$model-&amp;gt;image-&amp;gt;saveAs(&#39;document/vechicle/&#39;.$model-&amp;gt;id.&#39;/img&#39;.$model-&amp;gt;image);&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;}&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;$this-&amp;gt;redirect(array(&#39;view&#39;,&#39;id&#39;=&amp;gt;$model-&amp;gt;id));&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://miprabuddini.blogspot.com/feeds/7231315014614144080/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://miprabuddini.blogspot.com/2014/07/uploading-imagefile-by-creating.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/389300815933907074/posts/default/7231315014614144080'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/389300815933907074/posts/default/7231315014614144080'/><link rel='alternate' type='text/html' href='http://miprabuddini.blogspot.com/2014/07/uploading-imagefile-by-creating.html' title='Uploading image/file by creating a directory on the server in yii'/><author><name>test</name><uri>http://www.blogger.com/profile/01891251140325704448</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-389300815933907074.post-2629583228534109580</id><published>2012-03-10T06:46:00.003-08:00</published><updated>2012-03-10T06:46:42.066-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="HTML/CSS/Javascript"/><title type='text'>How to Grow space when content grows in a web page</title><content type='html'>&lt;br /&gt;
&amp;lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&amp;gt;&lt;br /&gt;
&amp;lt;head&amp;gt;&lt;br /&gt;
&amp;lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot; /&amp;gt;&lt;br /&gt;
&amp;lt;title&amp;gt;Test CSS&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;style type=&quot;text/css&quot;&amp;gt;&lt;br /&gt;
.wrapper&lt;br /&gt;
{&lt;br /&gt;
position:relative;&lt;br /&gt;
top:0;&lt;br /&gt;
left:auto;&lt;br /&gt;
right:auto;&lt;br /&gt;
bottom:0;&lt;br /&gt;
background-color:#CCFFFF;&lt;br /&gt;
width:960px;&lt;br /&gt;
padding: 50px 50px 50px 50px;&lt;br /&gt;
}&lt;br /&gt;
.text&lt;br /&gt;
{&lt;br /&gt;
position:relative;&lt;br /&gt;
margin-left:0px;&lt;br /&gt;
margin-top:0px;&lt;br /&gt;
margin-bottom:auto;&lt;br /&gt;
background-color:#FF0000;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/style&amp;gt;&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&amp;lt;div id=&quot;wrapper&quot; class=&quot;wrapper&quot;&amp;gt;&lt;br /&gt;
&amp;lt;div id=&quot;text&quot; class=&quot;text&quot;&amp;gt;&lt;br /&gt;
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget eros libero. Fusce tempus quam sit amet erat mollis a fermentum nibh imperdiet. Fusce iaculis sapien in turpis aliquet porta. Donec tincidunt gravida tortor, vel dignissim augue convallis sit amet. Aliquam auctor ornare accumsan. Cras convallis elit tincidunt arcu semper egestas. Mauris interdum fringilla nisi. Cras a dapibus lectus. Praesent blandit ullamcorper ornare. Nam hendrerit sollicitudin urna non ultricies. Phasellus condimentum auctor risus, at accumsan tellus tempor vel. Nunc mattis eleifend dolor at adipiscing.Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget eros libero. Fusce tempus quam sit amet erat mollis a fermentum nibh imperdiet. Fusce iaculis sapien in turpis aliquet porta. Donec tincidunt gravida tortor, vel dignissim augue convallis sit amet. Aliquam auctor ornare accumsan. Cras convallis elit tincidunt arcu semper egestas. Mauris interdum fringilla nisi. Cras a dapibus lectus. Praesent blandit ullamcorper ornare. Nam hendrerit sollicitudin urna non ultricies. Phasellus condimentum auctor risus, at accumsan tellus tempor vel. Nunc mattis eleifend dolor at adipiscing.Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget eros libero. Fusce tempus quam sit amet erat mollis a fermentum nibh imperdiet. Fusce iaculis sapien in turpis aliquet porta. Donec tincidunt gravida tortor, vel dignissim augue convallis sit amet. Aliquam auctor ornare accumsan. Cras convallis elit tincidunt arcu semper egestas. Mauris interdum fringilla nisi. Cras a dapibus lectus. Praesent blandit ullamcorper ornare. Nam hendrerit sollicitudin urna non ultricies. Phasellus condimentum auctor risus, at accumsan tellus tempor vel. Nunc mattis eleifend dolor at adipiscing.Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget eros libero. Fusce tempus quam sit amet erat mollis a fermentum nibh imperdiet. Fusce iaculis sapien in turpis aliquet porta. Donec tincidunt gravida tortor, vel dignissim augue convallis sit amet. Aliquam auctor ornare accumsan. Cras convallis elit tincidunt arcu semper egestas. Mauris interdum fringilla nisi. Cras a dapibus lectus. Praesent blandit ullamcorper ornare. Nam hendrerit sollicitudin urna non ultricies. Phasellus condimentum auctor risus, at accumsan tellus tempor vel. Nunc mattis eleifend dolor at adipiscing.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div id=&quot;text2&quot; class=&quot;text2&quot;&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://miprabuddini.blogspot.com/feeds/2629583228534109580/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://miprabuddini.blogspot.com/2012/03/how-to-grow-space-when-content-grows-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/389300815933907074/posts/default/2629583228534109580'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/389300815933907074/posts/default/2629583228534109580'/><link rel='alternate' type='text/html' href='http://miprabuddini.blogspot.com/2012/03/how-to-grow-space-when-content-grows-in.html' title='How to Grow space when content grows in a web page'/><author><name>test</name><uri>http://www.blogger.com/profile/01891251140325704448</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-389300815933907074.post-4131897303324245044</id><published>2012-03-07T10:25:00.001-08:00</published><updated>2012-03-07T10:25:48.074-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><title type='text'>Rich Text Editor</title><content type='html'>addNews.php&lt;br /&gt;
&lt;br /&gt;
&amp;lt;body onLoad=&quot;Init()&quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&quot;row&quot;&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;div class=&quot;wrapper&quot;&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;div class=&quot;grid2&quot;&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;div class=&quot;boxcontainer2&quot;&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;center&amp;gt;&amp;lt;h3&amp;gt;ADD NEWS! &amp;lt;/h3&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;form name=&quot;addNews&quot; action=&quot;../controller/submit_controller.php&quot; method = &#39;post&#39; onsubmit=&quot;return validate_addNews()&quot; enctype=&quot;multipart/form-data&quot;&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;div class=&quot;box&quot;&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;input name=&quot;controller_type&quot; type=&quot;hidden&quot; value=&quot;news_controller&quot; /&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;h4&amp;gt;Title : &amp;lt;/h4&amp;gt;&amp;lt;input type = &#39;text&#39; name = &#39;title&#39; class=&#39;tb7&#39; value=&quot;&amp;lt;?php echo $news[&#39;title_nws&#39;];?&amp;gt;&quot;/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;table id=&quot;tblCtrls&quot; width=&quot;415px&quot; height=&quot;30px&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; bgcolor=&quot;#D6D3CE&quot;&amp;gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;tr&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;td class=&quot;tdClass&quot;&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;img alt=&quot;Bold&quot; class=&quot;butClass&quot; src=&quot;images/bold.gif&quot; onMouseOver=&quot;selOn(this)&quot; onMouseOut=&quot;selOff(this)&quot; onMouseDown=&quot;selDown(this)&quot; onMouseUp=&quot;selUp(this)&quot; onClick=&quot;doBold()&quot;&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;img alt=&quot;Italic&quot; class=&quot;butClass&quot; src=&quot;images/italic.gif&quot; onMouseOver=&quot;selOn(this)&quot; onMouseOut=&quot;selOff(this)&quot; onMouseDown=&quot;selDown(this)&quot; onMouseUp=&quot;selUp(this)&quot; onClick=&quot;doItalic()&quot;&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;img alt=&quot;Underline&quot; class=&quot;butClass&quot; src=&quot;images/underline.gif&quot; onMouseOver=&quot;selOn(this)&quot; onMouseOut=&quot;selOff(this)&quot; onMouseDown=&quot;selDown(this)&quot; onMouseUp=&quot;selUp(this)&quot; onClick=&quot;doUnderline()&quot;&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;img alt=&quot;Left&quot; class=&quot;butClass&quot; src=&quot;images/left.gif&quot; onMouseOver=&quot;selOn(this)&quot; onMouseOut=&quot;selOff(this)&quot; onMouseDown=&quot;selDown(this)&quot; onMouseUp=&quot;selUp(this)&quot; onClick=&quot;doLeft()&quot;&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;img alt=&quot;Center&quot; class=&quot;butClass&quot; src=&quot;images/center.gif&quot; onMouseOver=&quot;selOn(this)&quot; onMouseOut=&quot;selOff(this)&quot; onMouseDown=&quot;selDown(this)&quot; onMouseUp=&quot;selUp(this)&quot; onClick=&quot;doCenter()&quot;&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;img alt=&quot;Right&quot; class=&quot;butClass&quot; src=&quot;images/right.gif&quot; onMouseOver=&quot;selOn(this)&quot; onMouseOut=&quot;selOff(this)&quot; onMouseDown=&quot;selDown(this)&quot; onMouseUp=&quot;selUp(this)&quot; onClick=&quot;doRight()&quot;&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;      &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;img alt=&quot;Ordered List&quot; class=&quot;butClass&quot; src=&quot;images/ordlist.gif&quot; onMouseOver=&quot;selOn(this)&quot; onMouseOut=&quot;selOff(this)&quot; onMouseDown=&quot;selDown(this)&quot; onMouseUp=&quot;selUp(this)&quot; onClick=&quot;doOrdList()&quot;&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;img alt=&quot;Bulleted List&quot; class=&quot;butClass&quot; src=&quot;images/bullist.gif&quot; onMouseOver=&quot;selOn(this)&quot; onMouseOut=&quot;selOff(this)&quot; onMouseDown=&quot;selDown(this)&quot; onMouseUp=&quot;selUp(this)&quot; onClick=&quot;doBulList()&quot;&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;img alt=&quot;Text Color&quot; class=&quot;butClass&quot; src=&quot;images/forecol.gif&quot; onMouseOver=&quot;selOn(this)&quot; onMouseOut=&quot;selOff(this)&quot; onMouseDown=&quot;selDown(this)&quot; onMouseUp=&quot;selUp(this)&quot; onClick=&quot;doForeCol()&quot;&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;img alt=&quot;Background Color&quot; class=&quot;butClass&quot; src=&quot;images/bgcol.gif&quot; onMouseOver=&quot;selOn(this)&quot; onMouseOut=&quot;selOff(this)&quot; onMouseDown=&quot;selDown(this)&quot; onMouseUp=&quot;selUp(this)&quot; onClick=&quot;doBackCol()&quot;&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;img alt=&quot;Hyperlink&quot; class=&quot;butClass&quot; src=&quot;images/link.gif&quot; onMouseOver=&quot;selOn(this)&quot; onMouseOut=&quot;selOff(this)&quot; onMouseDown=&quot;selDown(this)&quot; onMouseUp=&quot;selUp(this)&quot; onClick=&quot;doLink()&quot;&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;img alt=&quot;Image&quot; class=&quot;butClass&quot; src=&quot;images/image.gif&quot; onMouseOver=&quot;selOn(this)&quot; onMouseOut=&quot;selOff(this)&quot; onMouseDown=&quot;selDown(this)&quot; onMouseUp=&quot;selUp(this)&quot; onClick=&quot;doImage()&quot;&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;lt;img alt=&quot;Horizontal Rule&quot; class=&quot;butClass&quot; src=&quot;images/rule.gif&quot; onMouseOver=&quot;selOn(this)&quot; onMouseOut=&quot;selOff(this)&quot; onMouseDown=&quot;selDown(this)&quot; onMouseUp=&quot;selUp(this)&quot; onClick=&quot;doRule()&quot;&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;iframe id=&quot;iView&quot; name=&quot;iView&quot; style=&quot;width: 415px; height:205px&quot; onMouseOut=&quot;content.value=iView.document.body.innerHTML ;&quot;&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/iframe&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;input type=&quot;hidden&quot; id=&quot;content&quot; name=&quot;content&quot;&amp;gt;&amp;lt;/textarea&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt; &amp;lt;table width=&quot;415px&quot; height=&quot;30px&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; bgcolor=&quot;#D6D3CE&quot;&amp;gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;tr&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;td class=&quot;tdClass&quot; colspan=&quot;1&quot; width=&quot;80%&quot;&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; &amp;nbsp;&amp;lt;select name=&quot;selFont&quot; onChange=&quot;doFont(this.options[this.selectedIndex].value)&quot;&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; &amp;nbsp; &amp;nbsp;&amp;lt;option value=&quot;&quot;&amp;gt;-- Font --&amp;lt;/option&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; &amp;nbsp; &amp;nbsp;&amp;lt;option value=&quot;Arial&quot;&amp;gt;Arial&amp;lt;/option&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; &amp;nbsp; &amp;nbsp;&amp;lt;option value=&quot;Courier&quot;&amp;gt;Courier&amp;lt;/option&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; &amp;nbsp; &amp;nbsp;&amp;lt;option value=&quot;Sans Serif&quot;&amp;gt;Sans Serif&amp;lt;/option&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; &amp;nbsp; &amp;nbsp;&amp;lt;option value=&quot;Tahoma&quot;&amp;gt;Tahoma&amp;lt;/option&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; &amp;nbsp; &amp;nbsp;&amp;lt;option value=&quot;Verdana&quot;&amp;gt;Verdana&amp;lt;/option&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; &amp;nbsp; &amp;nbsp;&amp;lt;option value=&quot;Wingdings&quot;&amp;gt;Wingdings&amp;lt;/option&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; &amp;nbsp;&amp;lt;/select&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; &amp;nbsp;&amp;lt;select name=&quot;selSize&quot; onChange=&quot;doSize(this.options[this.selectedIndex].value)&quot;&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; &amp;nbsp; &amp;nbsp;&amp;lt;option value=&quot;&quot;&amp;gt;-- Size --&amp;lt;/option&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; &amp;nbsp; &amp;nbsp;&amp;lt;option value=&quot;1&quot;&amp;gt;Very Small&amp;lt;/option&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; &amp;nbsp; &amp;nbsp;&amp;lt;option value=&quot;2&quot;&amp;gt;Small&amp;lt;/option&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; &amp;nbsp; &amp;nbsp;&amp;lt;option value=&quot;3&quot;&amp;gt;Medium&amp;lt;/option&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; &amp;nbsp; &amp;nbsp;&amp;lt;option value=&quot;4&quot;&amp;gt;Large&amp;lt;/option&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; &amp;nbsp; &amp;nbsp;&amp;lt;option value=&quot;5&quot;&amp;gt;Larger&amp;lt;/option&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; &amp;nbsp; &amp;nbsp;&amp;lt;option value=&quot;6&quot;&amp;gt;Very Large&amp;lt;/option&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; &amp;nbsp;&amp;lt;/select&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; &amp;nbsp;&amp;lt;select name=&quot;selHeading&quot; onChange=&quot;doHead(this.options[this.selectedIndex].value)&quot;&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; &amp;nbsp; &amp;nbsp;&amp;lt;option value=&quot;&quot;&amp;gt;-- Heading --&amp;lt;/option&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; &amp;nbsp; &amp;nbsp;&amp;lt;option value=&quot;Heading 1&quot;&amp;gt;H1&amp;lt;/option&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; &amp;nbsp; &amp;nbsp;&amp;lt;option value=&quot;Heading 2&quot;&amp;gt;H2&amp;lt;/option&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; &amp;nbsp; &amp;nbsp;&amp;lt;option value=&quot;Heading 3&quot;&amp;gt;H3&amp;lt;/option&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; &amp;nbsp; &amp;nbsp;&amp;lt;option value=&quot;Heading 4&quot;&amp;gt;H4&amp;lt;/option&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; &amp;nbsp; &amp;nbsp;&amp;lt;option value=&quot;Heading 5&quot;&amp;gt;H5&amp;lt;/option&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; &amp;nbsp; &amp;nbsp;&amp;lt;option value=&quot;Heading 6&quot;&amp;gt;H6&amp;lt;/option&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; &amp;nbsp;&amp;lt;/select&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;td class=&quot;tdClass&quot; colspan=&quot;1&quot; width=&quot;20%&quot; align=&quot;right&quot;&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; &amp;nbsp;&amp;lt;!--&amp;lt;img alt=&quot;Toggle Mode&quot; class=&quot;butClass&quot; src=&quot;mode.gif&quot; onMouseOver=&quot;selOn(this)&quot; onMouseOut=&quot;selOff(this)&quot; onMouseDown=&quot;selDown(this)&quot; onMouseUp=&quot;selUp(this)&quot; onClick=&quot;doToggleView()&quot;&amp;gt;--&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; &amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;!--&amp;lt;h4&amp;gt;Content : &amp;lt;/h4&amp;gt;--&amp;gt;&amp;lt;?php //echo $news[&#39;content_nws&#39;];?&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;input type = &#39;submit&#39; value = &#39;ADD!&#39; name=&#39;submit&#39;/&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/form&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/body&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
editor.js&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
var viewMode = 1; // WYSIWYG&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; function Init()&lt;br /&gt;
&amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; iView.document.designMode = &#39;On&#39;;&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&amp;nbsp; function selOn(ctrl)&lt;br /&gt;
&amp;nbsp; {&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;ctrl.style.borderColor = &#39;#000000&#39;;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;ctrl.style.backgroundColor = &#39;#B5BED6&#39;;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;ctrl.style.cursor = &#39;hand&#39;;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&amp;nbsp; function selOff(ctrl)&lt;br /&gt;
&amp;nbsp; {&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;ctrl.style.borderColor = &#39;#D6D3CE&#39;; &lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;ctrl.style.backgroundColor = &#39;#D6D3CE&#39;;&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&amp;nbsp; function selDown(ctrl)&lt;br /&gt;
&amp;nbsp; {&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;ctrl.style.backgroundColor = &#39;#8492B5&#39;;&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&amp;nbsp; function selUp(ctrl)&lt;br /&gt;
&amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; ctrl.style.backgroundColor = &#39;#B5BED6&#39;;&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&lt;br /&gt;
&amp;nbsp; function doBold()&lt;br /&gt;
&amp;nbsp; {&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;iView.document.execCommand(&#39;bold&#39;, false, null);&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; function doItalic()&lt;br /&gt;
&amp;nbsp; {&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;iView.document.execCommand(&#39;italic&#39;, false, null);&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; function doUnderline()&lt;br /&gt;
&amp;nbsp; {&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;iView.document.execCommand(&#39;underline&#39;, false, null);&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&amp;nbsp; function doLeft()&lt;br /&gt;
&amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; iView.document.execCommand(&#39;justifyleft&#39;, false, null);&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; function doCenter()&lt;br /&gt;
&amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; iView.document.execCommand(&#39;justifycenter&#39;, false, null);&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; function doRight()&lt;br /&gt;
&amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; iView.document.execCommand(&#39;justifyright&#39;, false, null);&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; function doOrdList()&lt;br /&gt;
&amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; iView.document.execCommand(&#39;insertorderedlist&#39;, false, null);&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; function doBulList()&lt;br /&gt;
&amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; iView.document.execCommand(&#39;insertunorderedlist&#39;, false, null);&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&amp;nbsp; function doForeCol()&lt;br /&gt;
&amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; var fCol = prompt(&#39;Enter foreground color&#39;, &#39;&#39;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; if(fCol != null)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; iView.document.execCommand(&#39;forecolor&#39;, false, fCol);&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; function doBackCol()&lt;br /&gt;
&amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; var bCol = prompt(&#39;Enter background color&#39;, &#39;&#39;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; if(bCol != null)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; iView.document.execCommand(&#39;backcolor&#39;, false, bCol);&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; function doLink()&lt;br /&gt;
&amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; iView.document.execCommand(&#39;createlink&#39;);&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&amp;nbsp; function doImage()&lt;br /&gt;
&amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; var imgSrc = prompt(&#39;Enter image location&#39;, &#39;&#39;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; if(imgSrc != null) &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;iView.document.execCommand(&#39;insertimage&#39;, false, imgSrc);&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&amp;nbsp; function doRule()&lt;br /&gt;
&amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; iView.document.execCommand(&#39;inserthorizontalrule&#39;, false, null);&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&amp;nbsp; function doFont(fName)&lt;br /&gt;
&amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; if(fName != &#39;&#39;)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; iView.document.execCommand(&#39;fontname&#39;, false, fName);&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&amp;nbsp; function doSize(fSize)&lt;br /&gt;
&amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; if(fSize != &#39;&#39;)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; iView.document.execCommand(&#39;fontsize&#39;, false, fSize);&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&amp;nbsp; function doHead(hType)&lt;br /&gt;
&amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; if(hType != &#39;&#39;)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; iView.document.execCommand(&#39;formatblock&#39;, false, hType); &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; doFont(selFont.options[selFont.selectedIndex].value);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&amp;nbsp; function doToggleView()&lt;br /&gt;
&amp;nbsp; { &lt;br /&gt;
&amp;nbsp; &amp;nbsp; if(viewMode == 1)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; iHTML = iView.document.body.innerHTML;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; iView.document.body.innerText = iHTML;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; // Hide all controls&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; tblCtrls.style.display = &#39;none&#39;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; selFont.style.display = &#39;none&#39;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; selSize.style.display = &#39;none&#39;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; selHeading.style.display = &#39;none&#39;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; iView.focus();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; viewMode = 2; // Code&lt;br /&gt;
&amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; else&lt;br /&gt;
&amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; iText = iView.document.body.innerText;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; iView.document.body.innerHTML = iText;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; // Show all controls&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; tblCtrls.style.display = &#39;inline&#39;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; selFont.style.display = &#39;inline&#39;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; selSize.style.display = &#39;inline&#39;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; selHeading.style.display = &#39;inline&#39;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; iView.focus();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; viewMode = 1; // WYSIWYG&lt;br /&gt;
&amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://miprabuddini.blogspot.com/feeds/4131897303324245044/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://miprabuddini.blogspot.com/2012/03/rich-text-editor.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/389300815933907074/posts/default/4131897303324245044'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/389300815933907074/posts/default/4131897303324245044'/><link rel='alternate' type='text/html' href='http://miprabuddini.blogspot.com/2012/03/rich-text-editor.html' title='Rich Text Editor'/><author><name>test</name><uri>http://www.blogger.com/profile/01891251140325704448</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-389300815933907074.post-3889883491143709786</id><published>2012-03-07T10:19:00.001-08:00</published><updated>2012-03-07T10:19:36.740-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Database"/><title type='text'>Average of multiple columns</title><content type='html'>Table name: `boss_bos`&lt;div&gt;
&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoTableGrid&quot; style=&quot;border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;&quot;&gt;
 &lt;tbody&gt;
&lt;tr&gt;
  &lt;td style=&quot;border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 59.4pt;&quot; valign=&quot;top&quot; width=&quot;79&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;a href=&quot;http://localhost/phpmyadmin/sql.php?db=bossscope_boss&amp;amp;table=boss_bos&amp;amp;sql_query=SELECT+%2A+FROM+%60boss_bos%60+ORDER+BY+%60boss_bos%60.%60rate1_bos%60+ASC&amp;amp;token=f7c331282b23b5ce7dfd02967b07c780&quot; title=&quot;Sort&quot;&gt;rate1_bos&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-left: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 63.0pt;&quot; valign=&quot;top&quot; width=&quot;84&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;a href=&quot;http://localhost/phpmyadmin/sql.php?db=bossscope_boss&amp;amp;table=boss_bos&amp;amp;sql_query=SELECT+%2A+FROM+%60boss_bos%60+ORDER+BY+%60boss_bos%60.%60rate2_bos%60+ASC&amp;amp;token=f7c331282b23b5ce7dfd02967b07c780&quot; title=&quot;Sort&quot;&gt;rate2_bos&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-left: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 58.5pt;&quot; valign=&quot;top&quot; width=&quot;78&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;a href=&quot;http://localhost/phpmyadmin/sql.php?db=bossscope_boss&amp;amp;table=boss_bos&amp;amp;sql_query=SELECT+%2A+FROM+%60boss_bos%60+ORDER+BY+%60boss_bos%60.%60rate3_bos%60+ASC&amp;amp;token=f7c331282b23b5ce7dfd02967b07c780&quot; title=&quot;Sort&quot;&gt;rate3_bos&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-left: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 58.5pt;&quot; valign=&quot;top&quot; width=&quot;78&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;a href=&quot;http://localhost/phpmyadmin/sql.php?db=bossscope_boss&amp;amp;table=boss_bos&amp;amp;sql_query=SELECT+%2A+FROM+%60boss_bos%60+ORDER+BY+%60boss_bos%60.%60rate4_bos%60+ASC&amp;amp;token=f7c331282b23b5ce7dfd02967b07c780&quot; title=&quot;Sort&quot;&gt;rate4_bos&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-left: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 58.5pt;&quot; valign=&quot;top&quot; width=&quot;78&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;a href=&quot;http://localhost/phpmyadmin/sql.php?db=bossscope_boss&amp;amp;table=boss_bos&amp;amp;sql_query=SELECT+%2A+FROM+%60boss_bos%60+ORDER+BY+%60boss_bos%60.%60rate5_bos%60+ASC&amp;amp;token=f7c331282b23b5ce7dfd02967b07c780&quot; title=&quot;Sort&quot;&gt;rate5_bos&lt;/a&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 59.4pt;&quot; valign=&quot;top&quot; width=&quot;79&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
2&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 63.0pt;&quot; valign=&quot;top&quot; width=&quot;84&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
4&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 58.5pt;&quot; valign=&quot;top&quot; width=&quot;78&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
6&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 58.5pt;&quot; valign=&quot;top&quot; width=&quot;78&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
8&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 58.5pt;&quot; valign=&quot;top&quot; width=&quot;78&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
10&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 59.4pt;&quot; valign=&quot;top&quot; width=&quot;79&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
0&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 63.0pt;&quot; valign=&quot;top&quot; width=&quot;84&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
0&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 58.5pt;&quot; valign=&quot;top&quot; width=&quot;78&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
3&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 58.5pt;&quot; valign=&quot;top&quot; width=&quot;78&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
0&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 58.5pt;&quot; valign=&quot;top&quot; width=&quot;78&quot;&gt;
  &lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
0&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div&gt;
&lt;br /&gt;To take average&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
SELECT *,(&lt;br /&gt;
`rate1_bos` + `rate2_bos` + `rate3_bos` + `rate4_bos` + `rate5_bos`&lt;br /&gt;
) /5 AS Average&lt;br /&gt;
FROM `boss_bos`&lt;br /&gt;
ORDER BY Average DESC;&lt;br /&gt;
&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://miprabuddini.blogspot.com/feeds/3889883491143709786/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://miprabuddini.blogspot.com/2012/03/average-of-multiple-columns.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/389300815933907074/posts/default/3889883491143709786'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/389300815933907074/posts/default/3889883491143709786'/><link rel='alternate' type='text/html' href='http://miprabuddini.blogspot.com/2012/03/average-of-multiple-columns.html' title='Average of multiple columns'/><author><name>test</name><uri>http://www.blogger.com/profile/01891251140325704448</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-389300815933907074.post-1385521112822660152</id><published>2012-02-24T08:16:00.000-08:00</published><updated>2012-02-24T08:24:45.570-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="XML/XSLT/XHTML"/><title type='text'>Transform XML documents into XHTML with XSLT files</title><content type='html'>&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;test.html&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;form action = &#39;xml.php&#39; method = &#39;post&#39;&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;h4&amp;gt;Search : &amp;lt;/h4&amp;gt;&amp;lt;input type = &#39;text&#39; name = &#39;search&#39; class=&#39;tb7&#39;/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;lt;input type = &#39;submit&#39; value = &#39;Search&#39; name=&#39;submit&#39;/&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/form&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;xml.php&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;lt;?php&lt;br /&gt;header(&#39;Content-type: text/xml&#39;); &lt;br /&gt;include_once(&#39;config.php&#39;);&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(isset($_POST[&#39;submit&#39;]))&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $search=$_POST[&#39;search&#39;];&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $query = &quot;SELECT * FROM `member_details` where `Keywords` LIKE &#39;%$search%&#39;&quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $result = mysql_query($query);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if(!$result )&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; die(&#39;Could not get data: &#39; . mysql_error());&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $xml_output = &quot;&amp;lt;?xml version=\&quot;1.0\&quot; encoding=\&quot;ISO-8859-1\&quot;?&amp;gt; \n&quot;; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $xml_output .= &quot;&amp;lt;?xml-stylesheet type=\&quot;text/xsl\&quot; href=\&quot;xslt1.xsl\&quot;?&amp;gt;&quot;; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $xml_output .= &quot;&amp;lt;dataset&amp;gt;\n&quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; for($x = 0 ; $x &amp;lt; mysql_num_rows($result) ; $x++){ &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $row = mysql_fetch_assoc($result); &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $xml_output .= &quot;&amp;lt;entry&amp;gt;\n&quot;; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $xml_output .= &quot;&amp;lt;id&amp;gt;&quot;.$row[&#39;Id&#39;].&quot;&amp;lt;/id&amp;gt;\n&quot;; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $xml_output .= &quot;&amp;lt;name&amp;gt;&quot;.$row[&#39;Name&#39;].&quot;&amp;lt;/name&amp;gt;\n&quot;; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $xml_output .= &quot;&amp;lt;address&amp;gt;&quot;.$row[&#39;Address&#39;].&quot;&amp;lt;/address&amp;gt;\n&quot;; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $xml_output .= &quot;&amp;lt;postcode&amp;gt;&quot;.$row[&#39;Postcode&#39;].&quot;&amp;lt;/postcode&amp;gt;\n&quot;; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $xml_output .= &quot;&amp;lt;telephone&amp;gt;&quot;.$row[&#39;Telephone&#39;].&quot;&amp;lt;/telephone&amp;gt;\n&quot;; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $xml_output .= &quot;&amp;lt;opentime&amp;gt;&quot;.$row[&#39;OpenTime&#39;].&quot;&amp;lt;/opentime&amp;gt;\n&quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $xml_output .= &quot;&amp;lt;restauranttype&amp;gt;&quot;.$row[&#39;ResType&#39;].&quot;&amp;lt;/restauranttype&amp;gt;\n&quot;; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $xml_output .= &quot;&amp;lt;licence&amp;gt;&quot;.$row[&#39;Licence&#39;].&quot;&amp;lt;/licence&amp;gt;\n&quot;; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $xml_output .= &quot;&amp;lt;keywords&amp;gt;&quot;.$row[&#39;Keywords&#39;].&quot;&amp;lt;/keywords&amp;gt;\n&quot;; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $xml_output .= &quot;&amp;lt;cuisine&amp;gt;&quot;.$row[&#39;Cuisine&#39;].&quot;&amp;lt;/cuisine&amp;gt;\n&quot;; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $xml_output .= &quot;&amp;lt;/entry&amp;gt;\n&quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $xml_output .= &quot;&amp;lt;/dataset&amp;gt;\n&quot;; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; echo $xml_output; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;xslt1.xsl&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt; &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;ISO-8859-1&quot;?&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;xsl:stylesheet version=&quot;1.0&quot; xmlns:xsl=&quot;http://www.w3.org/1999/XSL/Transform&quot;&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;xsl:template match=&quot;/&quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;html&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;body&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;table border=&quot;0&quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;tr bgcolor=&quot;#9acd32&quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;th&amp;gt;Ref No.&amp;lt;/th&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;th&amp;gt;Name&amp;lt;/th&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;th&amp;gt;Telephone&amp;lt;/th&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;th&amp;gt;Full Details&amp;lt;/th&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;/tr&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;xsl:for-each select=&quot;dataset/entry&quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;tr&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;td&amp;gt;&amp;lt;xsl:value-of select=&quot;id&quot;/&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;td&amp;gt;&amp;lt;xsl:value-of select=&quot;name&quot;/&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;td&amp;gt;&amp;lt;xsl:value-of select=&quot;telephone&quot;/&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;td&amp;gt;&amp;lt;xsl:variable name=&quot;vid&quot; select=&quot;id&quot;/&amp;gt;&amp;lt;a href=&quot;fullviewXML.php?id={$vid}&quot;&amp;gt;full view&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;/tr&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;/xsl:for-each&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;/table&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;/body&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;/html&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;/xsl:template&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;/xsl:stylesheet&amp;gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt; &lt;/span&gt;&lt;/b&gt;</content><link rel='replies' type='application/atom+xml' href='http://miprabuddini.blogspot.com/feeds/1385521112822660152/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://miprabuddini.blogspot.com/2012/02/transform-xml-documents-into-xhtml-with.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/389300815933907074/posts/default/1385521112822660152'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/389300815933907074/posts/default/1385521112822660152'/><link rel='alternate' type='text/html' href='http://miprabuddini.blogspot.com/2012/02/transform-xml-documents-into-xhtml-with.html' title='Transform XML documents into XHTML with XSLT files'/><author><name>test</name><uri>http://www.blogger.com/profile/01891251140325704448</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-389300815933907074.post-4021641790757918277</id><published>2012-02-10T03:19:00.000-08:00</published><updated>2012-02-10T03:19:43.412-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="HTML/CSS/Javascript"/><title type='text'>Inline background image change script for image</title><content type='html'>&amp;lt;img id=&quot;show_fare&quot; src=&quot;images/btn_booking.png&quot; onmouseover=&quot;this.src=&#39;images/btn_bookingo.png&#39;;&quot; onmouseout=&quot;this.src=&#39;images/btn_booking.png&#39;;&quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://miprabuddini.blogspot.com/feeds/4021641790757918277/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://miprabuddini.blogspot.com/2012/02/inline-background-image-change-script.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/389300815933907074/posts/default/4021641790757918277'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/389300815933907074/posts/default/4021641790757918277'/><link rel='alternate' type='text/html' href='http://miprabuddini.blogspot.com/2012/02/inline-background-image-change-script.html' title='Inline background image change script for image'/><author><name>test</name><uri>http://www.blogger.com/profile/01891251140325704448</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-389300815933907074.post-2411071975296254567</id><published>2012-02-09T21:55:00.000-08:00</published><updated>2012-02-09T21:55:58.532-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Database"/><title type='text'>MySQLi</title><content type='html'>MySQLi is&amp;nbsp;referred&amp;nbsp;to MySQL improved. It is an&amp;nbsp;extension&amp;nbsp;for PHP . This is released together with PHP5 and allows to use MySQL version 4.1.3 or newer.&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
It is object oriented&lt;/div&gt;
&lt;div&gt;
Supports to run more than one query at a time&lt;/div&gt;
&lt;div&gt;
More Secure&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Connecting to MySQLi in Object Oriented way is as follow&lt;/div&gt;
&lt;div&gt;
&lt;pre class=&quot;de1&quot;&gt;&lt;span class=&quot;kw2&quot; style=&quot;font-weight: bold;&quot;&gt;&amp;lt;?php&lt;/span&gt;
&lt;span class=&quot;re0&quot; style=&quot;color: #000088;&quot;&gt;$sql&lt;/span&gt; &lt;span class=&quot;sy0&quot; style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;kw2&quot; style=&quot;font-weight: bold;&quot;&gt;new&lt;/span&gt; mysqli&lt;span class=&quot;br0&quot; style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;st_h&quot; style=&quot;color: blue;&quot;&gt;&#39;hostname&#39;&lt;/span&gt;&lt;span class=&quot;sy0&quot; style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;st_h&quot; style=&quot;color: blue;&quot;&gt;&#39;username&#39;&lt;/span&gt;&lt;span class=&quot;sy0&quot; style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;st_h&quot; style=&quot;color: blue;&quot;&gt;&#39;password&#39;&lt;/span&gt;&lt;span class=&quot;sy0&quot; style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;st_h&quot; style=&quot;color: blue;&quot;&gt;&#39;databasename&#39;&lt;/span&gt;&lt;span class=&quot;br0&quot; style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;sy0&quot; style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;sy1&quot; style=&quot;font-weight: bold;&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;de1&quot;&gt;&lt;span class=&quot;sy1&quot; style=&quot;font-weight: bold;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;de1&quot;&gt;&lt;span class=&quot;sy1&quot; style=&quot;font-weight: bold;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;de1&quot;&gt;&lt;span class=&quot;sy1&quot; style=&quot;font-weight: bold;&quot;&gt;Procedural way of connecting to database with MySQLi
&lt;pre class=&quot;de1&quot; style=&quot;font-weight: normal;&quot;&gt;&lt;span class=&quot;kw2&quot; style=&quot;font-weight: bold;&quot;&gt;&amp;lt;?php&lt;/span&gt;
&lt;span class=&quot;re0&quot; style=&quot;color: #000088;&quot;&gt;$link&lt;/span&gt; &lt;span class=&quot;sy0&quot; style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;kw3&quot; style=&quot;color: #990000;&quot;&gt;mysqli_connect&lt;/span&gt;&lt;span class=&quot;br0&quot; style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;st_h&quot; style=&quot;color: blue;&quot;&gt;&#39;hostname&#39;&lt;/span&gt;&lt;span class=&quot;sy0&quot; style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;st_h&quot; style=&quot;color: blue;&quot;&gt;&#39;username&#39;&lt;/span&gt;&lt;span class=&quot;sy0&quot; style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;st_h&quot; style=&quot;color: blue;&quot;&gt;&#39;password&#39;&lt;/span&gt;&lt;span class=&quot;sy0&quot; style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;st_h&quot; style=&quot;color: blue;&quot;&gt;&#39;databasename&#39;&lt;/span&gt;&lt;span class=&quot;br0&quot; style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;sy0&quot; style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;sy1&quot; style=&quot;font-weight: bold;&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;de1&quot;&gt;&lt;span class=&quot;sy1&quot; style=&quot;font-weight: bold;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;de1&quot;&gt;&lt;span class=&quot;sy1&quot; style=&quot;font-weight: bold;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://miprabuddini.blogspot.com/feeds/2411071975296254567/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://miprabuddini.blogspot.com/2012/02/mysqli.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/389300815933907074/posts/default/2411071975296254567'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/389300815933907074/posts/default/2411071975296254567'/><link rel='alternate' type='text/html' href='http://miprabuddini.blogspot.com/2012/02/mysqli.html' title='MySQLi'/><author><name>test</name><uri>http://www.blogger.com/profile/01891251140325704448</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-389300815933907074.post-3735826243309651290</id><published>2012-02-08T20:21:00.000-08:00</published><updated>2012-02-08T20:22:05.800-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><title type='text'>Sending Variables in URL</title><content type='html'>&lt;br /&gt;
&lt;h3 style=&quot;font-family: arial;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&quot;page_a.php&quot; or &quot;page_a.html&quot;&lt;/span&gt;&lt;/h3&gt;
&lt;pre&gt;&lt;span style=&quot;background-color: white;&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;// Send the variables name=&quot;ishara&quot; and age=27 to the page_b.php&lt;/span&gt;
 &amp;lt;a href=&quot;page_b.php?name=ishara&amp;amp;age=27&quot;&amp;gt;Send variables&amp;lt;/a&amp;gt; 

&lt;/span&gt;&lt;/pre&gt;
&lt;h3 style=&quot;font-family: arial;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&quot;page_b.php&quot;&lt;/span&gt;&lt;/h3&gt;
&lt;pre&gt;&lt;span style=&quot;background-color: white;&quot;&gt; &amp;lt;?php
  &lt;span style=&quot;color: blue;&quot;&gt;// Retrieve the URL variables (using PHP).&lt;/span&gt;
  $name = $_GET[&#39;name&#39;];
  $age = $_GET[&#39;age&#39;];&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;background-color: white;&quot;&gt;                &lt;span style=&quot;color: blue;&quot;&gt;// Display Values&lt;/span&gt;
  echo &quot;Name: &quot;.$name.&quot;  Age: &quot;.$age;
 ?&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Output&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;background-color: white;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;background-color: white;&quot;&gt;Name: ishara Age: 27
 &lt;/span&gt;&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://miprabuddini.blogspot.com/feeds/3735826243309651290/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://miprabuddini.blogspot.com/2012/02/sending-variables-in-url.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/389300815933907074/posts/default/3735826243309651290'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/389300815933907074/posts/default/3735826243309651290'/><link rel='alternate' type='text/html' href='http://miprabuddini.blogspot.com/2012/02/sending-variables-in-url.html' title='Sending Variables in URL'/><author><name>test</name><uri>http://www.blogger.com/profile/01891251140325704448</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-389300815933907074.post-6832350198265723920</id><published>2012-02-08T08:46:00.001-08:00</published><updated>2012-02-08T08:46:57.295-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><title type='text'>File Uploading with PHP</title><content type='html'>&lt;div style=&quot;background-color: #fce5cd;&quot;&gt;
&lt;b&gt;&amp;nbsp;index.html&lt;/b&gt;&lt;/div&gt;
&amp;lt;form action=&quot;applyForJob.php&quot; method=&quot;POST&quot; enctype=&quot;multipart/form-data&quot;&amp;gt;&lt;br /&gt;
&amp;lt;input type=&quot;file&quot; name=&quot;uploaded&quot;&amp;gt;&lt;br /&gt;
&amp;lt;input type=&quot;submit&quot; name=&quot;Submit&quot; value=&quot;Submit&quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/form&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: #fce5cd;&quot;&gt;
&lt;b&gt;applyForJob.php&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; $target = &quot;cv/&quot;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; $target = $target . time(). basename($_FILES[&#39;uploaded&#39;][&#39;name&#39;]);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (move_uploaded_file($_FILES[&#39;uploaded&#39;][&#39;tmp_name&#39;], $target))&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo &quot;The file &quot; . basename($_FILES[&#39;uploaded&#39;][&#39;name&#39;]) . &quot; has been uploaded&quot;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; else &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if(isset($_POST[&#39;Submit&#39;])) &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo &quot;Sorry, there was a problem uploading your file.&quot;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
?&amp;gt;</content><link rel='replies' type='application/atom+xml' href='http://miprabuddini.blogspot.com/feeds/6832350198265723920/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://miprabuddini.blogspot.com/2012/02/file-uploading-with-php.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/389300815933907074/posts/default/6832350198265723920'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/389300815933907074/posts/default/6832350198265723920'/><link rel='alternate' type='text/html' href='http://miprabuddini.blogspot.com/2012/02/file-uploading-with-php.html' title='File Uploading with PHP'/><author><name>test</name><uri>http://www.blogger.com/profile/01891251140325704448</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-389300815933907074.post-4977518384664895723</id><published>2012-02-06T21:37:00.000-08:00</published><updated>2015-02-25T04:53:24.005-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Database"/><title type='text'>Database Naming Conventions</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;All names used throughout the database should be in lowercase.&lt;/li&gt;
&lt;li&gt;Name parts are separated by underline not by a space. As underline is an alphanumeric character, database will be platform independent. Because sometimes space is not allowed.&lt;/li&gt;
&lt;li&gt;Numbers should not use for names&lt;/li&gt;
&lt;li&gt;(.) should not be used for names as separator, because (.) is used as field name in queries. Ex: tablename.columnname&lt;/li&gt;
&lt;li&gt;Must not use reserved words&lt;/li&gt;
&lt;li&gt;Should keep the names simple. Must not use long , complex names&lt;/li&gt;
&lt;li&gt;Database name should contain projectname&lt;/li&gt;
&lt;li&gt;Prefix should be company name or owner&#39;s name&lt;/li&gt;
&lt;li&gt;Ex: cmpn_invoice&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;Table Names&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Should contain name of entity followed by 3 letter &amp;nbsp;acronym. Acronym is created with table name. Ex: manufacturer_prd&lt;/li&gt;
&lt;li&gt;Also we can use prefix for table names same as database prefix for all the tables in that specific database &amp;nbsp;Ex: cecb_manufacturer_prd&lt;/li&gt;
&lt;li&gt;Should not use prefix like tbl_&lt;/li&gt;
&lt;li&gt;Should use simple short clear names for tables. Should not use doubtful names&lt;/li&gt;
&lt;li&gt;Should use singular names&lt;/li&gt;
&lt;li&gt;Group tables with same prefix as master table Eg: user_type, user_status&lt;/li&gt;
&lt;li&gt;Field Names&lt;/li&gt;
&lt;li&gt;For the primary key columns we can use id as name. For product_prd table id_prd is the primay key field name&lt;/li&gt;
&lt;li&gt;Foreign key can be named as idctg_prd. Here this foreign key belongs to product table product_prd. And it reffers to category table category_ctg&lt;/li&gt;
&lt;li&gt;Each column name should include 3 letters acronym of table name, Ex: name_prd&lt;/li&gt;
&lt;li&gt;date_ prefix shold use for date columns and is_ prefix should use for boolean type columns. Eg: date_expire, is_confirmed&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;ol&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://miprabuddini.blogspot.com/feeds/4977518384664895723/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://miprabuddini.blogspot.com/2012/02/database-naming-conventions.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/389300815933907074/posts/default/4977518384664895723'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/389300815933907074/posts/default/4977518384664895723'/><link rel='alternate' type='text/html' href='http://miprabuddini.blogspot.com/2012/02/database-naming-conventions.html' title='Database Naming Conventions'/><author><name>test</name><uri>http://www.blogger.com/profile/01891251140325704448</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>