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

<channel>
	<title>Some PHP &#124; Wordpress Tips</title>
	<atom:link href="http://worth2read.org/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://worth2read.org/blog</link>
	<description>Wordpress &#124; PHP Tips</description>
	<lastBuildDate>Tue, 20 Jul 2010 14:31:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>How to add left and right sidebar for prosilver style &#8211; phpBB</title>
		<link>http://worth2read.org/blog/2010/07/20/how-to-add-left-and-right-sidebar-for-prosilver-style-phbb/</link>
		<comments>http://worth2read.org/blog/2010/07/20/how-to-add-left-and-right-sidebar-for-prosilver-style-phbb/#comments</comments>
		<pubDate>Tue, 20 Jul 2010 14:25:38 +0000</pubDate>
		<dc:creator>Gisha James</dc:creator>
				<category><![CDATA[phpBB]]></category>
		<category><![CDATA[prosilver]]></category>
		<category><![CDATA[sidebar]]></category>

		<guid isPermaLink="false">http://worth2read.org/blog/?p=221</guid>
		<description><![CDATA[Go to ACP&#8211;&#62; STYLES Click on Themes -&#62; Prosilver -&#62; Edit Add following at the end float:right; margin-top:4px; width:14%; for the class right-sidebar and float:left; margin-top:4px; width:14%; for the class left-sidebar Change #page-body to float:left; margin:4px 0pt; width:67%; So the sidebars will be 14% each and the middle area will be 67 %. Create 2 <a href='http://worth2read.org/blog/2010/07/20/how-to-add-left-and-right-sidebar-for-prosilver-style-phbb/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fworth2read.org%2Fblog%2F2010%2F07%2F20%2Fhow-to-add-left-and-right-sidebar-for-prosilver-style-phbb%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fworth2read.org%2Fblog%2F2010%2F07%2F20%2Fhow-to-add-left-and-right-sidebar-for-prosilver-style-phbb%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>Go to ACP&#8211;&gt; STYLES</p>
<p>Click on Themes -&gt; Prosilver -&gt; Edit</p>
<p>Add following at the end<br />
float:right;<br />
margin-top:4px;<br />
width:14%;<br />
for the class right-sidebar and<br />
float:left;<br />
margin-top:4px;<br />
width:14%;</p>
<p>for the class left-sidebar<br />
Change #page-body to<br />
float:left;<br />
margin:4px 0pt;<br />
width:67%;</p>
<p>So the sidebars will be 14% each and the middle area  will be 67 %.</p>
<p>Create 2 files, left_sidebar.html and right_sidebar.html and put corresponding code for sidebar there.</p>
<p>Now we have to call them.</p>
<p>To call left_sidebar.html, edit overall_header.html</p>
<p>Find</p>
<div id="page-body">
<p>include left_sidebar.html before this. That is add</p>
<div class="left-sidebar"><!-- INCLUDE left_sidebar.html --></div>
<p>To call right_sidebar.html, edit overall_footer.html<br />
Before</p>
<div id="page-footer">
<p>Add</p>
<div class="page-sidebar"><!-- INCLUDE right_sidebar.html --></div>
<p>Done !</p>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://worth2read.org/blog/2010/07/20/how-to-add-left-and-right-sidebar-for-prosilver-style-phbb/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to install ioncube in your server</title>
		<link>http://worth2read.org/blog/2010/06/20/install-ioncube-in-your-server/</link>
		<comments>http://worth2read.org/blog/2010/06/20/install-ioncube-in-your-server/#comments</comments>
		<pubDate>Mon, 21 Jun 2010 04:58:10 +0000</pubDate>
		<dc:creator>Gisha James</dc:creator>
				<category><![CDATA[PHP Tutorial]]></category>

		<guid isPermaLink="false">http://worth2read.org/blog/?p=195</guid>
		<description><![CDATA[Some scripts are encoded with ioncube. So to run the script, you need ioncube installed at your server. To install ioncube at your server, use the following instructions: Go to this page http://www.ioncube.com/loaders.php and download the package suitable for your operating system Unpack it and upload it to your server in the directory ioncube. The <a href='http://worth2read.org/blog/2010/06/20/install-ioncube-in-your-server/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fworth2read.org%2Fblog%2F2010%2F06%2F20%2Finstall-ioncube-in-your-server%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fworth2read.org%2Fblog%2F2010%2F06%2F20%2Finstall-ioncube-in-your-server%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>Some scripts are encoded with ioncube. So to run the script, you need ioncube installed at your server. To install ioncube at your server, use the following instructions:</p>
<ol>
<li>Go to this page http://www.ioncube.com/loaders.php and download the package suitable for your operating system</li>
<li>Unpack it and upload it to your server in the directory ioncube. The package contains the directory ioncube with loaders for different versions of operating system</li>
<li>Launch the Loader Wizard script in your browser. For example: http://yourdomain/ioncube/loader-wizard.php</li>
<li>Select for run time installation, if your server is Shared ( not dedicated ).</li>
<li>Follow the instructions there and the installation will be done successfully.</li>
<li>Contact the script provider if you do experience any problems  running encoded files.<strong><br />
</strong></li>
<li>For security reasons it is strongly advised to remove the Wizard script ( loader-wizard.php )  from your server after the installation of the ionCube  Loader</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://worth2read.org/blog/2010/06/20/install-ioncube-in-your-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Unable to update some wordpress users</title>
		<link>http://worth2read.org/blog/2010/06/20/unable-to-update-some-wordpress-users/</link>
		<comments>http://worth2read.org/blog/2010/06/20/unable-to-update-some-wordpress-users/#comments</comments>
		<pubDate>Mon, 21 Jun 2010 02:06:08 +0000</pubDate>
		<dc:creator>Gisha James</dc:creator>
				<category><![CDATA[Wordpress Customization]]></category>

		<guid isPermaLink="false">http://worth2read.org/blog/?p=192</guid>
		<description><![CDATA[One of my clients had this issue &#8211; unable to update some of the wordpress users. When trying to update some of the user, he was getting this error Catchable fatal error: Object of class __PHP_Incomplete_Class could not be converted to string in C:\web\wp28\wp\wp-includes\functions.php on line 1463 I went through many fixes, suggested in different <a href='http://worth2read.org/blog/2010/06/20/unable-to-update-some-wordpress-users/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fworth2read.org%2Fblog%2F2010%2F06%2F20%2Funable-to-update-some-wordpress-users%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fworth2read.org%2Fblog%2F2010%2F06%2F20%2Funable-to-update-some-wordpress-users%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>One of my clients had this issue &#8211; unable to update some of the wordpress users. When trying to update some of the user, he was getting this error<br />
Catchable fatal error: Object of class __PHP_Incomplete_Class could not be converted to string in C:\web\wp28\wp\wp-includes\functions.php  on line 1463</p>
<p>I went through many fixes, suggested in different threads, to edit the wordpress core file wp-includes\functions.php. None of them worked.</p>
<p>Since it only affects certain users I figured out that, the error may be because of the details of that particular user. I checked the database. I have seen some user meta keys related to a plugin which is uninstalled improperly. I deleted those meta keys and the error has gone away&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://worth2read.org/blog/2010/06/20/unable-to-update-some-wordpress-users/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to integrate Cyberbit payment gateway to a PHP Website</title>
		<link>http://worth2read.org/blog/2010/06/15/integrating-cyberbit-payment-gateway-to-a-php-website/</link>
		<comments>http://worth2read.org/blog/2010/06/15/integrating-cyberbit-payment-gateway-to-a-php-website/#comments</comments>
		<pubDate>Wed, 16 Jun 2010 04:03:26 +0000</pubDate>
		<dc:creator>Gisha James</dc:creator>
				<category><![CDATA[PHP Tutorial]]></category>

		<guid isPermaLink="false">http://worth2read.org/blog/?p=162</guid>
		<description><![CDATA[I could not find a guide to integrate cyberbit payment gateway to a website. So I thought to write one. First you need a merchant account with cybernet . When you start an account you will receive a test account with user name and password. Also you will receive some documents. It explains almost everything <a href='http://worth2read.org/blog/2010/06/15/integrating-cyberbit-payment-gateway-to-a-php-website/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fworth2read.org%2Fblog%2F2010%2F06%2F15%2Fintegrating-cyberbit-payment-gateway-to-a-php-website%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fworth2read.org%2Fblog%2F2010%2F06%2F15%2Fintegrating-cyberbit-payment-gateway-to-a-php-website%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>I could not find a guide to integrate cyberbit payment gateway to a website. So I thought to write one.</p>
<p>First you need a merchant account with <a href="http://www.cyberbit.eu/" target="_blank">cybernet</a> . When you start an account you will receive a test account with user name and password. Also you will receive some documents. It explains almost everything &#8211; how to integrate it. They also give you hash key for you to use in the code.</p>
<p>On the programming side, you have to create a form, so that the customers can enter  card holder details and shipping details. Then POST the data to cyberbit payment gateway.</p>
<p>Following is an example of Form  (taken from the document provided by Cyberbit)</p>
<p>&lt;form method=&#8221;POST&#8221; action=&#8221;https://test.xxxxx.xx/xxxx.php&#8221;&gt;<br />
&lt;input type=&#8221;hidden&#8221; value=&#8221;1&#8243; name=&#8221;transtype&#8221;&gt;<br />
&lt;input type=&#8221;hidden&#8221; value=&#8221;sdf6a6yr3f3df33&#8243; name=&#8221;secret&#8221;&gt;<br />
&lt;input type=&#8221;hidden&#8221; value=&#8221;https://www.cyberbit.eu/bjarne_test/accept.php&#8221;<br />
name=&#8221;accepturl&#8221;&gt;<br />
&lt;input type=&#8221;hidden&#8221; value=&#8221;CyberTest&#8221; name=&#8221;merchantid&#8221;&gt;<br />
&lt;input type=&#8221;hidden&#8221; value=&#8221;test3&#8243; name=&#8221;InternalorderId&#8221;&gt;<br />
&lt;input type=&#8221;hidden&#8221; value=&#8221;978&#8243; name=&#8221;currencycode&#8221;&gt;<br />
&lt;input type=&#8221;hidden&#8221; value=&#8221;100&#8243; name=&#8221;amountcleared&#8221;&gt;<br />
&lt;input type=&#8221;hidden&#8221; value=&#8221;28006f49d5ffc3a60adbe4898594e749ee34b055&#8243;<br />
name=&#8221;hash&#8221;&gt;<br />
&lt;input type=&#8221;hidden&#8221; value=&#8221;cardholder@email.com&#8221; name=&#8221;owneremail&#8221;&gt;<br />
&lt;input type=&#8221;hidden&#8221; value=&#8221;some street&#8221; name=&#8221;owneraddress&#8221;&gt;<br />
&lt;input type=&#8221;hidden&#8221; value=&#8221;123&#8243; name=&#8221;owneraddressnumber&#8221;&gt;<br />
&lt;input type=&#8221;hidden&#8221; value=&#8221;London&#8221; name=&#8221;ownercity&#8221;&gt;<br />
&lt;input type=&#8221;hidden&#8221; value=&#8221;OO&#8221; name=&#8221;ownerstate&#8221;&gt;<br />
&lt;input type=&#8221;hidden&#8221; value=&#8221;GB&#8221; name=&#8221;ownercountry&#8221;&gt;<br />
&lt;input type=&#8221;hidden&#8221; value=&#8221;Larry&#8221; name=&#8221;ownerfirstname&#8221;&gt;<br />
&lt;input type=&#8221;hidden&#8221; value=&#8221;Smith&#8221; name=&#8221;ownerlastname&#8221;&gt;<br />
&lt;input type=&#8221;hidden&#8221; value=&#8221;123456&#8243; name=&#8221;ownerzip&#8221;&gt;<br />
&lt;input type=&#8221;hidden&#8221; value=&#8221;xxxx&#8221; name=&#8221;ownerphone&#8221;&gt;<br />
&lt;input type=&#8221;hidden&#8221; value=&#8217;&#8221;Item Number&#8221;;&#8221;Item Description&#8221;;&#8221;Amount&#8221;;&#8221;Price&#8221;&#8216;<br />
name=&#8221;header&#8221;&gt;<br />
&lt;input type=&#8221;hidden&#8221; value=&#8217;&#8221;1&#8243;;&#8221;Blue car&#8221;;&#8221;1&#8243;;&#8221;1.000,00&#8243;&#8216; name=&#8221;orderline1&#8243;&gt;<br />
&lt;input type=&#8221;hidden&#8221; value=&#8217;&#8221;2&#8243;;&#8221;Red bike&#8221;;&#8221;2&#8243;;&#8221;250,00&#8243;&#8216; name=&#8221;orderline2&#8243;&gt;<br />
&lt;input type=&#8221;hidden&#8221; value=&#8217;&#8221;Shipping&#8221;;&#8221;150,00&#8243;&#8216; name=&#8221;shipping&#8221;&gt;<br />
&lt;input type=&#8221;hidden&#8221; value=&#8217;&#8221;Total&#8221;;&#8221;1.650,00&#8243;&#8216; name=&#8221;total&#8221;&gt;<br />
&lt;input type=&#8221;submit&#8221; value=&#8221;Make Payment&#8221;&gt;<br />
&lt;/form&gt;</p>
<p>All the variables are well defined in cyberbit document. In the above example all the values are defined. In real situation you have to take the input values.</p>
<p>Once the transaction is made cyberbit sends some data back to merchant&#8217;s server.  To receive that data we need to create a file. The URL of that file is called callback URL.</p>
<p>For safety ( I guess) in the test account, we don&#8217;t have the option to set callback URL. If we send the callback URL to cyberbit, they will update the callback URL info.</p>
<p>The server sends an xml file with all the relevant details of transaction  held. It also sends a fingerprint. we can calculate the fingerprint on our side and can match both fingerprints.</p>
<p>Some web servers, like Apache, will add slashes to all characters that could break communication. These are characters like &#8220;, &#8216;, `, etc. And since the XML sent in the xml post parameter does contain double-quotes it is possible that your web server added an escape character to the double-quote to  sanitize the string, so it would look like this \&#8221; instead of just &#8220;. This would result in a totally different SHA1 hash result as your XML string is slightly different than the one cyberbit used when they calculated the SHA1 code.</p>
<p>To avoid this, you can try stripping slashes form the XML string before you try an calculate the hash. In PHP this is very simply, simply do stripslashes($_POST['xml']);</p>
<p>If both matches, we can parse the xml and take the data we need and use it.</p>
<p>There are 2 other pages, called Accept URL and Decline URL.</p>
<p>Accept URL is the URL of the file we create to direct the customer upon successful completion of payment.</p>
<p>Decline URl is the URL of the file we create to direct the customer if the payment is declined.</p>
<p>We can set both Accept URL and Decline URL in cyberbet account.</p>
<p>An interesting thing is the shipping &#8211;&gt; name, phone and email is not yet used for the payment form, so we can&#8217;t send those data. They said they have plans to add them to the payment form.</p>
<p>I will try to add some more notes, when I get time.</p>
]]></content:encoded>
			<wfw:commentRss>http://worth2read.org/blog/2010/06/15/integrating-cyberbit-payment-gateway-to-a-php-website/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Is this a bug in Thesis theme?</title>
		<link>http://worth2read.org/blog/2010/04/22/is-this-a-bug-in-thesis-theme/</link>
		<comments>http://worth2read.org/blog/2010/04/22/is-this-a-bug-in-thesis-theme/#comments</comments>
		<pubDate>Thu, 22 Apr 2010 07:20:36 +0000</pubDate>
		<dc:creator>Gisha James</dc:creator>
				<category><![CDATA[Wordpress Customization]]></category>

		<guid isPermaLink="false">http://worth2read.org/blog/?p=153</guid>
		<description><![CDATA[In thesis theme, when we use teasers, we have the link &#8220;Read Full article&#8221;. But they have the nofollow tag. Is this a bug in the theme?  nofollow means Google and other search engines won&#8217;t follow the link. The home page won&#8217;t losss the page rank, but will the posts be indexed by Google? The <a href='http://worth2read.org/blog/2010/04/22/is-this-a-bug-in-thesis-theme/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fworth2read.org%2Fblog%2F2010%2F04%2F22%2Fis-this-a-bug-in-thesis-theme%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fworth2read.org%2Fblog%2F2010%2F04%2F22%2Fis-this-a-bug-in-thesis-theme%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>In thesis theme, when we use teasers, we have the link &#8220;Read Full article&#8221;.</p>
<p>But they have the nofollow tag.</p>
<p>Is this a bug in the theme?  nofollow means Google and other search engines won&#8217;t follow the link.</p>
<p>The home page won&#8217;t losss the page rank, but will the posts be indexed by Google?</p>
<p>The same issue is there with comments also. They also have nofollow tags.</p>
<p>We can remove them by editing the files, but I was just wondering why Thesis is forcing this nofollow tag to teasers and comments&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://worth2read.org/blog/2010/04/22/is-this-a-bug-in-thesis-theme/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Plugin : Send Notification by email when a post is published</title>
		<link>http://worth2read.org/blog/2010/02/21/wordpress-plugin-send-notification-by-email-when-a-post-is-published/</link>
		<comments>http://worth2read.org/blog/2010/02/21/wordpress-plugin-send-notification-by-email-when-a-post-is-published/#comments</comments>
		<pubDate>Sun, 21 Feb 2010 05:05:00 +0000</pubDate>
		<dc:creator>Gisha James</dc:creator>
				<category><![CDATA[Wordpress Plugins]]></category>
		<category><![CDATA[Email Notify]]></category>
		<category><![CDATA[wordpress Plugin]]></category>

		<guid isPermaLink="false">http://worth2read.org/blog/?p=137</guid>
		<description><![CDATA[Administrator, Author and Editor have the option to notify people by email when publishing the posts. Download Link For customizations: gsh [dot] james [at] gmail [dot] com screenshot]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fworth2read.org%2Fblog%2F2010%2F02%2F21%2Fwordpress-plugin-send-notification-by-email-when-a-post-is-published%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fworth2read.org%2Fblog%2F2010%2F02%2F21%2Fwordpress-plugin-send-notification-by-email-when-a-post-is-published%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>Administrator, Author and Editor have the option to notify people by email when publishing the posts.</p>
<p><a href="http://worth2read.org/blog/Email Notify.zip">Download Link</a></p>
<p>For customizations: gsh [dot] james [at] gmail [dot] com</p>
<p>screenshot</p>
<p><img class="size-full wp-image-139" title="screen" src="http://worth2read.org/blog/wp-content/uploads/2010/02/screen1.JPG" alt="Email Notify" width="293" height="618" /></p>
]]></content:encoded>
			<wfw:commentRss>http://worth2read.org/blog/2010/02/21/wordpress-plugin-send-notification-by-email-when-a-post-is-published/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Changing layout of products page in Zencart</title>
		<link>http://worth2read.org/blog/2010/02/11/changing-layout-of-products-page-in-zencart/</link>
		<comments>http://worth2read.org/blog/2010/02/11/changing-layout-of-products-page-in-zencart/#comments</comments>
		<pubDate>Thu, 11 Feb 2010 12:56:24 +0000</pubDate>
		<dc:creator>Gisha James</dc:creator>
				<category><![CDATA[Zencart]]></category>

		<guid isPermaLink="false">http://worth2read.org/blog/?p=132</guid>
		<description><![CDATA[To change the layout of products page in zencart edit the following  file: /includes/templates/template_default/templates/tpl_product_info_display.php, and moving blocks of code to where you want them. Each block is identified by and comments to make it easy to keep track of them.]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fworth2read.org%2Fblog%2F2010%2F02%2F11%2Fchanging-layout-of-products-page-in-zencart%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fworth2read.org%2Fblog%2F2010%2F02%2F11%2Fchanging-layout-of-products-page-in-zencart%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>To change the layout of products page in zencart edit the following  file:</p>
<p> /includes/templates/template_default/templates/tpl_product_info_display.php, and moving blocks of code to where you want them. </p>
<p>Each block is identified by <!--bof xxxx--> and <!--eof xxxx--> comments to make it easy to keep track of them.</p>
]]></content:encoded>
			<wfw:commentRss>http://worth2read.org/blog/2010/02/11/changing-layout-of-products-page-in-zencart/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Inserting data into access database using Asp.Net</title>
		<link>http://worth2read.org/blog/2010/01/29/inserting-data-into-access-database-using-asp-net/</link>
		<comments>http://worth2read.org/blog/2010/01/29/inserting-data-into-access-database-using-asp-net/#comments</comments>
		<pubDate>Fri, 29 Jan 2010 06:08:58 +0000</pubDate>
		<dc:creator>Gisha James</dc:creator>
				<category><![CDATA[Asp.net]]></category>
		<category><![CDATA[access database]]></category>
		<category><![CDATA[Inserting data into access database using Asp.Net]]></category>
		<category><![CDATA[mdb]]></category>

		<guid isPermaLink="false">http://worth2read.org/blog/?p=128</guid>
		<description><![CDATA[I was trying to insert data into access database from an asp.net page. I could not find any samples in tutorials. So I thought to put the code (that worked for me) here. If anyone is looking for a sample I hope it would be helpful. &#60;%@ Import Namespace=&#8221;System.Data.OleDb&#8221; %&#62; &#60;script runat=&#8221;server&#8221;&#62; Sub submit(sender As <a href='http://worth2read.org/blog/2010/01/29/inserting-data-into-access-database-using-asp-net/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fworth2read.org%2Fblog%2F2010%2F01%2F29%2Finserting-data-into-access-database-using-asp-net%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fworth2read.org%2Fblog%2F2010%2F01%2F29%2Finserting-data-into-access-database-using-asp-net%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>I was trying to insert data into access database from an asp.net page.</p>
<p>I could not find any samples in tutorials. So I thought to put the code (that worked for me) here. If anyone is looking for a sample I hope it would be helpful.</p>
<p>&lt;%@ Import Namespace=&#8221;System.Data.OleDb&#8221; %&gt;<br />
&lt;script runat=&#8221;server&#8221;&gt;<br />
Sub submit(sender As Object, e As EventArgs)</p>
<p>Dim conCoaxis As OleDbConnection<br />
Dim strInsert As String<br />
Dim cmdInsert As OleDbCommand<br />
Dim dtmDate As DateTime<br />
   <br />
dtmDate = DateTime.Now()<br />
 <br />
conCoaxis=New OleDbConnection(&#8220;Provider=Microsoft.Jet.OLEDB.4.0;data source=&#8221; &amp; server.mappath(&#8220;email.mdb&#8221;))<br />
strInsert = &#8220;INSERT INTO email (Email, Fname, CompanyName, [Date]) Values (@Email, @Fname, @CompanyName, @Date)&#8221;<br />
 <br />
cmdInsert = New OleDbCommand( strInsert, conCoaxis )<br />
 <br />
cmdInsert.Parameters.Add( &#8220;@Email&#8221;, txtEmail.Text )<br />
cmdInsert.Parameters.Add( &#8220;@Fname&#8221;, txtName.Text )<br />
 cmdInsert.Parameters.Add( &#8220;@CompanyName&#8221;, txtCompany.Text )<br />
 cmdInsert.Parameters.Add( &#8220;@Date&#8221;, OleDbType.Date).Value = dtmDate.ToString(&#8220;g&#8221;)  <br />
  Try<br />
   conCoaxis.Open()<br />
   cmdInsert.ExecuteNonQuery()<br />
   conCoaxis.Close()<br />
   Response.Write(&#8220;Updated Successfully!&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&#8221;)<br />
   Catch<br />
   conCoaxis.Close()<br />
  End Try<br />
 End Sub<br />
&lt;/script&gt;<br />
&lt;%@ Page Language=&#8221;VB&#8221; ContentType=&#8221;text/html&#8221; ResponseEncoding=&#8221;iso-8859-1&#8243; Debug=&#8221;true&#8221; %&gt;<br />
&lt;!DOCTYPE html PUBLIC &#8220;-//W3C//DTD XHTML 1.0 Transitional//EN&#8221; &#8220;<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>&#8220;&gt;<br />
&lt;html xmlns=&#8221;<a href="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</a>&#8220;&gt;<br />
&lt;head&gt;<br />
&lt;meta http-equiv=&#8221;Content-Type&#8221; content=&#8221;text/html; charset=iso-8859-1&#8243; /&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;form  runat=&#8221;server&#8221; id=&#8221;form1&#8243; name=&#8221;form1&#8243; method=&#8221;post&#8221; action=&#8221;"&gt;<br />
  Name:     &lt;asp:TextBox id=&#8221;txtName&#8221; runat=&#8221;server&#8221; /&gt; </p>
<p>Email:    &lt;asp:TextBox id=&#8221;txtEmail&#8221; runat=&#8221;server&#8221; /&gt;<br />
Company:    &lt;asp:TextBox id=&#8221;txtCompany&#8221; runat=&#8221;server&#8221; /&gt;<br />
 &lt;asp:Button id=&#8221;id&#8221; text=&#8221;Submit&#8221; OnClick=&#8221;submit&#8221; runat=&#8221;server&#8221; /&gt;<br />
&lt;/form&gt; <br />
&lt;/body&gt;<br />
&lt;/html&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://worth2read.org/blog/2010/01/29/inserting-data-into-access-database-using-asp-net/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Compare title and category name in wordpress</title>
		<link>http://worth2read.org/blog/2009/09/24/compare-title-and-category-name-in-wordpress/</link>
		<comments>http://worth2read.org/blog/2009/09/24/compare-title-and-category-name-in-wordpress/#comments</comments>
		<pubDate>Thu, 24 Sep 2009 15:05:37 +0000</pubDate>
		<dc:creator>Gisha James</dc:creator>
				<category><![CDATA[Wordpress Customization]]></category>

		<guid isPermaLink="false">http://worth2read.org/blog/?p=120</guid>
		<description><![CDATA[I had come through a situation to compare the category name and post title for a wordpress post. The following functions and code helped me to do this. $category = get_the_category(); $cat = $category[0]->cat_name; $post_no = get_post($post); $title = $post_no->post_title; $match=strcmp($cat,$title); if($match==0){ echo &#8220;match&#8221;; } else { echo &#8220;no match&#8221;; } The problem here is <a href='http://worth2read.org/blog/2009/09/24/compare-title-and-category-name-in-wordpress/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fworth2read.org%2Fblog%2F2009%2F09%2F24%2Fcompare-title-and-category-name-in-wordpress%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fworth2read.org%2Fblog%2F2009%2F09%2F24%2Fcompare-title-and-category-name-in-wordpress%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>I had come through a situation to compare the category name and post title for a wordpress post. The following functions and code helped me to do this.</p>
<p>$category = get_the_category();<br />
$cat = $category[0]->cat_name;<br />
$post_no = get_post($post);<br />
$title = $post_no->post_title;<br />
$match=strcmp($cat,$title);<br />
if($match==0){<br />
echo &#8220;match&#8221;;<br />
}<br />
else<br />
{<br />
echo &#8220;no match&#8221;;<br />
}</p>
<p>The problem here is $cat = $category[0]->cat_name; returns the first category name, so we are comparing only the first category with the title. If we want to compare the second category we have to use $cat = $category[1]->cat_name;</p>
<p>I hope someone will write a better solution so that we can compare the array, category with title. I would appreciate if someone can post that&#8230;</p>
<p>in_array came to my mind, but it is case sensitive&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://worth2read.org/blog/2009/09/24/compare-title-and-category-name-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Page rank &#124; Alexa Rank &#124; Back links &#124; Indexed pages &#124; Dmoz listing checker</title>
		<link>http://worth2read.org/blog/2009/08/27/page-rank-alexa-rank-back-links-indexed-pages-dmoz-listing-checker/</link>
		<comments>http://worth2read.org/blog/2009/08/27/page-rank-alexa-rank-back-links-indexed-pages-dmoz-listing-checker/#comments</comments>
		<pubDate>Thu, 27 Aug 2009 14:44:59 +0000</pubDate>
		<dc:creator>Gisha James</dc:creator>
				<category><![CDATA[Scripts for sale]]></category>
		<category><![CDATA[Alexa popularity]]></category>
		<category><![CDATA[All the web results]]></category>
		<category><![CDATA[Altavista results]]></category>
		<category><![CDATA[Dmoz listed or not]]></category>
		<category><![CDATA[Google page rank]]></category>
		<category><![CDATA[Number of Google backlinks]]></category>
		<category><![CDATA[Yahoo backlinks]]></category>

		<guid isPermaLink="false">http://worth2read.org/blog/?p=110</guid>
		<description><![CDATA[Here is a free tool to find the statistics like Google page rank, Alexa popularity, Dmoz listed or not , Number of Google backlinks, Yahoo backlinks, All the web results, Altavista results etc &#8211; All in one step. Enter the URL , select the statistics you want and click on &#8220;Submit&#8221;. Page rank Checker Tool <a href='http://worth2read.org/blog/2009/08/27/page-rank-alexa-rank-back-links-indexed-pages-dmoz-listing-checker/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fworth2read.org%2Fblog%2F2009%2F08%2F27%2Fpage-rank-alexa-rank-back-links-indexed-pages-dmoz-listing-checker%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fworth2read.org%2Fblog%2F2009%2F08%2F27%2Fpage-rank-alexa-rank-back-links-indexed-pages-dmoz-listing-checker%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>Here is a free tool to find the statistics like Google page rank, Alexa popularity, Dmoz listed or not , Number of Google backlinks, Yahoo backlinks, All the web results, Altavista results etc &#8211; All in one step. Enter the URL , select the statistics you want and click on  &#8220;Submit&#8221;.</p>
<p><a href="http://www.worth2read.org/rank.php">Page rank Checker</a></p>
<p>Tool is free. For script contact me via email.</p>
]]></content:encoded>
			<wfw:commentRss>http://worth2read.org/blog/2009/08/27/page-rank-alexa-rank-back-links-indexed-pages-dmoz-listing-checker/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
