<?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: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-8269611590958753121</id><updated>2011-11-27T16:53:29.918-08:00</updated><category term='drupal'/><category term='ddblock slide show'/><category term='data picker'/><category term='yii'/><category term='basic'/><category term='datapicker'/><category term='tutorial'/><title type='text'>Learning PHP 5</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://learningphp5.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8269611590958753121/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://learningphp5.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Riquelme</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>24</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8269611590958753121.post-2161684854143957397</id><published>2011-03-01T15:59:00.000-08:00</published><updated>2011-03-01T16:59:51.540-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='yii'/><category scheme='http://www.blogger.com/atom/ns#' term='data picker'/><category scheme='http://www.blogger.com/atom/ns#' term='datapicker'/><title type='text'>Yii Data Picker</title><content type='html'>DATA picker&lt;br /&gt;&lt;br /&gt;the idea is the same as datePicker but its generating data from database rather than date.&lt;br /&gt;&lt;br /&gt;to get this DataPicker working in the form you'll need &lt;b&gt;CJuiDialog&lt;/b&gt; and &lt;b&gt;CGridView&lt;/b&gt;.&lt;br /&gt;&lt;br /&gt;maybe the picture below will helps you to understand the idea a little bit. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/-QkJmclOqQmQ/TW2IIfixvoI/AAAAAAAAAJc/1ny8KIlzlbw/s1600/data_picker.png" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="125" src="http://2.bp.blogspot.com/-QkJmclOqQmQ/TW2IIfixvoI/AAAAAAAAAJc/1ny8KIlzlbw/s320/data_picker.png" width="320" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;First of all you'll need to use CJuiDialog in your form and see how it works&lt;br /&gt;and then added CGridView in your form.&lt;br /&gt;&lt;br /&gt;open _form.php and modified a field a little bit.&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;div class="row"&gt;&lt;!-- this is a Default Generated label --&gt;&lt;br /&gt;  &lt;?php echo $form-&gt;labelEx($model,'id_pendaftar'); ?&gt;&lt;br /&gt;&lt;br /&gt;&lt;!-- Notice that i made the ID field Hidden --&gt;&lt;br /&gt;  &lt;?php echo $form-&gt;hiddenField($model,'id_pendaftar'); ?&gt;&lt;br /&gt;&lt;br /&gt;&lt;!-- And user only need to see what they understand in this case is a Name from ID --&gt;&lt;br /&gt;&lt; input type="text" name="nama_pendaftar" id="nama_pendaftar" readonly value="&lt;?php echo Pendaftaran::model()-&gt;findByPk($model-&gt;id_pendaftar)-&gt;nama_pemohon ?&gt;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;!-- This is Delete Button if the user choose to empty the ID and the Name Field --&gt;&lt;br /&gt;&lt;?php echo CHtml::Button('x', array('name' =&gt; 'del_pendaftar', 'id' =&gt; 'del_pendaftar', 'onclick' =&gt; '$("#nama_pendaftar").val("");$("#Izin_id_pendaftar").val("")')) ?&gt;&lt;br /&gt;&lt;br /&gt;&lt;!-- This is CJUIDIALOG --&gt;&lt;br /&gt;&lt;?php &lt;br /&gt;  $this-&gt;beginWidget('zii.widgets.jui.CJuiDialog', &lt;br /&gt;       array( 'id'=&gt;'pendaftar_dialog',&lt;br /&gt;  // additional javascript options for the dialog plugin&lt;br /&gt;  'options'=&gt;array(&lt;br /&gt;    'title'=&gt;'List Pendaftar',&lt;br /&gt;    'width'=&gt;'auto',&lt;br /&gt;    'autoOpen'=&gt;false,&lt;br /&gt;    ),&lt;br /&gt;   ));&lt;br /&gt;/* Youll put CGridView Here */&lt;br /&gt;&lt;br /&gt;$this-&gt;widget('zii.widgets.grid.CGridView', &lt;br /&gt;   array( 'id'=&gt;'pendaftaran-grid',&lt;br /&gt;   'dataProvider'=&gt;$pendaftaran_model-&gt;search(),&lt;br /&gt;   'filter'=&gt;$pendaftaran_model,&lt;br /&gt;   'columns'=&gt;array(&lt;br /&gt;   'no_daftar',&lt;br /&gt;   array(&lt;br /&gt;       'header'=&gt;'Tanggal Pendaftaran',&lt;br /&gt;     'name'=&gt;'tgl_daftar',&lt;br /&gt;   ),&lt;br /&gt;   'nama_pemohon',&lt;br /&gt;   'alamat_pemohon',&lt;br /&gt;   'nama_perusahaan',&lt;br /&gt;   array(&lt;br /&gt;     'header'=&gt;'',&lt;br /&gt;     'type'=&gt;'raw',&lt;br /&gt;/* Here is The Button that will send the Data to The MAIN FORM */&lt;br /&gt;     'value'=&gt;'CHtml::Button("+", &lt;br /&gt;                                              array("name" =&gt; "send_pendaftar", &lt;br /&gt;                                                     "id" =&gt; "send_pendaftar", &lt;br /&gt;                                                     "onClick" =&gt; "$(\"#pendaftar_dialog\").dialog(\"close\"); $(\"#nama_pendaftar\").val(\"$data-&gt;nama_pemohon\"); $(\"#Izin_id_pendaftar\").val(\"$data-&gt;id\");"))',&lt;br /&gt;         ),&lt;br /&gt;      ),&lt;br /&gt;     ));&lt;br /&gt;&lt;br /&gt;$this-&gt;endWidget('zii.widgets.jui.CJuiDialog');&lt;br /&gt;&lt;!-- this is CJuiDialog Button that will pop up the Dialog --&gt;&lt;br /&gt;echo CHtml::Button('Get Pendaftar', &lt;br /&gt;                      array('onclick'=&gt;'$("#pendaftar_dialog").dialog("open"); return false;',&lt;br /&gt;     ))&lt;br /&gt;&lt;br /&gt;&lt;!-- this is a Default Generated Error Message --&gt;&lt;br /&gt;&lt;?php echo $form-&gt;error($model,'id_pendaftar'); ?&gt;&lt;br /&gt;&lt;/div&gt;&lt;/pre&gt;&lt;br /&gt;Youll Need to Modified the method in the Controller that is actionCreate and actionUpdate&lt;br /&gt;&lt;pre&gt;/**&lt;br /&gt;* Creates a new model.&lt;br /&gt;* If creation is successful, the browser will be redirected to the 'view' page.&lt;br /&gt;*/&lt;br /&gt;public function actionCreate()&lt;br /&gt; {&lt;br /&gt;            /* Data That will be loaded into CGridView */&lt;br /&gt;            /* actually this was just a simple COPY PASTE from actionAdmin controller */&lt;br /&gt;            /* DONT FORGET TO copy paste this into actionUpdate controller */&lt;br /&gt;               $pendaftaran_model=new Pendaftaran('search');&lt;br /&gt;  $pendaftaran_model-&gt;unsetAttributes();  // clear any default values&lt;br /&gt;   if(isset($_GET['Pendaftaran']))&lt;br /&gt;   $pendaftaran_model-&gt;attributes=$_GET['Pendaftaran']; &lt;br /&gt;           &lt;br /&gt;           /* this Code is Default Code to Create Data you don't have to change this */&lt;br /&gt;  $model=new Izin;&lt;br /&gt;  &lt;br /&gt;  &lt;br /&gt;  if(isset($_POST['Izin']))&lt;br /&gt;  {&lt;br /&gt;   $model-&gt;attributes=$_POST['Izin'];&lt;br /&gt;   if($model-&gt;save())&lt;br /&gt;    $this-&gt;redirect(array('view','id'=&gt;$model-&gt;id));&lt;br /&gt;    &lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  $this-&gt;render('create',array(&lt;br /&gt;   'model'=&gt;$model,&lt;br /&gt;              /* DONT FORGET TO RENDER THE DATA PROVIDER INTO VARIABLE THAT WILL BE LOADED INTO CGRIDVIEW */&lt;br /&gt;   'pendaftaran_model'=&gt;$pendaftaran_model,&lt;br /&gt;  &lt;br /&gt;  ));&lt;br /&gt; }&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;After this you have to Modified a little bit in the create.php and update.php. &lt;br /&gt;&lt;br /&gt;create.php and update.php is located at View folder&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;&lt;?php &lt;br /&gt;/* in the render partial add the variable that contains the data */&lt;br /&gt;     echo $this-&gt;renderPartial('_form',&lt;br /&gt;                         array('model'=&gt;$model,&lt;br /&gt;                              /* DONT FORGET TO DO THIS OR NO DATA PROVIDER WILL BE LOADED */&lt;br /&gt;                              'pendaftaran_model'=&gt;$pendaftaran_model&lt;br /&gt;                               )); &lt;br /&gt;?&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Done now you'll have a Data Picker.&lt;br /&gt;im sorry for the messy code and my bad english.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8269611590958753121-2161684854143957397?l=learningphp5.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://learningphp5.blogspot.com/feeds/2161684854143957397/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8269611590958753121&amp;postID=2161684854143957397' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8269611590958753121/posts/default/2161684854143957397'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8269611590958753121/posts/default/2161684854143957397'/><link rel='alternate' type='text/html' href='http://learningphp5.blogspot.com/2011/03/yii-data-picker.html' title='Yii Data Picker'/><author><name>Riquelme</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-QkJmclOqQmQ/TW2IIfixvoI/AAAAAAAAAJc/1ny8KIlzlbw/s72-c/data_picker.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8269611590958753121.post-6785745229093560307</id><published>2010-09-21T00:58:00.000-07:00</published><updated>2010-09-21T00:58:12.487-07:00</updated><title type='text'>Free DropDownMenu</title><content type='html'>There are few site that host free dropdownmenu... &lt;br /&gt;this is the only site that i found interesting&lt;br /&gt;&lt;br /&gt;http://www.lwis.net/free-css-drop-down-menu/&lt;br /&gt;and&lt;br /&gt;dynamicdrive.com&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8269611590958753121-6785745229093560307?l=learningphp5.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://learningphp5.blogspot.com/feeds/6785745229093560307/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8269611590958753121&amp;postID=6785745229093560307' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8269611590958753121/posts/default/6785745229093560307'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8269611590958753121/posts/default/6785745229093560307'/><link rel='alternate' type='text/html' href='http://learningphp5.blogspot.com/2010/09/free-dropdownmenu.html' title='Free DropDownMenu'/><author><name>Riquelme</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8269611590958753121.post-2018478359453788781</id><published>2010-08-20T23:54:00.000-07:00</published><updated>2010-08-21T08:57:38.417-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ddblock slide show'/><category scheme='http://www.blogger.com/atom/ns#' term='drupal'/><category scheme='http://www.blogger.com/atom/ns#' term='basic'/><title type='text'>Drupal : Creating SlideShow</title><content type='html'>Currently i have been digging this slideshow for drupal. but i still can't get the hang of it.&lt;br /&gt;&lt;br /&gt;i really wanna write something about this. but frankly, i can't... for now..&lt;br /&gt;&lt;br /&gt;if i found how to create a slideshow on the homepage of drupal website. i'll let you all now.&lt;br /&gt;&lt;br /&gt;im trying to figure out the ddblock from drupal. here's the module &lt;a href="https://drupal.org/project/ddblock"&gt;https://drupal.org/project/ddblock&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;just a little note. &lt;br /&gt;since i am having problem with the image not showing.&lt;br /&gt; i should check for Administer-&gt;Site Configuration-&gt;File System&lt;br /&gt;   if it said sites/default/files &lt;br /&gt;    and @Image Folder setting in Home » Administer » Site building » Blocks said&lt;br /&gt;    sites/default/files&lt;br /&gt;it just mean that you should place the image @sites/default/files/sites/default/files/images.jpg&lt;br /&gt;it really took quite a while to figuring this.&lt;br /&gt;&lt;br /&gt;another note is : at administer page the image and block is showing but at anonymous user is not showing at all.&lt;br /&gt;  Check Permission @Home » Administer » User management &lt;br /&gt;    @ddk block module check list the anonymous user.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8269611590958753121-2018478359453788781?l=learningphp5.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://learningphp5.blogspot.com/feeds/2018478359453788781/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8269611590958753121&amp;postID=2018478359453788781' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8269611590958753121/posts/default/2018478359453788781'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8269611590958753121/posts/default/2018478359453788781'/><link rel='alternate' type='text/html' href='http://learningphp5.blogspot.com/2010/08/drupal-creating-slideshow.html' title='Drupal : Creating SlideShow'/><author><name>Riquelme</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8269611590958753121.post-8316802629104234966</id><published>2010-07-31T20:17:00.000-07:00</published><updated>2010-07-31T20:35:40.464-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='drupal'/><category scheme='http://www.blogger.com/atom/ns#' term='tutorial'/><title type='text'>TUTORIAL DRUPAL : CREATING HOMEPAGE [part 4]</title><content type='html'>If this is your first visit then you should know that this is the part 4. You can read the previous part from this link :&lt;br /&gt;&lt;br /&gt;&lt;a href="http://learningphp5.blogspot.com/2010/07/tutorial-drupal-creating-homepage-part.html"&gt;TUTORIAL DRUPAL : CREATING HOMEPAGE [part 1]&lt;/a&gt;&lt;br /&gt;&lt;a href="http://learningphp5.blogspot.com/2010/07/tutorial-drupal-creating-homepage-part_26.html"&gt;TUTORIAL DRUPAL : CREATING HOMEPAGE [part 2]&lt;/a&gt;&lt;br /&gt;&lt;a href="http://learningphp5.blogspot.com/2010/07/tutorial-drupal-creating-homepage-part_28.html"&gt;TUTORIAL DRUPAL : CREATING HOMEPAGE [part 3]&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now for the part for of the tutorial. I will create the copyrights thingy at the bottom right of the page.&lt;br /&gt;&lt;br /&gt;Lets just see what i’ve done in the analysis. This is what i will try to create.&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_XPLAihDd724/TFToper2p8I/AAAAAAAAAIE/rcMzrKu28jg/s1600/Tutorial+Drupal+4+gambar+1.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 212px;" src="http://2.bp.blogspot.com/_XPLAihDd724/TFToper2p8I/AAAAAAAAAIE/rcMzrKu28jg/s320/Tutorial+Drupal+4+gambar+1.png" alt="" id="BLOGGER_PHOTO_ID_5500276844235499458" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;After few tries this is actually very simple. The field that handle footer like this is located at “Site Information”.&lt;br /&gt;Lets go to “Site Information” just click [Administer-&gt;Site configuration-&gt;Site Information]. Then just fill the “Footer Message Field”. you can write few HTML code in the field. just like this.&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_XPLAihDd724/TFTop7ETCmI/AAAAAAAAAIM/HVm3dDpyDQQ/s1600/Tutorial+Drupal+4+gambar+2.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 218px;" src="http://1.bp.blogspot.com/_XPLAihDd724/TFTop7ETCmI/AAAAAAAAAIM/HVm3dDpyDQQ/s320/Tutorial+Drupal+4+gambar+2.png" alt="" id="BLOGGER_PHOTO_ID_5500276851854215778" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;And Thats it. IT IS SIMPLE WHEN YOU KNOW WHERE THE FIELD IS. Actually its preety much spending a hours or two just to find the right field.&lt;br /&gt;&lt;br /&gt;Thanks for reading this crap. I appreciate it. ?&lt;br /&gt;&lt;br /&gt;please Visit The Previous Tutorial :&lt;br /&gt;&lt;br /&gt;&lt;a href="http://learningphp5.blogspot.com/2010/07/tutorial-drupal-creating-homepage-part.html"&gt;TUTORIAL DRUPAL : CREATING HOMEPAGE [part 1]&lt;/a&gt;&lt;br /&gt;&lt;a href="http://learningphp5.blogspot.com/2010/07/tutorial-drupal-creating-homepage-part_26.html"&gt;TUTORIAL DRUPAL : CREATING HOMEPAGE [part 2]&lt;/a&gt;&lt;br /&gt;&lt;a href="http://learningphp5.blogspot.com/2010/07/tutorial-drupal-creating-homepage-part_28.html"&gt;TUTORIAL DRUPAL : CREATING HOMEPAGE [part 3]&lt;/a&gt;&lt;br /&gt;&lt;a href="http://learningphp5.blogspot.com/2010/07/tutorial-drupal-creating-homepage-part_31.html"&gt;TUTORIAL DRUPAL : CREATING HOMEPAGE [part 4]&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8269611590958753121-8316802629104234966?l=learningphp5.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://learningphp5.blogspot.com/feeds/8316802629104234966/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8269611590958753121&amp;postID=8316802629104234966' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8269611590958753121/posts/default/8316802629104234966'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8269611590958753121/posts/default/8316802629104234966'/><link rel='alternate' type='text/html' href='http://learningphp5.blogspot.com/2010/07/tutorial-drupal-creating-homepage-part_31.html' title='TUTORIAL DRUPAL : CREATING HOMEPAGE [part 4]'/><author><name>Riquelme</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_XPLAihDd724/TFToper2p8I/AAAAAAAAAIE/rcMzrKu28jg/s72-c/Tutorial+Drupal+4+gambar+1.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8269611590958753121.post-4736533257324570592</id><published>2010-07-28T04:59:00.000-07:00</published><updated>2010-07-31T20:39:29.525-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='drupal'/><category scheme='http://www.blogger.com/atom/ns#' term='tutorial'/><title type='text'>TUTORIAL DRUPAL : CREATING HOMEPAGE [part 3]</title><content type='html'>If this were you drop. then you'll notice this is the part 3. please visit my previous tutorial through this link :&lt;br /&gt;&lt;a href="http://learningphp5.blogspot.com/2010/07/tutorial-drupal-creating-homepage-part.html"&gt;TUTORIAL DRUPAL : CREATING HOMEPAGE [part 1]&lt;/a&gt;&lt;br /&gt;&lt;a href="http://learningphp5.blogspot.com/2010/07/tutorial-drupal-creating-homepage-part_26.html"&gt;TUTORIAL DRUPAL : CREATING HOMEPAGE [part 2]&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Now i’m gonna write about how we make “News and Event” that appear at homepage.&lt;br /&gt;First off all lets see the analysis. Overall analysis is already made at the first part of this blog. You can access it from these link. Anyway here’s the analysis.&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_XPLAihDd724/TFAddzPPjoI/AAAAAAAAAHU/X0L7V2MC1zY/s1600/Tutorial+Drupal+3+gambar+1.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 249px;" src="http://1.bp.blogspot.com/_XPLAihDd724/TFAddzPPjoI/AAAAAAAAAHU/X0L7V2MC1zY/s320/Tutorial+Drupal+3+gambar+1.png" alt="" id="BLOGGER_PHOTO_ID_5498927542826929794" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;From the first analysis-i don’t know if that is called analysis- i still don’t know what “Content Type” or “Module” that being used.&lt;br /&gt;After done with several test, and try it seems that “Blog Module” have some “Block” called “Recent Blog Post”. This block is displaying recent blog post without the dates. I think its preety much the same except maybe a little detail. So im gonna use this module. To create “News and Event”.&lt;br /&gt;&lt;br /&gt;Activate the module to add blog functionallity to the web. Go to [Administer-&gt;Site Building-&gt;Modules]. Then Check “Blog” to enable them.&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_XPLAihDd724/TFAd7WtXRxI/AAAAAAAAAHc/NZ7gV46zKYg/s1600/Tutorial+Drupal+3+gambar+2.png"&gt;&lt;img style="cursor: pointer; width: 290px; height: 320px;" src="http://3.bp.blogspot.com/_XPLAihDd724/TFAd7WtXRxI/AAAAAAAAAHc/NZ7gV46zKYg/s320/Tutorial+Drupal+3+gambar+2.png" alt="" id="BLOGGER_PHOTO_ID_5498928050564712210" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;As you can see we now have “Blog Entry” Submenu at the “Create Content Menu”.&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_XPLAihDd724/TFAe71t9QCI/AAAAAAAAAHs/mokOXvUUZus/s1600/Tutorial+Drupal+3+gambar+3.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 303px;" src="http://3.bp.blogspot.com/_XPLAihDd724/TFAe71t9QCI/AAAAAAAAAHs/mokOXvUUZus/s320/Tutorial+Drupal+3+gambar+3.png" alt="" id="BLOGGER_PHOTO_ID_5498929158400327714" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;Lets just start creating Content. Go to [Create Content-&gt;Blog Entry].&lt;br /&gt;&lt;br /&gt;Fill Title as the title of an article that youve made and Body for the article.&lt;br /&gt;&lt;br /&gt;And the don’t forget to Uncheck “Promoted to Front Page” so the article won’t be shown at the homepage area. “Promoted  to Front Page” located at “Publishing Options” Category.&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_XPLAihDd724/TFAep199Z9I/AAAAAAAAAHk/8qh-WT9uQqI/s1600/Tutorial+Drupal+3+gambar+4.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 226px;" src="http://3.bp.blogspot.com/_XPLAihDd724/TFAep199Z9I/AAAAAAAAAHk/8qh-WT9uQqI/s320/Tutorial+Drupal+3+gambar+4.png" alt="" id="BLOGGER_PHOTO_ID_5498928849229801426" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;Create a few article, two article maybe three. If you don’t know what to write just copy paste something from the web.&lt;br /&gt;&lt;br /&gt;We’re done Creating Article. Next thing to do is to activate the “Recent blog post” blocks.&lt;br /&gt;To activate the blocks go to [Administer-&gt; Site Building -&gt; Blocks].&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_XPLAihDd724/TFAglFmQzWI/AAAAAAAAAH0/_jr9WgV3xyI/s1600/Tutorial+Drupal+3+gambar+5.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 219px;" src="http://3.bp.blogspot.com/_XPLAihDd724/TFAglFmQzWI/AAAAAAAAAH0/_jr9WgV3xyI/s320/Tutorial+Drupal+3+gambar+5.png" alt="" id="BLOGGER_PHOTO_ID_5498930966549286242" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;As you can see now “Recent Blog Post” block is already appear at the Disabled Category.&lt;br /&gt;Now lets decide where the right area for the “Recent Blog Post” to appear. I think  right side bar is a good idea. Lets choose right side bar from region combobox. Then click save.&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_XPLAihDd724/TFAhb9_G4bI/AAAAAAAAAH8/8AYWc0cYoT8/s1600/Tutorial+Drupal+3+gambar+6.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 158px;" src="http://4.bp.blogspot.com/_XPLAihDd724/TFAhb9_G4bI/AAAAAAAAAH8/8AYWc0cYoT8/s320/Tutorial+Drupal+3+gambar+6.png" alt="" id="BLOGGER_PHOTO_ID_5498931909398815154" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;As you can see now a “Recent Blog Post” is actually show at right side bar. And now all we have to do is to change the title into “News and Event”.&lt;br /&gt;&lt;br /&gt;Just go to blocks again click configure at "Recent Blog Post" and then change the title of the block into “News and Event”.&lt;br /&gt;&lt;br /&gt;Thats it. Congratulation you’ve done creating Recent “News and Event” to the site without the date and without which site that updating the article.&lt;br /&gt;&lt;br /&gt;Thanks for reading. I don’t know what to write for the next chapter. But i’ll figure it out somehow&lt;br /&gt;&lt;br /&gt;this is the previous link :&lt;br /&gt;&lt;a href="http://learningphp5.blogspot.com/2010/07/tutorial-drupal-creating-homepage-part.html"&gt;TUTORIAL DRUPAL : CREATING HOMEPAGE [part 1]&lt;/a&gt;&lt;br /&gt;&lt;a href="http://learningphp5.blogspot.com/2010/07/tutorial-drupal-creating-homepage-part_26.html"&gt;TUTORIAL DRUPAL : CREATING HOMEPAGE [part 2]&lt;/a&gt;&lt;br /&gt;&lt;a href="http://learningphp5.blogspot.com/2010/07/tutorial-drupal-creating-homepage-part_28.html"&gt;TUTORIAL DRUPAL : CREATING HOMEPAGE [part 3]&lt;/a&gt;&lt;br /&gt;&lt;a href="http://learningphp5.blogspot.com/2010/07/tutorial-drupal-creating-homepage-part_31.html"&gt;TUTORIAL DRUPAL : CREATING HOMEPAGE [part 4]&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8269611590958753121-4736533257324570592?l=learningphp5.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://learningphp5.blogspot.com/feeds/4736533257324570592/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8269611590958753121&amp;postID=4736533257324570592' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8269611590958753121/posts/default/4736533257324570592'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8269611590958753121/posts/default/4736533257324570592'/><link rel='alternate' type='text/html' href='http://learningphp5.blogspot.com/2010/07/tutorial-drupal-creating-homepage-part_28.html' title='TUTORIAL DRUPAL : CREATING HOMEPAGE [part 3]'/><author><name>Riquelme</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_XPLAihDd724/TFAddzPPjoI/AAAAAAAAAHU/X0L7V2MC1zY/s72-c/Tutorial+Drupal+3+gambar+1.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8269611590958753121.post-4507088680046162630</id><published>2010-07-27T20:32:00.000-07:00</published><updated>2010-07-27T20:34:07.761-07:00</updated><title type='text'>Learning Taxonomy in drupal</title><content type='html'>currently i'm learning taxonomy in drupal.&lt;br /&gt;i don't quite get it.&lt;br /&gt;i'll just keep on trying and just see what the result.&lt;br /&gt;i hope i can create something simple.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8269611590958753121-4507088680046162630?l=learningphp5.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://learningphp5.blogspot.com/feeds/4507088680046162630/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8269611590958753121&amp;postID=4507088680046162630' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8269611590958753121/posts/default/4507088680046162630'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8269611590958753121/posts/default/4507088680046162630'/><link rel='alternate' type='text/html' href='http://learningphp5.blogspot.com/2010/07/learning-taxonomy-in-drupal.html' title='Learning Taxonomy in drupal'/><author><name>Riquelme</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8269611590958753121.post-4697396381725924714</id><published>2010-07-26T17:31:00.000-07:00</published><updated>2010-07-31T20:47:32.633-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='drupal'/><category scheme='http://www.blogger.com/atom/ns#' term='tutorial'/><title type='text'>TUTORIAL DRUPAL : CREATING HOMEPAGE [part 2]</title><content type='html'>For the previous tutorial i’ve done creating primary link. And if you still confuse about primary link. I suggest just go to &lt;a href="http://drupal.org/"&gt;http://drupal.org&lt;/a&gt; and search there.&lt;br /&gt;&lt;br /&gt;If you already got here and doesn’t now anything i suggest you go to the first part of tutorial. Click these &lt;a href="http://learningphp5.blogspot.com/2010/07/tutorial-drupal-creating-homepage-part.html"&gt;link to go to the first tutorial&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Lets just go straight to the point. I want to create secondary link that appear at the bottom of the page. That is the footer page. Lets start.&lt;br /&gt;&lt;br /&gt;Now Lets Create the Secondary Link item [Administer-&gt;Site Building-&gt;Menus-&gt;Secondary Links-&gt;Add Item]&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_XPLAihDd724/TE4rLBrM8CI/AAAAAAAAAGU/BuIvz4SL-d0/s1600/Tutorial+Drupal+2+gambar+1.png"&gt;&lt;img style="cursor: pointer; width: 377px; height: 188px;" src="http://1.bp.blogspot.com/_XPLAihDd724/TE4rLBrM8CI/AAAAAAAAAGU/BuIvz4SL-d0/s320/Tutorial+Drupal+2+gambar+1.png" alt="" id="BLOGGER_PHOTO_ID_5498379663494148130" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;With the same configuration as the Primary links in the previous post. Use &lt;front&gt; for the path and the name of the menu for the Menu Link Title Field.&lt;br /&gt;&lt;br /&gt;&lt;/front&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_XPLAihDd724/TE4rmFtPwOI/AAAAAAAAAGc/ToH0-2JMiGc/s1600/Tutorial+Drupal+2+gambar+2.png"&gt;&lt;img style="cursor: pointer; width: 385px; height: 409px;" src="http://4.bp.blogspot.com/_XPLAihDd724/TE4rmFtPwOI/AAAAAAAAAGc/ToH0-2JMiGc/s320/Tutorial+Drupal+2+gambar+2.png" alt="" id="BLOGGER_PHOTO_ID_5498380128432931042" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;Now youll see that everything is messed up. Dont panic its just The secondary links doesnt appear the way i want. Its supposed to be at the bottom or footer.&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_XPLAihDd724/TE4r9jIR_fI/AAAAAAAAAGk/L2LPZa2ukJo/s1600/Tutorial+Drupal+2+gambar+3.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 115px;" src="http://4.bp.blogspot.com/_XPLAihDd724/TE4r9jIR_fI/AAAAAAAAAGk/L2LPZa2ukJo/s320/Tutorial+Drupal+2+gambar+3.png" alt="" id="BLOGGER_PHOTO_ID_5498380531467943410" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;Its time to fix these. As you can see the secondary link at the header bar is not preety And its disturbing. That place can’t be change by managing BLOCK because its a default postition from the theme. So we have to change the way of the Theme.&lt;br /&gt;To handle that we need to :&lt;br /&gt;1.    make the theme not to show secondary link&lt;br /&gt;2.    and use block to create secondary link to appear at footer page.&lt;br /&gt;&lt;br /&gt;To fix and to tell the theme not to showing the secondary link at the header bar/ default area were going to reconfigure the theme.&lt;br /&gt;&lt;br /&gt;Lets just go to [Site Building-&gt;Themes-&gt;Configure]  and then go to [Garland(its the name of the theme)]&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_XPLAihDd724/TE4s0HJVU-I/AAAAAAAAAG0/HPwelF4CVpM/s1600/Tutorial+Drupal+2+gambar+5.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 286px;" src="http://2.bp.blogspot.com/_XPLAihDd724/TE4s0HJVU-I/AAAAAAAAAG0/HPwelF4CVpM/s320/Tutorial+Drupal+2+gambar+5.png" alt="" id="BLOGGER_PHOTO_ID_5498381468848968674" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_XPLAihDd724/TE4szlOcW_I/AAAAAAAAAGs/M2pynea0LI4/s1600/Tutorial+Drupal+2+gambar+4.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 262px;" src="http://3.bp.blogspot.com/_XPLAihDd724/TE4szlOcW_I/AAAAAAAAAGs/M2pynea0LI4/s320/Tutorial+Drupal+2+gambar+4.png" alt="" id="BLOGGER_PHOTO_ID_5498381459743595506" border="0" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;then uncheck the Secondary Link Checkbox at toggle display. Over here you can also upload the logo image. And icon image. But were going into that in some other time. Save configuration.&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_XPLAihDd724/TE4tULZ-HLI/AAAAAAAAAG8/5pqsGkHfcYE/s1600/Tutorial+Drupal+2+gambar+6.png"&gt;&lt;img style="cursor: pointer; width: 180px; height: 320px;" src="http://3.bp.blogspot.com/_XPLAihDd724/TE4tULZ-HLI/AAAAAAAAAG8/5pqsGkHfcYE/s320/Tutorial+Drupal+2+gambar+6.png" alt="" id="BLOGGER_PHOTO_ID_5498382019748306098" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;Now you can see that the secondary links is dissapear.&lt;br /&gt;&lt;br /&gt;Done with the first task. Right now we want to make them reapear at the footer area.Lets go to BLOCKS to control where we want it to appear.&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_XPLAihDd724/TE4tul8fxKI/AAAAAAAAAHE/ajpoYaKDtg4/s1600/Tutorial+Drupal+2+gambar+7.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 290px;" src="http://2.bp.blogspot.com/_XPLAihDd724/TE4tul8fxKI/AAAAAAAAAHE/ajpoYaKDtg4/s320/Tutorial+Drupal+2+gambar+7.png" alt="" id="BLOGGER_PHOTO_ID_5498382473549038754" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;At the Disabled category in blocks page you'll see Secondary Link and change the combobox from &lt;none&gt; to Footer.&lt;br /&gt;Now the secondary link its already at the bottom of web site.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_XPLAihDd724/TE4t63VZ7uI/AAAAAAAAAHM/icfOdlZhgWs/s1600/Tutorial+Drupal+2+gambar+8.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 180px;" src="http://1.bp.blogspot.com/_XPLAihDd724/TE4t63VZ7uI/AAAAAAAAAHM/icfOdlZhgWs/s320/Tutorial+Drupal+2+gambar+8.png" alt="" id="BLOGGER_PHOTO_ID_5498382684375346914" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;Congratulation you'll now already now a lil bit of creating web with drupal. Well the exact words is creating and modified the menu.&lt;br /&gt;&lt;br /&gt;From here on maybe you don't have to read these tutorial again. Because drupal is already simple as it is.&lt;br /&gt;If you wanna read it till the end of the tutorial. I appreciate that and Thank you very much For reading this piece of crap.&lt;br /&gt;I’am very Sorry about grammar or anything that relate to english. Coz im just starting to create tutorial. And i know its bad.&lt;br /&gt;&lt;br /&gt;This is the updated link :&lt;br /&gt;&lt;a href="http://learningphp5.blogspot.com/2010/07/tutorial-drupal-creating-homepage-part.html"&gt;TUTORIAL DRUPAL : CREATING HOMEPAGE [part 1]&lt;/a&gt;&lt;br /&gt;&lt;a href="http://learningphp5.blogspot.com/2010/07/tutorial-drupal-creating-homepage-part_26.html"&gt;TUTORIAL DRUPAL : CREATING HOMEPAGE [part 2]&lt;/a&gt;&lt;br /&gt;&lt;a href="http://learningphp5.blogspot.com/2010/07/tutorial-drupal-creating-homepage-part_28.html"&gt;TUTORIAL DRUPAL : CREATING HOMEPAGE [part 3]&lt;/a&gt;&lt;br /&gt;&lt;a href="http://learningphp5.blogspot.com/2010/07/tutorial-drupal-creating-homepage-part_31.html"&gt;TUTORIAL DRUPAL : CREATING HOMEPAGE [part 4]&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/none&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8269611590958753121-4697396381725924714?l=learningphp5.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://learningphp5.blogspot.com/feeds/4697396381725924714/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8269611590958753121&amp;postID=4697396381725924714' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8269611590958753121/posts/default/4697396381725924714'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8269611590958753121/posts/default/4697396381725924714'/><link rel='alternate' type='text/html' href='http://learningphp5.blogspot.com/2010/07/tutorial-drupal-creating-homepage-part_26.html' title='TUTORIAL DRUPAL : CREATING HOMEPAGE [part 2]'/><author><name>Riquelme</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_XPLAihDd724/TE4rLBrM8CI/AAAAAAAAAGU/BuIvz4SL-d0/s72-c/Tutorial+Drupal+2+gambar+1.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8269611590958753121.post-5603887457942569610</id><published>2010-07-24T18:22:00.000-07:00</published><updated>2010-07-31T20:45:56.262-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='drupal'/><category scheme='http://www.blogger.com/atom/ns#' term='tutorial'/><title type='text'>TUTORIAL DRUPAL : CREATING HOMEPAGE [part 1]</title><content type='html'>&lt;span style="font-style: italic;"&gt;This tutorial is going to use a premature drupal.&lt;/span&gt;&lt;span style="font-style: italic;"&gt; I dont want to use any modules or theme first.&lt;/span&gt;  &lt;span style="font-style: italic;"&gt;This tutorial supposed to target for a beginner user Or the user that only wants to create homepage.&lt;/span&gt;  &lt;span style="font-style: italic;"&gt;So for all of you who wants a custom homepage with drupal. This is the link [ sorry doesn't have link yet. i'll update it once i find it]&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;For this tutorial i’m using&lt;br /&gt;· &lt;a href="http://drupal.org/"&gt;Drupal 6.17&lt;/a&gt;&lt;br /&gt;· &lt;a href="http://www.apachefriends.org/en/xampp-windows.html"&gt;XAMPP (PHP, Apache, MySQL)&lt;/a&gt;&lt;br /&gt;· &lt;a href="http://www.postgresql.org/download/"&gt;Postgre 8.4 (optional)(you can use MySQL too. But i prefer Postgre)&lt;/a&gt;&lt;span style="font-weight: bold;font-family:arial;" &gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;First thing to do is install above softwares. The install tutorial already created not by me. Just google it. Its preety simple.&lt;span style="font-weight: bold;font-family:arial;" &gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;Ok now I presume you already done with installing. And you came across to this page. The very first page after installing Drupal.&lt;span style="font-weight: bold;font-family:arial;" &gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;p style="font-family: arial; font-weight: bold; text-align: center;" class="MsoNoSpacing"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_XPLAihDd724/TEuTtJMf2zI/AAAAAAAAAFM/z_q1VLY4C0c/s1600/Tutorial+Drupal+gambar+1.png"&gt;&lt;img style="cursor: pointer; width: 447px; height: 188px;" src="http://1.bp.blogspot.com/_XPLAihDd724/TEuTtJMf2zI/AAAAAAAAAFM/z_q1VLY4C0c/s320/Tutorial+Drupal+gambar+1.png" alt="" id="BLOGGER_PHOTO_ID_5497650173907557170" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;br /&gt;And We going to create something like GoingOn.com but without its theme. i think its just Company Profile. so its supposed to be easy. i hope.&lt;p style="font-family: arial; font-weight: bold;" class="MsoNoSpacing"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="font-family: arial; font-weight: bold; text-align: center;" class="MsoNoSpacing"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://goingon.com/"&gt;&lt;img style="cursor: pointer; width: 320px; height: 247px;" src="http://1.bp.blogspot.com/_XPLAihDd724/TEuURY2O6AI/AAAAAAAAAFU/S95ix9Oe8as/s320/Tutorial+Drupal+gambar+2.png" alt="" id="BLOGGER_PHOTO_ID_5497650796584429570" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;br /&gt;Before everything start. There's no harm to look and analyze GoingOn.com for a lil bit. This is my Premature Analysis. Sorry not very good at it&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_XPLAihDd724/TEuXXajKLQI/AAAAAAAAAFk/jINLwscbdnE/s1600/Tutorial+Drupal+gambar+3.png"&gt;&lt;img style="cursor: pointer; width: 395px; height: 166px;" src="http://1.bp.blogspot.com/_XPLAihDd724/TEuXXajKLQI/AAAAAAAAAFk/jINLwscbdnE/s320/Tutorial+Drupal+gambar+3.png" alt="" id="BLOGGER_PHOTO_ID_5497654198655397122" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_XPLAihDd724/TEuXsdU7xOI/AAAAAAAAAFs/-h1plPF8wBg/s1600/Tutorial+Drupal+gambar+4.png"&gt;&lt;img style="cursor: pointer; width: 391px; height: 164px;" src="http://2.bp.blogspot.com/_XPLAihDd724/TEuXsdU7xOI/AAAAAAAAAFs/-h1plPF8wBg/s320/Tutorial+Drupal+gambar+4.png" alt="" id="BLOGGER_PHOTO_ID_5497654560178291938" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;Ok i think thats cover all of the homepage. and i just hope the main modules can cover what we need.&lt;br /&gt;The truth is i'm still learning. so there'll be alot of maybe. :P&lt;br /&gt;&lt;br /&gt;What i'm going to do now is to create Menu. so this tutorial supposed to be called Analyze Homepage and Creating Menu with Drupal. but who cares.&lt;br /&gt;&lt;br /&gt;After doing analysis the menu is being split into 2 parts. header part which is the main menu and at the footer parts which contain secondary menu. the secondary menu also split into 2 parts.&lt;br /&gt;&lt;br /&gt;this is the list of the menu :&lt;br /&gt;1. Main Menu&lt;br /&gt;•    About GoingOn&lt;br /&gt;•    Contact Us&lt;br /&gt;2. Sub Menu&lt;br /&gt;•    Contact Us&lt;br /&gt;•    Building Communities&lt;br /&gt;•    Community Platform&lt;br /&gt;•    Community Deployment Exchange&lt;br /&gt;•    Social Learning&lt;br /&gt;•    Request A Demo&lt;br /&gt;and&lt;br /&gt;•    Careers&lt;br /&gt;•    Privacy&lt;br /&gt;•    Site Map&lt;br /&gt;•    Resources&lt;br /&gt;&lt;br /&gt;Now lets just create them.&lt;br /&gt;Login as Administrator into your drupal web application.&lt;br /&gt;&lt;br /&gt;Navigate to Menus : Click [Administer-&gt;Menus]&lt;br /&gt;&lt;br /&gt;Now you’ll see “List menus, Add menu, Settings”  and “Navigation, Primary Links, Secondary Links”.&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_XPLAihDd724/TEuaYyLdXZI/AAAAAAAAAF0/Lb6dbzSZzSE/s1600/Tutorial+Drupal+gambar+7.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 234px;" src="http://2.bp.blogspot.com/_XPLAihDd724/TEuaYyLdXZI/AAAAAAAAAF0/Lb6dbzSZzSE/s320/Tutorial+Drupal+gambar+7.png" alt="" id="BLOGGER_PHOTO_ID_5497657520713194898" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;p class="MsoNoSpacing" style="margin-left: 36pt; text-indent: -18pt;"&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;I will Categorize the Menu into 2 Categories and that is the Primary and Secondary Links. So we going to Create Menu only in Primary Links and Secondary Links.&lt;br /&gt;And here are the Menu that has been categorized :&lt;br /&gt;Primary Links :&lt;br /&gt;•    About GoingOn&lt;br /&gt;•    Contact Us&lt;br /&gt;Secondary Links :&lt;br /&gt;•    Contact Us&lt;br /&gt;•    Building Communities&lt;br /&gt;•    Community Platform&lt;br /&gt;•    Community Deployment Exchange&lt;br /&gt;•    Social Learning&lt;br /&gt;•    Request A Demo&lt;br /&gt;•    Careers&lt;br /&gt;•    Privacy&lt;br /&gt;•    Site Map&lt;br /&gt;•    Resources&lt;br /&gt;&lt;br /&gt;Now Lets Create Primary Links&lt;br /&gt;&lt;br /&gt;Click on Primary Links and then click Add item [Administer-&gt;Site Building-&gt;Menus-&gt;Primary Links-&gt;Add Item]&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_XPLAihDd724/TEubLCAHALI/AAAAAAAAAF8/THcFqaxFROQ/s1600/Tutorial+Drupal+gambar+8.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 242px;" src="http://1.bp.blogspot.com/_XPLAihDd724/TEubLCAHALI/AAAAAAAAAF8/THcFqaxFROQ/s320/Tutorial+Drupal+gambar+8.png" alt="" id="BLOGGER_PHOTO_ID_5497658383954018482" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;For the path field we only going to fill it with “&lt;front&gt;” thats because we doesnt have any article or content to link for.&lt;br /&gt;And Menu Link Title will be field by the name of Menu.&lt;br /&gt;&lt;br /&gt;&lt;/front&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_XPLAihDd724/TEubd_7_e9I/AAAAAAAAAGE/IFx-bw5JWaY/s1600/Tutorial+Drupal+gambar+9.png"&gt;&lt;img style="cursor: pointer; width: 300px; height: 320px;" src="http://4.bp.blogspot.com/_XPLAihDd724/TEubd_7_e9I/AAAAAAAAAGE/IFx-bw5JWaY/s320/Tutorial+Drupal+gambar+9.png" alt="" id="BLOGGER_PHOTO_ID_5497658709817392082" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;Ok now the primary link already made. Lets see the results&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_XPLAihDd724/TEub1XdtcdI/AAAAAAAAAGM/0N5Aqt7XN1o/s1600/Tutorial+Drupal+gambar+10.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 137px;" src="http://4.bp.blogspot.com/_XPLAihDd724/TEub1XdtcdI/AAAAAAAAAGM/0N5Aqt7XN1o/s320/Tutorial+Drupal+gambar+10.png" alt="" id="BLOGGER_PHOTO_ID_5497659111269822930" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;Thats it for Now. I'm tired. Next it should be the Secondary Links.&lt;br /&gt;&lt;br /&gt;please visit next tutorial :&lt;br /&gt;&lt;a href="http://learningphp5.blogspot.com/2010/07/tutorial-drupal-creating-homepage-part.html"&gt;TUTORIAL DRUPAL : CREATING HOMEPAGE [part 1]&lt;/a&gt;&lt;br /&gt;&lt;a href="http://learningphp5.blogspot.com/2010/07/tutorial-drupal-creating-homepage-part_26.html"&gt;TUTORIAL DRUPAL : CREATING HOMEPAGE [part 2]&lt;/a&gt;&lt;br /&gt;&lt;a href="http://learningphp5.blogspot.com/2010/07/tutorial-drupal-creating-homepage-part_28.html"&gt;TUTORIAL DRUPAL : CREATING HOMEPAGE [part 3]&lt;/a&gt;&lt;br /&gt;&lt;a href="http://learningphp5.blogspot.com/2010/07/tutorial-drupal-creating-homepage-part_31.html"&gt;TUTORIAL DRUPAL : CREATING HOMEPAGE [part 4]&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;front&gt;&lt;/front&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8269611590958753121-5603887457942569610?l=learningphp5.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://learningphp5.blogspot.com/feeds/5603887457942569610/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8269611590958753121&amp;postID=5603887457942569610' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8269611590958753121/posts/default/5603887457942569610'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8269611590958753121/posts/default/5603887457942569610'/><link rel='alternate' type='text/html' href='http://learningphp5.blogspot.com/2010/07/tutorial-drupal-creating-homepage-part.html' title='TUTORIAL DRUPAL : CREATING HOMEPAGE [part 1]'/><author><name>Riquelme</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_XPLAihDd724/TEuTtJMf2zI/AAAAAAAAAFM/z_q1VLY4C0c/s72-c/Tutorial+Drupal+gambar+1.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8269611590958753121.post-29493780679435522</id><published>2010-07-24T18:15:00.000-07:00</published><updated>2010-07-24T18:21:18.038-07:00</updated><title type='text'>Im making Tutorial Drupal</title><content type='html'>for the first time in my life. im going drupal. and creating tutorial about it.&lt;br /&gt;&lt;br /&gt;and my poor capabilities in english wont stop me.&lt;br /&gt;&lt;br /&gt;but maybe my activities as programmer and gamer will stop me.. :P&lt;br /&gt;&lt;br /&gt;So lets Begin&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8269611590958753121-29493780679435522?l=learningphp5.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://learningphp5.blogspot.com/feeds/29493780679435522/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8269611590958753121&amp;postID=29493780679435522' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8269611590958753121/posts/default/29493780679435522'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8269611590958753121/posts/default/29493780679435522'/><link rel='alternate' type='text/html' href='http://learningphp5.blogspot.com/2010/07/im-making-tutorial-drupal.html' title='Im making Tutorial Drupal'/><author><name>Riquelme</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8269611590958753121.post-6576747544305977243</id><published>2010-07-18T17:30:00.000-07:00</published><updated>2010-07-18T17:34:03.142-07:00</updated><title type='text'>Trim dalam javascript</title><content type='html'>tadi baru googling eh langsung dapet&lt;br /&gt;ini code buat nge-trim/ ngilangin karakter khusus dalam string&lt;br /&gt;&lt;br /&gt;yang dihilangkan adalah&lt;br /&gt;&lt;ul&gt;&lt;li&gt; ” ” / spasi&lt;br /&gt;&lt;/li&gt;&lt;li&gt;“\t” tab&lt;br /&gt;&lt;/li&gt;&lt;li&gt;“\n” baris baru/ new line&lt;br /&gt;&lt;/li&gt;&lt;li&gt;“\r” return&lt;br /&gt;&lt;/li&gt;&lt;li&gt;“\0″ Nul-byte&lt;/li&gt;&lt;li&gt;“\x0B” tab Vertical&lt;/li&gt;&lt;/ul&gt;ini codenya diambil dari webtoolkit.info&lt;br /&gt;&lt;br /&gt;&lt;pre class="javascript" style="font-family: monospace;"&gt;&lt;span style="color: rgb(0, 51, 102); font-weight: bold;"&gt;function&lt;/span&gt; trim&lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;str&lt;span style="color: rgb(51, 153, 51);"&gt;,&lt;/span&gt; chars&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt; &lt;span style="color: rgb(0, 153, 0);"&gt;{&lt;/span&gt;&lt;br /&gt; &lt;span style="color: rgb(0, 0, 102); font-weight: bold;"&gt;return&lt;/span&gt; ltrim&lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;rtrim&lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;str&lt;span style="color: rgb(51, 153, 51);"&gt;,&lt;/span&gt; chars&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;,&lt;/span&gt; chars&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 51, 102); font-weight: bold;"&gt;function&lt;/span&gt; ltrim&lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;str&lt;span style="color: rgb(51, 153, 51);"&gt;,&lt;/span&gt; chars&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt; &lt;span style="color: rgb(0, 153, 0);"&gt;{&lt;/span&gt;&lt;br /&gt; chars &lt;span style="color: rgb(51, 153, 51);"&gt;=&lt;/span&gt; chars &lt;span style="color: rgb(51, 153, 51);"&gt;||&lt;/span&gt; &lt;span style="color: rgb(51, 102, 204);"&gt;"&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\\&lt;/span&gt;s"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt; &lt;span style="color: rgb(0, 0, 102); font-weight: bold;"&gt;return&lt;/span&gt; str.&lt;span style="color: rgb(102, 0, 102);"&gt;replace&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 51, 102); font-weight: bold;"&gt;new&lt;/span&gt; RegExp&lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(51, 102, 204);"&gt;"^["&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;+&lt;/span&gt; chars &lt;span style="color: rgb(51, 153, 51);"&gt;+&lt;/span&gt; &lt;span style="color: rgb(51, 102, 204);"&gt;"]+"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;,&lt;/span&gt; &lt;span style="color: rgb(51, 102, 204);"&gt;"g"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;,&lt;/span&gt; &lt;span style="color: rgb(51, 102, 204);"&gt;""&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 51, 102); font-weight: bold;"&gt;function&lt;/span&gt; rtrim&lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;str&lt;span style="color: rgb(51, 153, 51);"&gt;,&lt;/span&gt; chars&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt; &lt;span style="color: rgb(0, 153, 0);"&gt;{&lt;/span&gt;&lt;br /&gt; chars &lt;span style="color: rgb(51, 153, 51);"&gt;=&lt;/span&gt; chars &lt;span style="color: rgb(51, 153, 51);"&gt;||&lt;/span&gt; &lt;span style="color: rgb(51, 102, 204);"&gt;"&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\\&lt;/span&gt;s"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt; &lt;span style="color: rgb(0, 0, 102); font-weight: bold;"&gt;return&lt;/span&gt; str.&lt;span style="color: rgb(102, 0, 102);"&gt;replace&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 51, 102); font-weight: bold;"&gt;new&lt;/span&gt; RegExp&lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(51, 102, 204);"&gt;"["&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;+&lt;/span&gt; chars &lt;span style="color: rgb(51, 153, 51);"&gt;+&lt;/span&gt; &lt;span style="color: rgb(51, 102, 204);"&gt;"]+$"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;,&lt;/span&gt; &lt;span style="color: rgb(51, 102, 204);"&gt;"g"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;,&lt;/span&gt; &lt;span style="color: rgb(51, 102, 204);"&gt;""&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;}&lt;/span&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8269611590958753121-6576747544305977243?l=learningphp5.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://learningphp5.blogspot.com/feeds/6576747544305977243/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8269611590958753121&amp;postID=6576747544305977243' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8269611590958753121/posts/default/6576747544305977243'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8269611590958753121/posts/default/6576747544305977243'/><link rel='alternate' type='text/html' href='http://learningphp5.blogspot.com/2010/07/trim-dalam-javascript.html' title='Trim dalam javascript'/><author><name>Riquelme</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8269611590958753121.post-6633679229771082200</id><published>2010-03-22T15:17:00.000-07:00</published><updated>2010-03-22T15:25:37.586-07:00</updated><title type='text'>BackendPro on Postgre</title><content type='html'>Currently im on project that really needs &lt;a href="http://www.kaydoo.co.uk/projects/backendpro"&gt;BackendPro&lt;/a&gt; to works on Postgre... or Postgre to works on BackendPro...&lt;br /&gt;&lt;br /&gt;either way.... its pain in the ass...&lt;br /&gt;&lt;br /&gt;but then again i have a friend that really creative and he succeed in converting database from mysql to postgre ..&lt;br /&gt;&lt;br /&gt;not just that... the backendpro is really workin on postgre..&lt;br /&gt;the login.. authentication.. authorization.. well not all works but.. its enough to create a web application that uses postgre&lt;br /&gt;&lt;br /&gt;next time i'll update this post and try to post the Codeingniter and Backendpro and Postgre that really works.. or at least the&lt;span style="text-decoration: underline;"&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; authentication is running smoothly..&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8269611590958753121-6633679229771082200?l=learningphp5.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://learningphp5.blogspot.com/feeds/6633679229771082200/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8269611590958753121&amp;postID=6633679229771082200' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8269611590958753121/posts/default/6633679229771082200'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8269611590958753121/posts/default/6633679229771082200'/><link rel='alternate' type='text/html' href='http://learningphp5.blogspot.com/2010/03/backendpro-on-postgre.html' title='BackendPro on Postgre'/><author><name>Riquelme</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8269611590958753121.post-513022358998740934</id><published>2009-07-29T00:34:00.000-07:00</published><updated>2009-07-29T00:36:58.419-07:00</updated><title type='text'>Zend Framework is a pain</title><content type='html'>i tried to learning somethng new again. this time with zend framework....&lt;br /&gt;and its freaking hard.&lt;br /&gt;&lt;br /&gt;dude theres something more simpler. and its called CodeIgniter. ok&lt;br /&gt;done&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8269611590958753121-513022358998740934?l=learningphp5.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://learningphp5.blogspot.com/feeds/513022358998740934/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8269611590958753121&amp;postID=513022358998740934' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8269611590958753121/posts/default/513022358998740934'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8269611590958753121/posts/default/513022358998740934'/><link rel='alternate' type='text/html' href='http://learningphp5.blogspot.com/2009/07/zend-framework-is-pain.html' title='Zend Framework is a pain'/><author><name>Riquelme</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8269611590958753121.post-5494329698896192583</id><published>2009-05-06T02:51:00.000-07:00</published><updated>2009-05-06T02:55:49.243-07:00</updated><title type='text'>CodeIgniter and SQL Server 2005 using COM class</title><content type='html'>this is just repost from my main blog&lt;br /&gt;&lt;br /&gt;anyway&lt;br /&gt;&lt;br /&gt;i can connect codeigniter and sql server 2005&lt;br /&gt;but it still use com class&lt;br /&gt;&lt;br /&gt;its not as a library but as a new db driver and its still the same with mssql driver but we connect to sql server 2005 using com class rather than using php like mssql_whatever function&lt;br /&gt;&lt;br /&gt;please read the post that i made in&lt;a href="http://codeigniter.com/forums/viewthread/112244/"&gt; codeigniter forum&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8269611590958753121-5494329698896192583?l=learningphp5.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://learningphp5.blogspot.com/feeds/5494329698896192583/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8269611590958753121&amp;postID=5494329698896192583' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8269611590958753121/posts/default/5494329698896192583'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8269611590958753121/posts/default/5494329698896192583'/><link rel='alternate' type='text/html' href='http://learningphp5.blogspot.com/2009/05/codeigniter-and-sql-server-2005-using.html' title='CodeIgniter and SQL Server 2005 using COM class'/><author><name>Riquelme</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8269611590958753121.post-9168033152349533635</id><published>2009-04-13T09:34:00.001-07:00</published><updated>2009-08-10T02:40:27.503-07:00</updated><title type='text'>PHP and SQL SERVER 2005 with ADODB.CONNECTION</title><content type='html'>hmm it seems someone is using the php &lt;span style="font-weight: bold;"&gt;COM &lt;/span&gt;class to connect to SQL SERVER 2005.&lt;br /&gt;and i think im gonna try this function to.&lt;br /&gt;&lt;br /&gt;i found this article from &lt;a href="http://marc.info/?l=php-windows&amp;amp;m=116522549709480&amp;amp;w=2"&gt;a mailing list here&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;and im gonna  copy paste it to my blog.&lt;br /&gt;&lt;br /&gt;thanks for the hardwork AJ.&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Ok, here is enough code to get you started :-)  &lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;/** This class houses the static methods to creating connections to SQLServer.   */ class ADODB {  &lt;/p&gt;&lt;p&gt;    function ConnectToSQLServer     (         $server,         $database,         $username,         $password     )     {         $obj=new COM('ADODB.connection');         if(!$obj-&gt;pinned())         {             $obj-&gt;open("Provider=SQLOLEDB.1;Server=$server;Database= $database;UID=$username;PWD=$password;");         }         register_shutdown_function('_adodb_shutdown');         return $obj;     }  &lt;/p&gt;&lt;p&gt;    function ExecuteQuery($sql,&amp;amp;$connection)     {         $recordsAffected=0;         return $connection-&gt;Execute($sql, $recordsAffected, 8);     }  &lt;/p&gt;&lt;p&gt;    function Execute($sql,&amp;amp;$connection)     {         $ra=0;         $connection-&gt;Execute($sql,$ra,129);     }  &lt;/p&gt;&lt;p&gt;}  &lt;/p&gt;&lt;p&gt;/* Some util functions */  &lt;/p&gt;&lt;p&gt;function dbEscape($s) {     return "'".str_replace("'", "''", $s)."'"; }  &lt;/p&gt;&lt;p&gt;function forceNumber($number) {     if(!is_numeric($number))     {         // Trigger error is one of my fuctions, you'd have to do somethine else ;-)         //trigger_error("Non numeric passed to forceNumber: '$number'", E_USER_ERROR);     }     return $number*1.0; // ensures it is stored in php as a number }  &lt;/p&gt;&lt;p&gt;/* Some examples of using it.  * Please note that in these examples I connect to the DB in each function,  * this is totally and utterly wrong for a real situation, you should only  * make a connection once per php client connection.  */  &lt;/p&gt;&lt;p&gt;/* Gets a single result */ function exmpl1() {     $server=ADODB::ConnectToSQLServer     (         $server,         $database,         $username,         $password     );     $recset=0;     $recset=ADODB::ExecuteQuery("SELECT MIN(RowID) FROM T_RowID", $server);     $ret=$recset-&gt;Fields;     $ret=$ret-&gt;item(0);     $ret=$ret-&gt;Value;     $recset-&gt;close();     return $ret; }  &lt;/p&gt;&lt;p&gt;/* Gets an array of results */ function exmpl2($Name,$FromId) {     $server=ADODB::ConnectToSQLServer     (         $server,         $database,         $username,         $password     );     $recset=0;     $Name=dbEscape($name);     $FromId=forceNumber($parent);     $recset=ADODB::ExecuteQuery("SELECT ToId FROM T_References WHERE KeyName=$Name AND FromId=$FromId",$server);     $ret=array();     while(!$recset-&gt;EOF())     {         $p=$recset-&gt;Fields;         $p=$p-&gt;item(0);         array_push($ret,$p-&gt;Value);         $recset-&gt;movenext();     }     $recset-&gt;close();     return $ret; }  &lt;/p&gt;&lt;p&gt;/* Runs an update only */ function exmpl3($parent,$name,$child) {     $server=ADODB::ConnectToSQLServer     (         $server,         $database,         $username,         $password     );     $parent=forceNumber($parent);     $name=substr($name,0,112);     $name=dbEscape($name);     $child=forceNumber($child);     $sql="INSERT INTO T_References (FromId,KeyName,ToId) VALUES ($parent,$name,$server)";     ADODB::Execute($sql,$this-&gt;connection); } ?&gt;  &lt;/p&gt;&lt;p&gt;Cheers  &lt;/p&gt;&lt;p&gt;AJ  &lt;/p&gt;....again thanks AJ&lt;br /&gt;&lt;br /&gt;&lt;div class="codeblock"&gt;&lt;h3&gt;testing beta test&lt;/h3&gt;&lt;code&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;function &lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;index&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;()&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;{&lt;br&gt;&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;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: rgb(255, 128, 0);"&gt;/* grab the division list */&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;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;if (&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;$divisions &lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;= &lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;$this&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;-&amp;gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;main&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;-&amp;gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;get_all_divisions&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&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;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;$data[&lt;/span&gt;&lt;span style="color: rgb(221, 0, 0);"&gt;'divisions'&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;][$value[&lt;/span&gt;&lt;span style="color: rgb(221, 0, 0);"&gt;'id'&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;=&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;0] &lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;= &lt;/span&gt;&lt;span style="color: rgb(221, 0, 0);"&gt;''&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&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;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&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;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;foreach (&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;$divisions &lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;as &lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;$key&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;=&amp;gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;$value&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&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;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;$data[&lt;/span&gt;&lt;span style="color: rgb(221, 0, 0);"&gt;'divisions'&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;][$value[&lt;/span&gt;&lt;span style="color: rgb(221, 0, 0);"&gt;'id'&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;]] &lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;= &lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;$value[&lt;/span&gt;&lt;span style="color: rgb(221, 0, 0);"&gt;'name'&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&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;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;}&lt;br&gt;&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;$data[&lt;/span&gt;&lt;span style="color: rgb(221, 0, 0);"&gt;'site_title'&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;] &lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;= &lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;$this&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;-&amp;gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;config&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;-&amp;gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;item&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(221, 0, 0);"&gt;'site_title'&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;);&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;$data[&lt;/span&gt;&lt;span style="color: rgb(221, 0, 0);"&gt;'title'&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;] &lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;= &lt;/span&gt;&lt;span style="color: rgb(221, 0, 0);"&gt;"Main Page"&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;$this&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;-&amp;gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;template&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;-&amp;gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;write_view&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(221, 0, 0);"&gt;'content'&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;, &lt;/span&gt;&lt;span style="color: rgb(221, 0, 0);"&gt;'default/pages/main_index'&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;, &lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;$data&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;);&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;$this&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;-&amp;gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;template&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;-&amp;gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;render&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;();&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;}&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;function &lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;names&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;()&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;{&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: rgb(255, 128, 0);"&gt;/* set the POST variable */&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;$division &lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;= &lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;$this&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;-&amp;gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;input&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;-&amp;gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;post&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(221, 0, 0);"&gt;'division'&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;, &lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;TRUE&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;);&lt;br&gt;&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;&lt;/span&gt;&lt;span style="color: rgb(255, 128, 0);"&gt;/* grab the division details */&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;$item &lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;= &lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;$this&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;-&amp;gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;main&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;-&amp;gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;get_division&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;$division&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;);&lt;br&gt;&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;&lt;/span&gt;&lt;span style="color: rgb(255, 128, 0);"&gt;/* set the output */&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;$output &lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;= (&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;$item &lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;!== &lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;FALSE&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;) ? &lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;$item &lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;: &lt;/span&gt;&lt;span style="color: rgb(221, 0, 0);"&gt;''&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;;&lt;br&gt;&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;echo &lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;$output&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;} &lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/code&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8269611590958753121-9168033152349533635?l=learningphp5.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://learningphp5.blogspot.com/feeds/9168033152349533635/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8269611590958753121&amp;postID=9168033152349533635' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8269611590958753121/posts/default/9168033152349533635'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8269611590958753121/posts/default/9168033152349533635'/><link rel='alternate' type='text/html' href='http://learningphp5.blogspot.com/2009/04/php-and-sql-server-2005-with.html' title='PHP and SQL SERVER 2005 with ADODB.CONNECTION'/><author><name>Riquelme</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8269611590958753121.post-8869615518736358636</id><published>2009-04-13T08:22:00.001-07:00</published><updated>2009-04-13T08:34:48.660-07:00</updated><title type='text'>PHP and SQL SERVER 2005</title><content type='html'>it seems that the connection was unstable....&lt;br /&gt;im using mssql_pconnect to connect PHP to SQL SERVER 2005.&lt;br /&gt;&lt;br /&gt;anyway now im trying a new way to connect PHP and SQL SERVER 2005&lt;br /&gt;and thats using ADODB Connection Object.&lt;br /&gt;&lt;br /&gt;to use this you have to call COM class from PHP&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt; function adodb_query($sql){&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;         $conn = new COM("ADODB.Connection") or die("Cannot start ADO");&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;         $conn-&gt;Open("Provider=SQLOLEDB; Data Source=".$this-&gt;ado_data_source.";&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;         Initial Catalog=".$this-&gt;ado_db_name."; User ID=".$this-&gt;ado_db_uid."; Password=".$this-&gt;ado_db_pwd."");&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;         &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;         &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;         $rs = $conn-&gt;Execute($sql);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;         $num_columns = $rs-&gt;Fields-&gt;Count();&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;         $ado_field_name = array();&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;         for ($i=0; $i &lt; $num_columns; $i++) {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;          $ado_field_name[] = $rs-&gt;Fields($i)-&gt;Name;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;         }&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;        &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;         $result = array();&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;         $test = array();&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;         $rowcount = 0;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;         $rs-&gt;MoveFirst;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;          while (!$rs-&gt;EOF) {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;          for ($i=0; $i &lt; $num_columns; $i++) {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;            $result[$rowcount][$ado_field_name[$i]] = $rs-&gt;Fields[$i]-&gt;value;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;        }&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;          $rs-&gt;MoveNext();&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;          $rowcount++;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;         }&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;         $rs-&gt;Close();&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;         $conn-&gt;Close();&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;         $conn = null;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;          return $result;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;       }&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;this function will execute query and return it as an array.&lt;br /&gt;it was the same with mssql_fetch_array().&lt;br /&gt;&lt;br /&gt;but this has &lt;span style="font-weight: bold;"&gt;a huge problem&lt;/span&gt;.&lt;br /&gt;because of everytime you call the function its create a &lt;span style="font-weight: bold;"&gt;new connection. &lt;/span&gt;&lt;br /&gt;its just mean &lt;span style="font-weight: bold;"&gt;a longer time&lt;/span&gt; to wait.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8269611590958753121-8869615518736358636?l=learningphp5.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://learningphp5.blogspot.com/feeds/8869615518736358636/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8269611590958753121&amp;postID=8869615518736358636' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8269611590958753121/posts/default/8869615518736358636'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8269611590958753121/posts/default/8869615518736358636'/><link rel='alternate' type='text/html' href='http://learningphp5.blogspot.com/2009/04/php-and-sql-server-2005.html' title='PHP and SQL SERVER 2005'/><author><name>Riquelme</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8269611590958753121.post-3435516346491030969</id><published>2009-02-24T07:50:00.000-08:00</published><updated>2009-02-24T07:53:40.547-08:00</updated><title type='text'>Generating PDF from PHP</title><content type='html'>This is php class that i used to generate pdf file....&lt;br /&gt;&lt;br /&gt;this is nice stuff...&lt;br /&gt;&lt;br /&gt;you can add picture too..&lt;br /&gt;&lt;br /&gt;get it Here &lt;a href="http://www.phpclasses.org/browse/package/421.html"&gt;http://www.phpclasses.org/browse/package/421.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8269611590958753121-3435516346491030969?l=learningphp5.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://learningphp5.blogspot.com/feeds/3435516346491030969/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8269611590958753121&amp;postID=3435516346491030969' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8269611590958753121/posts/default/3435516346491030969'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8269611590958753121/posts/default/3435516346491030969'/><link rel='alternate' type='text/html' href='http://learningphp5.blogspot.com/2009/02/generating-pdf-from-php.html' title='Generating PDF from PHP'/><author><name>Riquelme</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8269611590958753121.post-9046212290371728532</id><published>2009-02-24T05:48:00.001-08:00</published><updated>2009-02-24T05:58:02.741-08:00</updated><title type='text'>Generating MS Word from PHP</title><content type='html'>There is a way to generate MS Word from PHP.&lt;br /&gt;&lt;br /&gt;that is using class MsDoc....&lt;br /&gt;&lt;br /&gt;this class contains a preety much simple function...i think&lt;br /&gt;&lt;br /&gt;if you dont know how to apply this class....relax there is a sample how to use this class&lt;br /&gt;&lt;br /&gt;this class is provided by &lt;a href="http://www.phpclasses.org/"&gt;http://www.phpclasses.org/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;get the class here &lt;a href="http://www.phpclasses.org/browse/package/2631.html"&gt;http://www.phpclasses.org/browse/package/2631.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8269611590958753121-9046212290371728532?l=learningphp5.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://learningphp5.blogspot.com/feeds/9046212290371728532/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8269611590958753121&amp;postID=9046212290371728532' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8269611590958753121/posts/default/9046212290371728532'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8269611590958753121/posts/default/9046212290371728532'/><link rel='alternate' type='text/html' href='http://learningphp5.blogspot.com/2009/02/generating-ms-word-from-php.html' title='Generating MS Word from PHP'/><author><name>Riquelme</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8269611590958753121.post-5554748199502513161</id><published>2009-02-19T04:39:00.000-08:00</published><updated>2009-02-19T05:16:57.589-08:00</updated><title type='text'>Paging using PHP and MSSQL SERVER 2005 with Code Igniter</title><content type='html'>okay just to add some note.. here&lt;br /&gt;&lt;br /&gt;some dude from code igniter forum create a simple function to make pagination....&lt;br /&gt;&lt;br /&gt;i think this function will work great with all database. and you dont havta use code igniter framework.&lt;br /&gt;&lt;br /&gt;im currently using php and mssql server 2005 with Code Igniter Framework&lt;br /&gt;and it works well with the function...&lt;br /&gt;&lt;br /&gt;just view it here&lt;br /&gt;&lt;a href="http://codeigniter.com/forums/viewthread/64287/"&gt;code igniter forums&lt;/a&gt;&lt;br /&gt;and this is the query that i used :&lt;br /&gt;&lt;br /&gt;function get_list($offset){&lt;br /&gt;$sql = "&lt;br /&gt;select top (20) from (&lt;br /&gt;select id,name, ROW_NUMBER() over (order by id) as Result_Number from tm_person) innerSel Where Result_Number &gt;(($offset - 1) *20) Order by Result_Number&lt;br /&gt;)&lt;br /&gt;";&lt;br /&gt;$results = $this-&gt;db-&gt;query($sql);&lt;br /&gt;return $results-&gt;result_array();&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;$offset is number of page values you want to display&lt;br /&gt;and dont forget the paging function read it here&lt;a href="http://codeigniter.com/forums/viewthread/64287/"&gt; code igniter forums&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8269611590958753121-5554748199502513161?l=learningphp5.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://learningphp5.blogspot.com/feeds/5554748199502513161/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8269611590958753121&amp;postID=5554748199502513161' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8269611590958753121/posts/default/5554748199502513161'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8269611590958753121/posts/default/5554748199502513161'/><link rel='alternate' type='text/html' href='http://learningphp5.blogspot.com/2009/02/paging-using-php-and-mssql-server-2005.html' title='Paging using PHP and MSSQL SERVER 2005 with Code Igniter'/><author><name>Riquelme</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8269611590958753121.post-7297195973278169460</id><published>2009-02-04T03:01:00.000-08:00</published><updated>2009-02-04T06:07:04.725-08:00</updated><title type='text'>PHP Basic</title><content type='html'>if you're new to programming or new to PHP then you should learn from this site, &lt;a href="http://www.w3schools.com/php/default.asp"&gt;www.w3school.com&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;this site contain the very base about web scripting and other kind of script....&lt;br /&gt;&lt;br /&gt;i learn all basic about PHP from this site.&lt;br /&gt;&lt;br /&gt;its really simple and easy.&lt;br /&gt;&lt;br /&gt;even kids can read it too.....perhaps.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8269611590958753121-7297195973278169460?l=learningphp5.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://learningphp5.blogspot.com/feeds/7297195973278169460/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8269611590958753121&amp;postID=7297195973278169460' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8269611590958753121/posts/default/7297195973278169460'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8269611590958753121/posts/default/7297195973278169460'/><link rel='alternate' type='text/html' href='http://learningphp5.blogspot.com/2009/02/php-basic.html' title='PHP Basic'/><author><name>Riquelme</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8269611590958753121.post-4657815884747964665</id><published>2009-01-31T07:20:00.000-08:00</published><updated>2009-01-31T07:24:54.716-08:00</updated><title type='text'>PHP 5 and MSSQL SERVER 2005</title><content type='html'>im currently doing project using PHP 5 and MSSQL SERVER 2005.&lt;br /&gt;they use different server.&lt;br /&gt;one for web server and the other one is for Database Server.&lt;br /&gt;if you anyone of you want to know how to set this i dont know how because im only a programmer.&lt;br /&gt;&lt;br /&gt;this project is stupid. i cant stand being a programmer now.&lt;br /&gt;&lt;br /&gt;i want to become what i really want.&lt;br /&gt;&lt;br /&gt;and what i want is becoming free.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8269611590958753121-4657815884747964665?l=learningphp5.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://learningphp5.blogspot.com/feeds/4657815884747964665/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8269611590958753121&amp;postID=4657815884747964665' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8269611590958753121/posts/default/4657815884747964665'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8269611590958753121/posts/default/4657815884747964665'/><link rel='alternate' type='text/html' href='http://learningphp5.blogspot.com/2009/01/php-5-and-mssql-server-2005.html' title='PHP 5 and MSSQL SERVER 2005'/><author><name>Riquelme</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8269611590958753121.post-4390961777859472742</id><published>2008-11-07T16:59:00.000-08:00</published><updated>2008-11-07T17:12:52.653-08:00</updated><title type='text'>FRAMEWORK</title><content type='html'>im learning CODE IGNITER Framework.&lt;br /&gt;&lt;br /&gt;its suppose to make it easier to create web site.&lt;br /&gt;&lt;br /&gt;ive been using it for 2 month and its really simple.&lt;br /&gt;&lt;br /&gt;its has online tutor and some video about making simple web.&lt;br /&gt;&lt;br /&gt;for pro and beginner in php you can use this after you know how to create class and stuff or just i say Object Oriented Programming in PHP&lt;br /&gt;.&lt;br /&gt;&lt;br /&gt;thats it&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8269611590958753121-4390961777859472742?l=learningphp5.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://learningphp5.blogspot.com/feeds/4390961777859472742/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8269611590958753121&amp;postID=4390961777859472742' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8269611590958753121/posts/default/4390961777859472742'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8269611590958753121/posts/default/4390961777859472742'/><link rel='alternate' type='text/html' href='http://learningphp5.blogspot.com/2008/11/framework.html' title='FRAMEWORK'/><author><name>Riquelme</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8269611590958753121.post-760379371886071921</id><published>2008-02-27T14:59:00.000-08:00</published><updated>2008-02-27T15:00:28.296-08:00</updated><title type='text'>PHP 5 other OOP Code</title><content type='html'>other oo code&lt;br /&gt;&lt;br /&gt;class Cat {&lt;br /&gt;  function miau() {&lt;br /&gt;  print "miau";&lt;br /&gt;  }&lt;br /&gt;};&lt;br /&gt;&lt;br /&gt;class Dog {&lt;br /&gt;  function wuff() {&lt;br /&gt;  print "wuff";&lt;br /&gt;  }&lt;br /&gt;};&lt;br /&gt;&lt;br /&gt;function printTheRightSound($obj) {&lt;br /&gt; if ($obj instanceof Cat) {&lt;br /&gt;   $obj-&amp;gt;miau();&lt;br /&gt; } else if ($obj instanceof Dog) {&lt;br /&gt;   $obj-&amp;gt;wuff();&lt;br /&gt; } else {&lt;br /&gt;   print "Error: Passed wrong kind object";&lt;br /&gt; }&lt;br /&gt; print "\n";&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;printTheRightSound(new Cat());&lt;br /&gt;printTheRightSound(new Dog());&lt;br /&gt;&lt;br /&gt;//end class&lt;br /&gt;&lt;br /&gt;the output is&lt;br /&gt;&lt;br /&gt; miau&lt;br /&gt; wuff&lt;br /&gt;&lt;br /&gt;Inheritance is performed by using the [extends]&lt;br /&gt;&lt;br /&gt;keyword :&lt;br /&gt; class Child extends Parent {&lt;br /&gt;  //....&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt;This how you would rewrite the previous example&lt;br /&gt;&lt;br /&gt;using inheritance :&lt;br /&gt; class Animal {&lt;br /&gt;   function makeSound() {&lt;br /&gt;     print "Error : This Method should be re-&lt;br /&gt;&lt;br /&gt;implemented ins the children";&lt;br /&gt;   }&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt; class Cat extends Animal {&lt;br /&gt;   function makeSound() {&lt;br /&gt;     print "miau";&lt;br /&gt;   }&lt;br /&gt; }&lt;br /&gt; class Dog extends Animal {&lt;br /&gt;   function makeSound() {&lt;br /&gt;     print "wuff";&lt;br /&gt;   }&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt; function printTheRightSound($obj) {&lt;br /&gt;   if ($obj instanceof Animal) {&lt;br /&gt;     $obj-&amp;gt;makeSound();&lt;br /&gt;&lt;br /&gt;   } else {&lt;br /&gt;     print "Error : Passed wrong kind of object";&lt;br /&gt;   }&lt;br /&gt;  print "\n";&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt; printTheRightSound(new Cat());&lt;br /&gt; printTheRightSound(new Dog());&lt;br /&gt;\\end class&lt;br /&gt;&lt;br /&gt;THe output is&lt;br /&gt;&lt;br /&gt; miau&lt;br /&gt; wuff&lt;br /&gt;&lt;br /&gt;and this is the summary that i read its really&lt;br /&gt;&lt;br /&gt;cute&lt;br /&gt;&lt;br /&gt;"if youre new to PHP but have written code in&lt;br /&gt;&lt;br /&gt;object oriented language,&lt;br /&gt;youll probably not understand how people managed&lt;br /&gt;&lt;br /&gt;to write object oriented code until now.&lt;br /&gt;if youve writeen object oriented code in PHP4,&lt;br /&gt; you were probably just dying for these new&lt;br /&gt;&lt;br /&gt;features"&lt;br /&gt;&lt;br /&gt;so what if im really new to object oriented&lt;br /&gt;&lt;br /&gt;language.&lt;br /&gt;itll probably i can never understand what should&lt;br /&gt;&lt;br /&gt;i do with it.&lt;br /&gt;&lt;br /&gt;i read and read and im done with this im off.&lt;br /&gt;i peek in chapter 4 and its an advanced&lt;br /&gt;&lt;br /&gt;OOP.....okay !-_-.&lt;br /&gt;i think i need codes that written using OOP&lt;br /&gt;&lt;br /&gt;techinque and lots of them so i can get the hang&lt;br /&gt;&lt;br /&gt;of it.&lt;br /&gt;in chapter 5 itll be Web Application.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8269611590958753121-760379371886071921?l=learningphp5.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://learningphp5.blogspot.com/feeds/760379371886071921/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8269611590958753121&amp;postID=760379371886071921' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8269611590958753121/posts/default/760379371886071921'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8269611590958753121/posts/default/760379371886071921'/><link rel='alternate' type='text/html' href='http://learningphp5.blogspot.com/2008/02/php-5-other-oop-code.html' title='PHP 5 other OOP Code'/><author><name>Riquelme</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8269611590958753121.post-5645110418704571091</id><published>2008-02-27T14:55:00.000-08:00</published><updated>2008-02-27T14:56:29.128-08:00</updated><title type='text'>PHP 5 Touching OOP</title><content type='html'>i read and i read and im confuse. ok next chapter.&lt;br /&gt;&lt;br /&gt;PHP5 OO Language&lt;br /&gt;&lt;br /&gt;wow now im actually learn Object Oriented thingy.&lt;br /&gt;&lt;br /&gt;class Person&lt;br /&gt; Method :&lt;br /&gt;  setName($name)&lt;br /&gt;  getName()&lt;br /&gt;&lt;br /&gt;Properties :&lt;br /&gt;  $name&lt;br /&gt;&lt;br /&gt;and this is the code :&lt;br /&gt;&lt;br /&gt;class Person {&lt;br /&gt;  private $name;&lt;br /&gt; &lt;br /&gt;  function setName($name) {&lt;br /&gt;    $this-&amp;gt;name = $name;&lt;br /&gt;  }&lt;br /&gt; &lt;br /&gt;  function getName() {&lt;br /&gt; &lt;br /&gt;  }&lt;br /&gt;};&lt;br /&gt;&lt;br /&gt;$judy = new Person();&lt;br /&gt;$judy-&amp;gt;setName("Judy");&lt;br /&gt;&lt;br /&gt;$joe = new Person();&lt;br /&gt;$joe-&amp;gt;setName("Joe");&lt;br /&gt;&lt;br /&gt;print $judy-&amp;gt;getName() . "\n" ;&lt;br /&gt;print $joe-&amp;gt;getName() . "\n" ;&lt;br /&gt;&lt;br /&gt;itll print the name.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8269611590958753121-5645110418704571091?l=learningphp5.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://learningphp5.blogspot.com/feeds/5645110418704571091/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8269611590958753121&amp;postID=5645110418704571091' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8269611590958753121/posts/default/5645110418704571091'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8269611590958753121/posts/default/5645110418704571091'/><link rel='alternate' type='text/html' href='http://learningphp5.blogspot.com/2008/02/php-5-touching-oop.html' title='PHP 5 Touching OOP'/><author><name>Riquelme</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8269611590958753121.post-1159593950486963854</id><published>2008-02-27T14:31:00.001-08:00</published><updated>2008-02-27T14:52:43.000-08:00</updated><title type='text'>PHP 5 First Touch</title><content type='html'>Right now the book called PHP5 Power Programming is helping me.&lt;br /&gt;Itll let me learn few basic code which i prefer it that way and i hope i can create MySQL &amp;amp; PHP Application and other app that use PHP5.&lt;br /&gt;&lt;br /&gt;im not reading any of chapter 1 but just go straight to chapter 2 that consist Basic Language.&lt;br /&gt;&lt;br /&gt;this code is HELLO WORLD with HTML Embedding.&lt;br /&gt;&lt;br /&gt;&amp;lt;html&amp;gt;&lt;br /&gt;&amp;lt;head&amp;gt;Sample PHP Script&amp;lt;/head&amp;gt;&lt;br /&gt;&amp;lt;body&amp;gt;&lt;br /&gt;The following prints "Hello, World"&lt;br /&gt;&amp;lt;?php&lt;br /&gt;print "Hello World" ;&lt;br /&gt;?&amp;gt;&lt;br /&gt;&amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt;&lt;br /&gt;&lt;br /&gt;this will lead to this output&lt;br /&gt;&amp;lt;html&amp;gt;&lt;br /&gt;&amp;lt;head&amp;gt;Sample PHP Script&amp;lt;/head&amp;gt;&lt;br /&gt;&amp;lt;body&amp;gt;&lt;br /&gt;The following prints "Hello, World"&lt;br /&gt;"Hello World"&lt;br /&gt;&lt;br /&gt;&amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt;&lt;br /&gt;&lt;br /&gt;Comment&lt;br /&gt;/*&lt;br /&gt;* this is C way&lt;br /&gt;*/&lt;br /&gt;&lt;br /&gt;// this still is c way&lt;br /&gt;&lt;br /&gt;# this is shell way&lt;br /&gt;&lt;br /&gt;VARIABLES&lt;br /&gt;its very different from C and Java you dont need to declare their variable before using them, you dont declare their type as result variable can change their type of its value as much as you want.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8269611590958753121-1159593950486963854?l=learningphp5.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://learningphp5.blogspot.com/feeds/1159593950486963854/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8269611590958753121&amp;postID=1159593950486963854' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8269611590958753121/posts/default/1159593950486963854'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8269611590958753121/posts/default/1159593950486963854'/><link rel='alternate' type='text/html' href='http://learningphp5.blogspot.com/2008/02/php-5-first-touch.html' title='PHP 5 First Touch'/><author><name>Riquelme</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
