<?xml version='1.0'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:atom="http://www.w3.org/2005/Atom" >
<channel>
	<title><![CDATA[BOL: April 2018]]></title>
	<link>https://bioinformaticsonline.com/blog/archive/ramyash/1522558800/1525150800?</link>
	<atom:link href="https://bioinformaticsonline.com/blog/archive/ramyash/1522558800/1525150800?" rel="self" type="application/rss+xml" />
	<description><![CDATA[]]></description>
	
	<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/blog/view/36425/check-product-if-already-exist-in-to-cart-using-woocommerce</guid>
	<pubDate>Sun, 29 Apr 2018 00:27:22 -0500</pubDate>
	<link>https://bioinformaticsonline.com/blog/view/36425/check-product-if-already-exist-in-to-cart-using-woocommerce</link>
	<title><![CDATA[Check product if already exist in to cart using woocommerce.]]></title>
	<description><![CDATA[<p>Check product if already exist in to cart using woocommerce.<br /><br />add_action( 'woocommerce_add_to_cart_validation', 'check_product_added_to_cart', 10, 3 );<br /><br />function check_product_added_to_cart( $passed, $product_id, $quantity) {<br /><br />foreach (WC()-&gt;cart-&gt;get_cart() as $cart_key =&gt; $cart_item ){<br />// if products are already in cart:<br />if( $cart_item['product_id'] == $product_id ) {<br />// Set the verification variable to "not passed" (false)<br />$passed = false;<br />// (Optionally) Displays a notice if product(s) are already in cart<br />wc_add_notice( '&lt;strong&gt;' . $btn['label'] . '&lt;/strong&gt; ' . __( 'This product is already in your cart.', 'woocommerce' ), 'error' );<br />// Stop the function returning "false", so the products will not be added again<br />return $passed;<br />}<br />}<br />return $passed;<br />}</p><p>More at https://phpajaxhtml.blogspot.in/2017/11/check-product-if-already-exist-in-to.html</p>]]></description>
	<dc:creator>Ram Yash Pal</dc:creator>
</item>
<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/blog/view/36413/insert-data-through-ajax-into-mysql-database</guid>
	<pubDate>Wed, 25 Apr 2018 12:43:51 -0500</pubDate>
	<link>https://bioinformaticsonline.com/blog/view/36413/insert-data-through-ajax-into-mysql-database</link>
	<title><![CDATA[Insert data through ajax into MySql database.]]></title>
	<description><![CDATA[<p>Insert data through ajax into MySql database.1. Create form.php and copy below code into file.</p><blockquote><p>&lt;script type="text/javascript"&gt;<br /> <br /> $(document).ready(function(){<br /> $('#submit').click(function(){<br /> var name= $('#name').val();<br /> var email= $('#email').val();<br /> var sdatatring='name1='+ name +'&amp;email1='+ email;<br /> $.ajax({<br /> type:"POST",<br /> url:"insert.php",<br /> data:sdatatring,<br /> cache: false,<br /> success:function(result){<br /> alert(result);</p><p>}});</p><p>});</p><p>});<br />&lt;/script&gt;<br /> &lt;form method="post" action="" name="frm"&gt;<br /> Name:&lt;input type="text" name="name" id="name" value=""&gt;&lt;br&gt;<br /> Email:&lt;input type="text" name="email" id="email" value=""&gt;&lt;br&gt;<br /> &lt;input type="button" name="submt" id="submit" value="submit" /&gt;<br /> <br /> &lt;/form&gt;</p><p>2. Create insert.php and copy below code into file.<br /> &lt;?php<br />print_r($_POST);<br />$con=mysql_connect("localhost","root","");<br />mysql_select_db('dbname');<br />mysql_query('insert into tablename('colname')values(value)');<br /> ?&gt;<br />Note:You need to include jQuery library in form.php.</p></blockquote><p>More at</p><p>https://phpajaxhtml.blogspot.in/2018/03/insert-data-through-ajax-into-mysql.html</p>]]></description>
	<dc:creator>Ram Yash Pal</dc:creator>
</item>
<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/blog/view/36411/create-custom-widget-area-in-wordpress</guid>
	<pubDate>Wed, 25 Apr 2018 12:35:53 -0500</pubDate>
	<link>https://bioinformaticsonline.com/blog/view/36411/create-custom-widget-area-in-wordpress</link>
	<title><![CDATA[Create custom widget area in wordpress.]]></title>
	<description><![CDATA[<p>https://phpajaxhtml.blogspot.in/2018/04/create-custom-widget-in-wordpress.html</p>]]></description>
	<dc:creator>Ram Yash Pal</dc:creator>
</item>

</channel>
</rss>