<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Scrapbook of a Tech-intoxicated Life</title>
	<atom:link href="http://arrayofpointers.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://arrayofpointers.wordpress.com</link>
	<description>..... the sweet intoxication! ....</description>
	<lastBuildDate>Thu, 22 Dec 2011 04:18:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='arrayofpointers.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/919ac70ddbde463504b9b154d6b33412?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Scrapbook of a Tech-intoxicated Life</title>
		<link>http://arrayofpointers.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://arrayofpointers.wordpress.com/osd.xml" title="Scrapbook of a Tech-intoxicated Life" />
	<atom:link rel='hub' href='http://arrayofpointers.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Opening a pop up window using Javascript</title>
		<link>http://arrayofpointers.wordpress.com/2011/10/04/opening-a-pop-up-window-using-javascript/</link>
		<comments>http://arrayofpointers.wordpress.com/2011/10/04/opening-a-pop-up-window-using-javascript/#comments</comments>
		<pubDate>Tue, 04 Oct 2011 05:56:55 +0000</pubDate>
		<dc:creator>mahmud faisal</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[PHP MySQL]]></category>
		<category><![CDATA[window.open function]]></category>
		<category><![CDATA[X window.open function javascript]]></category>

		<guid isPermaLink="false">http://arrayofpointers.wordpress.com/?p=309</guid>
		<description><![CDATA[I was in need of a JS function of opening a pop up window. I found a wonderful tutorial about this from Here Here is the Javascript Function for POP UP window named popitup() The interesting part is, the the &#8230; <a href="http://arrayofpointers.wordpress.com/2011/10/04/opening-a-pop-up-window-using-javascript/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=arrayofpointers.wordpress.com&amp;blog=9964963&amp;post=309&amp;subd=arrayofpointers&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I was in need of a JS function of opening a pop up window. I found a wonderful tutorial about this from <a href="http://www.quirksmode.org/js/popup.html">Here</a>  Here is the Javascript Function for POP UP window named popitup()</p>
<p><pre class="brush: jscript;">

&lt;script type=&quot;text/javascript&quot;&gt;// 
function popitup(url) {
       newwindow=window.open(url,'name','scrollbars,height=500,width=500','scrollbars');
       if (window.focus) {newwindow.focus()}
       return false;
}
&lt;/script&gt;

</pre></p>
<p>The interesting part is, the the <strong>window.open()</strong> function. The arguments of this function are mainly three. First one is URL, second is NAME. and in third one we can put many characteristics of the popup window. they will have to be in a single quotation mark and distinguished by comma(,) For example, see the above window.open function <strong>window.open(url,&#8217;name&#8217;,'scrollbars,height=500,width=500&#8242;)</strong>. Here after url, name, all other scrollbars, height, width are taken in the single quotation marks.</p>
<p>More functionality can be added in this THIRD part of the argument of window.open() function:</p>
<p>dependent<br />
directories<br />
fullscreen<br />
location<br />
menubar<br />
resizable<br />
scrollbars<br />
status<br />
toolbar<br />
top=200<br />
left=400<br />
width=200<br />
height=200<br />
screenX=400<br />
screenY=200</p>
<p><pre class="brush: php;">

 &lt;a onclick=&quot;return popitup('popupex.html')&quot; href=&quot;popupex.html&quot;&gt;Link to popup&lt;/a&gt;

</pre></p>
<br />Filed under: <a href='http://arrayofpointers.wordpress.com/category/javascript/'>Javascript</a>, <a href='http://arrayofpointers.wordpress.com/category/php-mysql/'>PHP MySQL</a> Tagged: <a href='http://arrayofpointers.wordpress.com/tag/window-open-function/'>window.open function</a>, <a href='http://arrayofpointers.wordpress.com/tag/x-window-open-function-javascript/'>X window.open function javascript</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/arrayofpointers.wordpress.com/309/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/arrayofpointers.wordpress.com/309/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/arrayofpointers.wordpress.com/309/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/arrayofpointers.wordpress.com/309/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/arrayofpointers.wordpress.com/309/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/arrayofpointers.wordpress.com/309/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/arrayofpointers.wordpress.com/309/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/arrayofpointers.wordpress.com/309/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/arrayofpointers.wordpress.com/309/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/arrayofpointers.wordpress.com/309/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/arrayofpointers.wordpress.com/309/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/arrayofpointers.wordpress.com/309/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/arrayofpointers.wordpress.com/309/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/arrayofpointers.wordpress.com/309/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=arrayofpointers.wordpress.com&amp;blog=9964963&amp;post=309&amp;subd=arrayofpointers&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://arrayofpointers.wordpress.com/2011/10/04/opening-a-pop-up-window-using-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9c4b6c59f5e4a0f86b1b5ecd61541dcf?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">Mahmud faisal</media:title>
		</media:content>
	</item>
		<item>
		<title>sending php array variable as link to argument of javascript function</title>
		<link>http://arrayofpointers.wordpress.com/2011/10/04/sending-php-array-variable-as-link-to-argument-of-javascript-function/</link>
		<comments>http://arrayofpointers.wordpress.com/2011/10/04/sending-php-array-variable-as-link-to-argument-of-javascript-function/#comments</comments>
		<pubDate>Tue, 04 Oct 2011 05:33:45 +0000</pubDate>
		<dc:creator>mahmud faisal</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[PHP MySQL]]></category>

		<guid isPermaLink="false">http://arrayofpointers.wordpress.com/?p=308</guid>
		<description><![CDATA[I have got a javascript function popitup() which will be used for opening a pop up window. I have PHP Array variable $row_rstest['id'] which holds the ID of a data set fetched from database. I have a page named print_data.php. &#8230; <a href="http://arrayofpointers.wordpress.com/2011/10/04/sending-php-array-variable-as-link-to-argument-of-javascript-function/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=arrayofpointers.wordpress.com&amp;blog=9964963&amp;post=308&amp;subd=arrayofpointers&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have got a javascript function <strong>popitup()</strong> which will be used for opening a pop up window. I have PHP Array variable <strong>$row_rstest['id']</strong> which holds the ID of a data set fetched from database.<br />
I have a page named print_data.php. To view the data of this page the url should be like <em>print.data?id=12</em><br />
I have taken this in variable $url.</p>
<p><pre class="brush: php;">
 &lt;?php $url = &quot;print_data.php?id=&quot;.$row_rstest['id']; ?&gt;
</pre></p>
<p>Then passed this $url in function popitup(). The important thing is to put the sign (&#8216;) around $url variable. Otherwise the function didn&#8217;t work for link.</p>
<p><pre class="brush: php;">
  &lt;?php echo &quot;&lt;a href=\&quot;\&quot; onClick=\&quot;return popitup('$url') \&quot;&gt;Click here to open a pop up window&lt;/a&gt;&quot;; ?&gt;
          
</pre></p>
<br />Filed under: <a href='http://arrayofpointers.wordpress.com/category/javascript/'>Javascript</a>, <a href='http://arrayofpointers.wordpress.com/category/php-mysql/'>PHP MySQL</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/arrayofpointers.wordpress.com/308/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/arrayofpointers.wordpress.com/308/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/arrayofpointers.wordpress.com/308/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/arrayofpointers.wordpress.com/308/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/arrayofpointers.wordpress.com/308/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/arrayofpointers.wordpress.com/308/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/arrayofpointers.wordpress.com/308/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/arrayofpointers.wordpress.com/308/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/arrayofpointers.wordpress.com/308/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/arrayofpointers.wordpress.com/308/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/arrayofpointers.wordpress.com/308/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/arrayofpointers.wordpress.com/308/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/arrayofpointers.wordpress.com/308/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/arrayofpointers.wordpress.com/308/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=arrayofpointers.wordpress.com&amp;blog=9964963&amp;post=308&amp;subd=arrayofpointers&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://arrayofpointers.wordpress.com/2011/10/04/sending-php-array-variable-as-link-to-argument-of-javascript-function/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9c4b6c59f5e4a0f86b1b5ecd61541dcf?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">Mahmud faisal</media:title>
		</media:content>
	</item>
		<item>
		<title>Hide Print Button While Printing A Page</title>
		<link>http://arrayofpointers.wordpress.com/2011/10/03/hide-print-button-while-printing-a-page/</link>
		<comments>http://arrayofpointers.wordpress.com/2011/10/03/hide-print-button-while-printing-a-page/#comments</comments>
		<pubDate>Mon, 03 Oct 2011 06:06:20 +0000</pubDate>
		<dc:creator>mahmud faisal</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[hide print button to print page]]></category>
		<category><![CDATA[print page without print button]]></category>

		<guid isPermaLink="false">http://arrayofpointers.wordpress.com/?p=303</guid>
		<description><![CDATA[I was in a problem today. I tried to print a page which I developed in PHP. I inserted a PRINT button in it. but while I was using JS function window.print() which was printing my PRINT button too! So &#8230; <a href="http://arrayofpointers.wordpress.com/2011/10/03/hide-print-button-while-printing-a-page/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=arrayofpointers.wordpress.com&amp;blog=9964963&amp;post=303&amp;subd=arrayofpointers&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I was in a problem today. I tried to print a page which I developed in PHP. I inserted a PRINT button in it. but while I was using JS function <em>window.print() </em> which was printing my PRINT button too! So I took the help of CSS to solve the problem. just used 3 line codes before the button. I named the button id as &#8220;btnPrint&#8221; and in CSS it was set as display:none. So while the page was being printed, the button was not! </p>
<p>You can follow the code! it&#8217;s simple <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><pre class="brush: css;">


&lt;style type=&quot;text/css&quot;&gt;
@media print {
input#btnPrint {
display: none;
}
}
&lt;/style&gt; 

</pre></p>
<p><pre class="brush: css;">

&lt;input type=&quot;button&quot; id=&quot;btnPrint&quot; onclick=&quot;window.print();&quot; value=&quot;Print Page&quot; /&gt;
</pre></p>
<br />Filed under: <a href='http://arrayofpointers.wordpress.com/category/css/'>CSS</a>, <a href='http://arrayofpointers.wordpress.com/category/javascript/'>Javascript</a> Tagged: <a href='http://arrayofpointers.wordpress.com/tag/hide-print-button-to-print-page/'>hide print button to print page</a>, <a href='http://arrayofpointers.wordpress.com/tag/print-page-without-print-button/'>print page without print button</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/arrayofpointers.wordpress.com/303/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/arrayofpointers.wordpress.com/303/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/arrayofpointers.wordpress.com/303/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/arrayofpointers.wordpress.com/303/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/arrayofpointers.wordpress.com/303/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/arrayofpointers.wordpress.com/303/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/arrayofpointers.wordpress.com/303/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/arrayofpointers.wordpress.com/303/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/arrayofpointers.wordpress.com/303/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/arrayofpointers.wordpress.com/303/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/arrayofpointers.wordpress.com/303/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/arrayofpointers.wordpress.com/303/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/arrayofpointers.wordpress.com/303/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/arrayofpointers.wordpress.com/303/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=arrayofpointers.wordpress.com&amp;blog=9964963&amp;post=303&amp;subd=arrayofpointers&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://arrayofpointers.wordpress.com/2011/10/03/hide-print-button-while-printing-a-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9c4b6c59f5e4a0f86b1b5ecd61541dcf?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">Mahmud faisal</media:title>
		</media:content>
	</item>
		<item>
		<title>Names of Images Saved in PHP Server Root Are Case Sensitive</title>
		<link>http://arrayofpointers.wordpress.com/2011/09/27/names-of-images-saved-in-server-root-are-case-sensitive/</link>
		<comments>http://arrayofpointers.wordpress.com/2011/09/27/names-of-images-saved-in-server-root-are-case-sensitive/#comments</comments>
		<pubDate>Tue, 27 Sep 2011 11:27:03 +0000</pubDate>
		<dc:creator>mahmud faisal</dc:creator>
				<category><![CDATA[PHP MySQL]]></category>

		<guid isPermaLink="false">http://arrayofpointers.wordpress.com/2011/09/27/names-of-images-saved-in-server-root-are-case-sensitive/</guid>
		<description><![CDATA[I used some images in my PHP scripts. I typed the perfect names of images (eg chair.jpg) in my PHP script. Though in my web root directory, the images are stored by the same name, in output, I didn&#8217;t find &#8230; <a href="http://arrayofpointers.wordpress.com/2011/09/27/names-of-images-saved-in-server-root-are-case-sensitive/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=arrayofpointers.wordpress.com&amp;blog=9964963&amp;post=299&amp;subd=arrayofpointers&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I used some images in my PHP scripts. I typed the perfect names of images (eg chair.jpg) in my PHP script. Though in my web root directory, the images are stored by the same name, in output, I didn&#8217;t find the images.</p>
<p>Later I found that, the image was named like &#8220;checked.PNG&#8221; in my web root. But in my program, it was &#8220;checked.png&#8221;.<br />
For having lower case in my code [png] but main image was in upper case [PNG], I didn&#8217;t find the image in output screen after loading.</p>
<p>This scenario doesn&#8217;t happen always. It varies! I found output the other time though the extension was different [one was in upper case and the other in lower case]</p>
<br />Filed under: <a href='http://arrayofpointers.wordpress.com/category/php-mysql/'>PHP MySQL</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/arrayofpointers.wordpress.com/299/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/arrayofpointers.wordpress.com/299/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/arrayofpointers.wordpress.com/299/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/arrayofpointers.wordpress.com/299/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/arrayofpointers.wordpress.com/299/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/arrayofpointers.wordpress.com/299/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/arrayofpointers.wordpress.com/299/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/arrayofpointers.wordpress.com/299/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/arrayofpointers.wordpress.com/299/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/arrayofpointers.wordpress.com/299/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/arrayofpointers.wordpress.com/299/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/arrayofpointers.wordpress.com/299/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/arrayofpointers.wordpress.com/299/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/arrayofpointers.wordpress.com/299/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=arrayofpointers.wordpress.com&amp;blog=9964963&amp;post=299&amp;subd=arrayofpointers&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://arrayofpointers.wordpress.com/2011/09/27/names-of-images-saved-in-server-root-are-case-sensitive/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9c4b6c59f5e4a0f86b1b5ecd61541dcf?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">Mahmud faisal</media:title>
		</media:content>
	</item>
		<item>
		<title>Simple JavaScript code to print a page</title>
		<link>http://arrayofpointers.wordpress.com/2011/09/27/simple-javascript-code-to-print-a-page/</link>
		<comments>http://arrayofpointers.wordpress.com/2011/09/27/simple-javascript-code-to-print-a-page/#comments</comments>
		<pubDate>Tue, 27 Sep 2011 04:59:21 +0000</pubDate>
		<dc:creator>mahmud faisal</dc:creator>
				<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://arrayofpointers.wordpress.com/?p=294</guid>
		<description><![CDATA[Or to put a hyperlink on an image, the following code is nice: Filed under: Javascript<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=arrayofpointers.wordpress.com&amp;blog=9964963&amp;post=294&amp;subd=arrayofpointers&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><pre class="brush: jscript;">

&lt;SCRIPT LANGUAGE=&quot;JavaScript&quot;&gt; 
if (window.print) {
document.write('&lt;form&gt;&lt;input type=button name=print value=&quot;Print&quot; onClick=&quot;window.print()&quot;&gt;&lt;/form&gt;');
}
&lt;/script&gt;


</pre></p>
<p>Or to put a hyperlink on an image, the following code is nice:</p>
<p><pre class="brush: jscript;">

&lt;a href=&quot;javascript:window.print()&quot;&gt;&lt;img src=&quot;images/forward.png&quot;&gt;&lt;/a&gt;

</pre></p>
<br />Filed under: <a href='http://arrayofpointers.wordpress.com/category/javascript/'>Javascript</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/arrayofpointers.wordpress.com/294/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/arrayofpointers.wordpress.com/294/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/arrayofpointers.wordpress.com/294/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/arrayofpointers.wordpress.com/294/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/arrayofpointers.wordpress.com/294/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/arrayofpointers.wordpress.com/294/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/arrayofpointers.wordpress.com/294/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/arrayofpointers.wordpress.com/294/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/arrayofpointers.wordpress.com/294/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/arrayofpointers.wordpress.com/294/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/arrayofpointers.wordpress.com/294/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/arrayofpointers.wordpress.com/294/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/arrayofpointers.wordpress.com/294/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/arrayofpointers.wordpress.com/294/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=arrayofpointers.wordpress.com&amp;blog=9964963&amp;post=294&amp;subd=arrayofpointers&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://arrayofpointers.wordpress.com/2011/09/27/simple-javascript-code-to-print-a-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9c4b6c59f5e4a0f86b1b5ecd61541dcf?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">Mahmud faisal</media:title>
		</media:content>
	</item>
		<item>
		<title>Inserting form variables into mysql database query string</title>
		<link>http://arrayofpointers.wordpress.com/2011/09/26/inserting-form-variables-into-mysql-database-query-string/</link>
		<comments>http://arrayofpointers.wordpress.com/2011/09/26/inserting-form-variables-into-mysql-database-query-string/#comments</comments>
		<pubDate>Mon, 26 Sep 2011 10:46:37 +0000</pubDate>
		<dc:creator>mahmud faisal</dc:creator>
				<category><![CDATA[PHP MySQL]]></category>

		<guid isPermaLink="false">http://arrayofpointers.wordpress.com/?p=289</guid>
		<description><![CDATA[I was working with a form where I need to insert some form variables in my MySQL database. Inserting data into database is not any problematic issue. But as I had to insert dynamic data contained by the form variables, &#8230; <a href="http://arrayofpointers.wordpress.com/2011/09/26/inserting-form-variables-into-mysql-database-query-string/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=arrayofpointers.wordpress.com&amp;blog=9964963&amp;post=289&amp;subd=arrayofpointers&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I was working with a form where I need to insert some form variables in my MySQL database. Inserting data into database is not any problematic issue. But as I had to insert dynamic data contained by the form variables, I faced a little problem. The solution is very very simple! <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><pre class="brush: php;">

//variables will contain the data stored in the form variable id, hod, status
$soid = $_POST['id']; 
$employeeid = $_POST['hod'];	
$statusto = $_POST['status'];
	
// the is the SQL query to insert into database

$sql = &quot;INSERT INTO `service_order`.`change_log` (`service_order_id`, `employee_id`, `changed_to`) VALUES ('&quot;.$soid.&quot;', '&quot;.$employeeid.&quot;', '&quot;.$statusto.&quot;')&quot;;

</pre></p>
<p>the most important thing is &#8212; putting the dot(.) and double quotation(&#8220;) and single quotation(&#8216;) around the variables $soid, $employeeid and $satusto</p>
<p>For not using these three symbols properly, I found errors in my program</p>
<br />Filed under: <a href='http://arrayofpointers.wordpress.com/category/php-mysql/'>PHP MySQL</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/arrayofpointers.wordpress.com/289/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/arrayofpointers.wordpress.com/289/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/arrayofpointers.wordpress.com/289/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/arrayofpointers.wordpress.com/289/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/arrayofpointers.wordpress.com/289/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/arrayofpointers.wordpress.com/289/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/arrayofpointers.wordpress.com/289/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/arrayofpointers.wordpress.com/289/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/arrayofpointers.wordpress.com/289/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/arrayofpointers.wordpress.com/289/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/arrayofpointers.wordpress.com/289/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/arrayofpointers.wordpress.com/289/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/arrayofpointers.wordpress.com/289/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/arrayofpointers.wordpress.com/289/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=arrayofpointers.wordpress.com&amp;blog=9964963&amp;post=289&amp;subd=arrayofpointers&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://arrayofpointers.wordpress.com/2011/09/26/inserting-form-variables-into-mysql-database-query-string/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9c4b6c59f5e4a0f86b1b5ecd61541dcf?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">Mahmud faisal</media:title>
		</media:content>
	</item>
		<item>
		<title>Comparing date type variables as form inputs in PHP</title>
		<link>http://arrayofpointers.wordpress.com/2011/09/19/comparing-date-type-variables-as-form-inputs-in-php/</link>
		<comments>http://arrayofpointers.wordpress.com/2011/09/19/comparing-date-type-variables-as-form-inputs-in-php/#comments</comments>
		<pubDate>Mon, 19 Sep 2011 09:16:52 +0000</pubDate>
		<dc:creator>mahmud faisal</dc:creator>
				<category><![CDATA[PHP MySQL]]></category>

		<guid isPermaLink="false">http://arrayofpointers.wordpress.com/?p=287</guid>
		<description><![CDATA[I was working with a search module where I needed to work upon the user &#8220;date&#8221; inputs. The form inputs of dates were string type like &#8220;2011-05-06&#8243;. I had to confirm few things: &#8211; if both of the input fields &#8230; <a href="http://arrayofpointers.wordpress.com/2011/09/19/comparing-date-type-variables-as-form-inputs-in-php/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=arrayofpointers.wordpress.com&amp;blog=9964963&amp;post=287&amp;subd=arrayofpointers&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I was working with a search module where I needed to work upon the user &#8220;date&#8221; inputs. The form inputs of dates were string type like &#8220;2011-05-06&#8243;. I had to confirm few things:<br />
&#8211; if both of the input fields [said as $var6 and $var7] are blank or not.<br />
&#8211; if first one [$var6] is filled only<br />
&#8211; if second date [$var7] is filled only<br />
&#8211; user can give two dates in any order. BUT MYSQL &#8216;BETWEEN&#8217; command [which I used to compare two dates] expects the first argument as early number and second one as big number. so I had to swap two numbers in proper order<br />
here goes some additional needless info,<br />
$var6 = @$_GET['date_1'] ;<br />
$var7 = @$_GET['date_2'] ;<br />
$wh = &#8220;WHERE&#8221;; //initializing variable<br />
$cond6 = &#8220;&#8221;; // initializing variable<br />
<span id="more-287"></span><br />
<pre class="brush: php;">
// this is for date variables var6 and var7 is date variable
		if($var6 == &quot;0000-00-00&quot;) //as blank inputs came in this format, I made them NULL
		{
			$var6 = &quot;&quot;;
			}
			if($var7 == &quot;0000-00-00&quot;)
		{
			$var7 = &quot;&quot;;
			}
	
	
	if($var6 &lt;&gt; &quot;&quot;) // input is given 
	{	
		if($var7 &lt;&gt; &quot;&quot;) // input is given
		{ 
			if($var6 &lt; $var7)
			{	
				$cond6 = $wh.&quot; date BETWEEN &quot;.&quot;'&quot;.$var6.&quot;'&quot;.&quot; AND &quot;.&quot;'&quot;.$var7.&quot;'&quot;;
				}
				
			if($var6 == $var7)
			{
				$cond6 = $wh.&quot; date = &quot;.&quot;'&quot;.$var6.&quot;'&quot;;
				}
				
			if($var6 &gt; $var7)
			{
				$var8 = $var7;
				$var9 = $var6;
				$cond6 = $wh.&quot; date BETWEEN &quot;.&quot;'&quot;.$var8.&quot;'&quot;.&quot; AND &quot;.&quot;'&quot;.$var9.&quot;'&quot;;
				}
		}
			
			if($var7 == &quot;&quot;)
				{
					$cond6 = $wh.&quot; date = &quot;.&quot;'&quot;.$var6.&quot;'&quot;;
					}
	}
		
		if($var6 = &quot;&quot;)
	
		{
			if($var7 &lt;&gt; &quot;&quot;)
			{
				$cond6 = $wh.&quot; date = &quot;.&quot;'&quot;.$var7.&quot;'&quot;;
				}

			if($var7 == &quot;&quot;)
			{
				$cond6 = &quot;&quot;;
				}
			}
				
</pre></p>
<p>PS: $cond6 is the variable here which I used to make a part of a whole SQL string.<br />
Whole string was like:<br />
<pre class="brush: sql;">
$query = &quot;SELECT * from Mahmud WHERE&quot;.$condition;
</pre></p>
<p>Here goes the $condition which I used:<br />
<pre class="brush: php;">
$condition = $cond1.$cond2.$cond3.$cond4.$cond5.$cond6;
</pre></p>
<br />Filed under: <a href='http://arrayofpointers.wordpress.com/category/php-mysql/'>PHP MySQL</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/arrayofpointers.wordpress.com/287/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/arrayofpointers.wordpress.com/287/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/arrayofpointers.wordpress.com/287/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/arrayofpointers.wordpress.com/287/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/arrayofpointers.wordpress.com/287/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/arrayofpointers.wordpress.com/287/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/arrayofpointers.wordpress.com/287/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/arrayofpointers.wordpress.com/287/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/arrayofpointers.wordpress.com/287/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/arrayofpointers.wordpress.com/287/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/arrayofpointers.wordpress.com/287/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/arrayofpointers.wordpress.com/287/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/arrayofpointers.wordpress.com/287/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/arrayofpointers.wordpress.com/287/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=arrayofpointers.wordpress.com&amp;blog=9964963&amp;post=287&amp;subd=arrayofpointers&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://arrayofpointers.wordpress.com/2011/09/19/comparing-date-type-variables-as-form-inputs-in-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9c4b6c59f5e4a0f86b1b5ecd61541dcf?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">Mahmud faisal</media:title>
		</media:content>
	</item>
		<item>
		<title>Error: mysql_num_rows() expects parameter 1 to be resource</title>
		<link>http://arrayofpointers.wordpress.com/2011/09/15/mysql_num_rows-expects-parameter-1-to-be-resource/</link>
		<comments>http://arrayofpointers.wordpress.com/2011/09/15/mysql_num_rows-expects-parameter-1-to-be-resource/#comments</comments>
		<pubDate>Thu, 15 Sep 2011 08:04:17 +0000</pubDate>
		<dc:creator>mahmud faisal</dc:creator>
				<category><![CDATA[PHP MySQL]]></category>

		<guid isPermaLink="false">http://arrayofpointers.wordpress.com/?p=280</guid>
		<description><![CDATA[I was trying to pull some values from Database using PHP. My DB is MySQL. Suddenly I found the error: mysql_num_rows() expects parameter 1 to be resource, boolean given in I was trying to find out the problem. I went &#8230; <a href="http://arrayofpointers.wordpress.com/2011/09/15/mysql_num_rows-expects-parameter-1-to-be-resource/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=arrayofpointers.wordpress.com&amp;blog=9964963&amp;post=280&amp;subd=arrayofpointers&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I was trying to pull some values from Database using PHP. My DB is MySQL. Suddenly I found the error:</p>
<blockquote><p>mysql_num_rows() expects parameter 1 to be resource, boolean given in</p></blockquote>
<p>I was trying to find out the problem. I went through the <a href="http://www.daniweb.com/web-development/php/threads/216056">forum post in Daniweb </a> after googling </p>
<p>Finally I fixed it. What was TROLLING is just a [ ' ' ] sign</p>
<p><strong>My query which was giving error:</strong></p>
<p><pre class="brush: sql;">
$query = &quot;select * from service_order where account_manager_id = $var AND primary_connection_media= $var2&quot;;</pre></p>
<p>When I fixed the error by putting &#8221; around the variables, the query is:</p>
<p><pre class="brush: sql;">
$query = &quot;select * from service_order where account_manager_id = '$var' AND primary_connection_media= '$var2'&quot;;</pre></p>
<br />Filed under: <a href='http://arrayofpointers.wordpress.com/category/php-mysql/'>PHP MySQL</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/arrayofpointers.wordpress.com/280/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/arrayofpointers.wordpress.com/280/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/arrayofpointers.wordpress.com/280/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/arrayofpointers.wordpress.com/280/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/arrayofpointers.wordpress.com/280/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/arrayofpointers.wordpress.com/280/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/arrayofpointers.wordpress.com/280/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/arrayofpointers.wordpress.com/280/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/arrayofpointers.wordpress.com/280/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/arrayofpointers.wordpress.com/280/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/arrayofpointers.wordpress.com/280/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/arrayofpointers.wordpress.com/280/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/arrayofpointers.wordpress.com/280/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/arrayofpointers.wordpress.com/280/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=arrayofpointers.wordpress.com&amp;blog=9964963&amp;post=280&amp;subd=arrayofpointers&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://arrayofpointers.wordpress.com/2011/09/15/mysql_num_rows-expects-parameter-1-to-be-resource/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9c4b6c59f5e4a0f86b1b5ecd61541dcf?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">Mahmud faisal</media:title>
		</media:content>
	</item>
		<item>
		<title>A wonderful Calendar for picking date in PHP Input/Update forms</title>
		<link>http://arrayofpointers.wordpress.com/2011/07/31/a-wonderful-calendar-for-picking-date-in-php-inputupdate-forms/</link>
		<comments>http://arrayofpointers.wordpress.com/2011/07/31/a-wonderful-calendar-for-picking-date-in-php-inputupdate-forms/#comments</comments>
		<pubDate>Sun, 31 Jul 2011 05:46:41 +0000</pubDate>
		<dc:creator>mahmud faisal</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[PHP MySQL]]></category>

		<guid isPermaLink="false">http://arrayofpointers.wordpress.com/?p=270</guid>
		<description><![CDATA[I was writing PHP scripts the other day where I needed a calendar to pick dates. My user needs to pick date of any month or year. Problem was &#8212; Manual input of dates are tiresome and inefficient. On the &#8230; <a href="http://arrayofpointers.wordpress.com/2011/07/31/a-wonderful-calendar-for-picking-date-in-php-inputupdate-forms/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=arrayofpointers.wordpress.com&amp;blog=9964963&amp;post=270&amp;subd=arrayofpointers&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I was writing PHP scripts the other day where I needed a calendar to pick dates. My user needs to pick date of any month or year. Problem was &#8212; Manual input of dates are tiresome and inefficient. On the other hand, if inputs are in string, I need to convert them to &#8220;datetime&#8221; as my datatype is such in the MySQL DB.</p>
<p>I found a wonderful Calendar a <a href="http://www.triconsole.com/php/calendar_datepicker.php">website</a>. He made it in javascript and works very well. There are several layouts in the calendar from which developers can choose anyone. The more important thing is, you just need to pass the PHP variable which will store into the DB. You can have this Javascript Calendar from <a href="http://www.triconsole.com/php/calendar/calendar.zip">downloading from this link </a>. </p>
<p><strong>This code segment is for taking input and inserting into database</strong><br />
<pre class="brush: php;">
/*include this section*/
&lt;?php require_once('calendar/classes/tc_calendar.php'); ?&gt;

&lt;!-- calender js link--&gt;
&lt;script language=&quot;javascript&quot; src=&quot;calendar/calendar.js&quot;&gt;&lt;/script&gt;
&lt;!-- finished--&gt;
&lt;?php
	  $myCalendar = new tc_calendar(&quot;date5&quot;, true, false); //date5 is similar to the column name of DB 
	  $myCalendar-&gt;setIcon(&quot;calendar/images/iconCalendar.gif&quot;);
	  $myCalendar-&gt;setDate(date('d'), date('m'), date('Y'));
	  $myCalendar-&gt;setPath(&quot;calendar/&quot;);
	  $myCalendar-&gt;setYearInterval(2000, 2015);
	  $myCalendar-&gt;dateAllow('2008-05-13', '2015-03-01');
	  $myCalendar-&gt;setDateFormat('j F Y');
	  $myCalendar-&gt;setAlignment('left', 'bottom');
	  $myCalendar-&gt;setSpecificDate(array(&quot;2011-04-01&quot;, &quot;2011-04-04&quot;, &quot;2011-12-25&quot;), 0, 'year');
	  $myCalendar-&gt;setSpecificDate(array(&quot;2011-04-10&quot;, &quot;2011-04-14&quot;), 0, 'month');
	  $myCalendar-&gt;setSpecificDate(array(&quot;2011-06-01&quot;), 0, '');
	  $myCalendar-&gt;writeScript();
	  ?&gt;

</pre><br />
<span id="more-270"></span></p>
<p><strong>This code segment is for Updating date into database</strong><br />
You need to bring out a variable ($BIRTHDAY in this example) that is used to extract data from DB. like, if you use and array like mysql_fetch_array($birthday) to extract data from DB. you can use <em>$BIRTHDAY = mysql_fetch_array($birthday)</em>. The code segment will make clear everything I believe.</p>
<p><pre class="brush: php;">
/*include this section*/
&lt;?php require_once('calendar/classes/tc_calendar.php'); ?&gt;

&lt;!-- calender js link--&gt;
&lt;script language=&quot;javascript&quot; src=&quot;calendar/calendar.js&quot;&gt;&lt;/script&gt;
&lt;!-- finished--&gt;
&lt;?php
	 $myCalendar = new tc_calendar(&quot;date1&quot;, true, true);
         $myCalendar-&gt;zindex = 150; //default 1
         $myCalendar-&gt;setIcon(&quot;calendar/images/iconCalendar.gif&quot;);
         $myCalendar-&gt;setPath(&quot;calendar/&quot;);
         if(isset($BIRTHDAY))
         /*this portion works to show DB date to form*/
         {
         $birth_day = strtotime($BIRTHDAY); //$BIRTHDAY is the variable extracted from DB
         $myCalendar-&gt;setDate(date('d',$birth_day), date('m',$birth_day), date('Y',$birth_day));
         }
         /*tricky portion ends here*/
         $myCalendar-&gt;setYearInterval(1935, date('Y'));
         $myCalendar-&gt;dateAllow('1935-01-01', date('Y-m-d'));
         $myCalendar-&gt;writeScript();
?&gt;

</pre></p>
<br />Filed under: <a href='http://arrayofpointers.wordpress.com/category/javascript/'>Javascript</a>, <a href='http://arrayofpointers.wordpress.com/category/php-mysql/'>PHP MySQL</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/arrayofpointers.wordpress.com/270/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/arrayofpointers.wordpress.com/270/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/arrayofpointers.wordpress.com/270/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/arrayofpointers.wordpress.com/270/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/arrayofpointers.wordpress.com/270/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/arrayofpointers.wordpress.com/270/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/arrayofpointers.wordpress.com/270/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/arrayofpointers.wordpress.com/270/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/arrayofpointers.wordpress.com/270/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/arrayofpointers.wordpress.com/270/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/arrayofpointers.wordpress.com/270/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/arrayofpointers.wordpress.com/270/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/arrayofpointers.wordpress.com/270/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/arrayofpointers.wordpress.com/270/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=arrayofpointers.wordpress.com&amp;blog=9964963&amp;post=270&amp;subd=arrayofpointers&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://arrayofpointers.wordpress.com/2011/07/31/a-wonderful-calendar-for-picking-date-in-php-inputupdate-forms/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9c4b6c59f5e4a0f86b1b5ecd61541dcf?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">Mahmud faisal</media:title>
		</media:content>
	</item>
		<item>
		<title>Insert, Update, Delete in PHP using Dreamweaver CS5</title>
		<link>http://arrayofpointers.wordpress.com/2011/06/29/insert-update-delete-using-dreamweaver-cs5/</link>
		<comments>http://arrayofpointers.wordpress.com/2011/06/29/insert-update-delete-using-dreamweaver-cs5/#comments</comments>
		<pubDate>Wed, 29 Jun 2011 12:16:51 +0000</pubDate>
		<dc:creator>mahmud faisal</dc:creator>
				<category><![CDATA[Dreamweaver CS5]]></category>
		<category><![CDATA[PHP MySQL]]></category>
		<category><![CDATA[insert input using dreamweaver]]></category>
		<category><![CDATA[update delete in dreamweaver]]></category>
		<category><![CDATA[using dreamweaver server behavior for insert update delete]]></category>

		<guid isPermaLink="false">http://arrayofpointers.wordpress.com/2011/06/29/insert-update-delete-using-dreamweaver-cs5/</guid>
		<description><![CDATA[Adding data to database using input in Forms We often need to insert data into database. We use forms to post the Data. This process is often lengthy and tiresome. You can easily insert data to Database Using Dreamweaver with &#8230; <a href="http://arrayofpointers.wordpress.com/2011/06/29/insert-update-delete-using-dreamweaver-cs5/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=arrayofpointers.wordpress.com&amp;blog=9964963&amp;post=258&amp;subd=arrayofpointers&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Adding data to database using input in Forms</strong></p>
<p>We often need to insert data into database. We use forms to post the Data. This process is often lengthy and tiresome. You can easily insert data to Database Using Dreamweaver with almost no hand coding. If you are already familiar with DreamweaverCS5, just need to follow the steps below:</p>
<ul>
<li>Insert a form</li>
</ul>
<ul>
<li>You can use tables to show the labels and Text fields and Lists for input</li>
</ul>
<ul>
<li>If you want to use a list Dynamic (that will show data in list items fetching somewhere from database), you need to do 2 things:</li>
</ul>
<p><span id="more-258"></span><br />
1. If menu items are from other table, create a Record set using SQL queries that will select the List Items.<br />
2. Select the expected menu list in the form, go to: Properties &gt; Dynamic<br />
§ Dynamic List: Options from recordset (select your Recordset)<br />
§ Select the Values (it is ID in most cases, you chose yours)<br />
§ Label (selects the label of the Menu List)<br />
§ As the value need to match any column of your existing Main recordset ( the main table where you want to insert data), select the SELECT EQUAL VALUE TO for the option.</p>
<ul>
<li>Server Behavior &gt; Insert Records &gt; Select Tables (chose in which table you want to insert data)</li>
</ul>
<p>o Try to select the primary key of that Table in the ID section that is to select<br />
o You can select where to go back after inserting data.<br />
<em>Tips:</em> If you create the names of fields of Form according to the names of DB columns, DW (Dreamweaver) finds and matches those fields automatically during Insert Options, including their datatypes</p>
<p><strong>Making List of Expected Data Using Dreamweaver<br />
</strong></p>
<p>Suppose I want to show a list that includes the information about the students of the class. You need to have a database.</p>
<ul>
<li>Connect to database</li>
<li>Creating a record set using BINDINGS PANEL (I need to use the perfect SQL here. There are ‘Simple’ and ‘Advanced’ options)</li>
<li>Go To : Insert &gt; Data Objects &gt; Dynamic Data &gt; Dynamic Table</li>
</ul>
<p>o Thus a list is generated. You can select how many rows you want to show in the list.<br />
o You can set First, Previous , Next, Last links about the list<br />
o Write FIRST anywhere, select this text, go to: Server Behavior &gt; Recordset Paging &gt; First/Previous/Next/Last<br />
o If you don’t want to show ‘First’ link in first page, go to: Server Behavior &gt; Show Region</p>
<p><strong>Updating data using input in Forms</strong></p>
<ul>
<li>Binding &gt; Recordset (new) which table of data I am going to update</li>
</ul>
<p>o Default SQL filtered by Primary Key<br />
o Filter = URL parameter = ID **</p>
<ul>
<li>Create the Form with text fields and lists…</li>
</ul>
<p>o Click on the field &gt; Properties &gt; init value<br />
o For list à dynamic &gt; ID label fix &gt; init value</p>
<ul>
<li>In action, need to pass ‘’hidden data entry form’’</li>
</ul>
<p>o Put cursor inside FORM.<br />
o Insert &gt; form &gt; hidden field<br />
o Click on design panel’s Hidden value à Id (which is PK ) as init value</p>
<ul>
<li>Find the hidden value, if not there, go to FIND ALL à ID = PK</li>
</ul>
<p>o If this is ‘’-1’’ then make it 1</p>
<ul>
<li>Go to Server Behavior à Update Record &lt;value&gt; FORM.pk as id</li>
</ul>
<ul>
<li>When you make link to EDIT page:</li>
</ul>
<p>o List page where id of specific entry is available<br />
o Make anyplace linked for ‘’update now’’ à properties &gt; link &gt;update.php<br />
o Go to Code view à &lt;a href = “update.php?id=**here is binding panel &gt;recordset &gt; id**&gt;</p>
<p><strong>Deleting data list in DW</strong></p>
<ul>
<li>Blank page, clear everything:</li>
</ul>
<ul>
<li>Server behavior &gt; Delete records &gt; primary key value &gt; id</li>
</ul>
<ul>
<li>Fist where to go after deletion</li>
</ul>
<ul>
<li>Now run the page.</li>
</ul>
<p>o If nothing is there, go to CODE<br />
o Find “delete go to{ …..} “ this portion out of the logical if segment and before the last brace.</p>
<ul>
<li>Link this file where to DELETE. In this linking, the link alphabetical case is factor, so need to be careful.</li>
</ul>
<br />Filed under: <a href='http://arrayofpointers.wordpress.com/category/php-mysql/dreamweaver-cs5/'>Dreamweaver CS5</a>, <a href='http://arrayofpointers.wordpress.com/category/php-mysql/'>PHP MySQL</a> Tagged: <a href='http://arrayofpointers.wordpress.com/tag/insert-input-using-dreamweaver/'>insert input using dreamweaver</a>, <a href='http://arrayofpointers.wordpress.com/tag/update-delete-in-dreamweaver/'>update delete in dreamweaver</a>, <a href='http://arrayofpointers.wordpress.com/tag/using-dreamweaver-server-behavior-for-insert-update-delete/'>using dreamweaver server behavior for insert update delete</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/arrayofpointers.wordpress.com/258/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/arrayofpointers.wordpress.com/258/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/arrayofpointers.wordpress.com/258/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/arrayofpointers.wordpress.com/258/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/arrayofpointers.wordpress.com/258/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/arrayofpointers.wordpress.com/258/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/arrayofpointers.wordpress.com/258/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/arrayofpointers.wordpress.com/258/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/arrayofpointers.wordpress.com/258/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/arrayofpointers.wordpress.com/258/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/arrayofpointers.wordpress.com/258/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/arrayofpointers.wordpress.com/258/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/arrayofpointers.wordpress.com/258/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/arrayofpointers.wordpress.com/258/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=arrayofpointers.wordpress.com&amp;blog=9964963&amp;post=258&amp;subd=arrayofpointers&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://arrayofpointers.wordpress.com/2011/06/29/insert-update-delete-using-dreamweaver-cs5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9c4b6c59f5e4a0f86b1b5ecd61541dcf?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">Mahmud faisal</media:title>
		</media:content>
	</item>
	</channel>
</rss>
