<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3134317434590095750</id><updated>2024-10-08T19:01:21.072-07:00</updated><category term="drupal cms"/><category term="theme location wordpress"/><category term="easy way to create a widget in wordpress/wordpress widget/creating a wordpress widget"/><category term="get the next and previous link in wordpress"/><category term="how to upload the file in php"/><category term="next and previous link in wordpress"/><category term="next button link in wordpress"/><category term="$_GET"/><category term="$_GET in php"/><category term="$_GET metod in php"/><category term="Content Management System"/><category term="Database normalization"/><category term="Definition of get_nav_menu_locations()"/><category term="Delete multiple records with checkboxes"/><category term="Delete multiple rows using checkbox in php"/><category term="Difference between Primary Key and Unique key"/><category term="Difference between abstract class and interface"/><category term="GZIP Compression"/><category term="How do I find out a database name in MySQL?"/><category term="How to get all database names with MS SQL?"/><category term="How to get the post tags by particular category name in wordpress?"/><category term="How to send the email with attachment using php validation. sending email with attachment in php"/><category term="Model View Component"/><category term="Normalization in sql"/><category term="Notice: Undefined index: view in \components\com_content\views\article\view.html.php on line 156"/><category term="Notice: Undefined index: view in \components\com_content\views\article\view.html.php on line 158"/><category term="Strip tags uses in PHP"/><category term="Update query in mysql with php. update query in sql"/><category term="What is GZIP Compression"/><category term="What is the theme locations in wordpress"/><category term="Wordpres functions"/><category term="abstract and interface difference"/><category term="beauitiful stroy"/><category term="breadcrumbs wordpress"/><category term="captcha in php"/><category term="cms in php"/><category term="compare module and components"/><category term="compare print and echo in php"/><category term="component"/><category term="content in drupal"/><category term="create a complete widget in wordpress"/><category term="create a forum in phpBB3"/><category term="create a wordpress plugin"/><category term="cron job example"/><category term="cron job in linux"/><category term="cron job in php"/><category term="custom fields in wordpress"/><category term="delete query in mysql"/><category term="delete query in sql"/><category term="delete queue"/><category term="delete queue in Amazon cloud server"/><category term="difference between modules and components in joomla"/><category term="difference between require() and include() in PHP"/><category term="difference between require_once"/><category term="difference between urlencode and urldecode in php"/><category term="display all the database name in php"/><category term="dynamic upload multiple files in php"/><category term="easy way to study wordpress plugin"/><category term="email validation in php"/><category term="ereg_replace() in php"/><category term="eregi_replace() in php"/><category term="execute the query in joomla"/><category term="expansion of php"/><category term="file upload in php"/><category term="file uploaded in php"/><category term="get current post type in wordpress"/><category term="get custom fields in wordpress"/><category term="get last inserted id mysql php"/><category term="get methods in php"/><category term="get post by id in wordpress"/><category term="get post id in wordpress"/><category term="get post tags by category"/><category term="get post tags by category name in wordpress"/><category term="get posts by post tags in wordpress"/><category term="get posts title using post tags"/><category term="get register menu items in wodpress"/><category term="get the first image from the post in wordpress"/><category term="get the image from post in wordpress"/><category term="get title link in wordpress"/><category term="get_categories"/><category term="get_nav_menu_locations"/><category term="get_nav_menu_locations worpdress"/><category term="get_the_author in wordpress"/><category term="get_the_content"/><category term="get_the_title"/><category term="how to customise the permalinks in wordpress"/><category term="how to delete multiple row using checkbox"/><category term="how to delete the row in the table in php?"/><category term="how to execute the mysql query in joomla"/><category term="how to get last inserted ID of a table?"/><category term="how to get the category name by post id in wordpress"/><category term="how to get the current category name by post id in wordpress"/><category term="how to get the current post type in wordpress"/><category term="how to get the multiple uploaded files in php"/><category term="how to get the post tags slug name for current post in wordpress?"/><category term="how to get the post tags slug name link in wordpress"/><category term="how to get the posts using post tags in wordpress"/><category term="how to give the permission for the forum in phpBB3"/><category term="how to insert the data in table in  php"/><category term="how to register the menu in wordpress"/><category term="how to send a message from queue in Amazon"/><category term="how to use crontab in linux"/><category term="how to write a breadcrumb in wordpress"/><category term="ie7 error in joomla"/><category term="insert query"/><category term="joomla cms"/><category term="list all db name in php"/><category term="list the queues"/><category term="list the queues in Amazon"/><category term="list the queues in clud server"/><category term="max number of database in mysql"/><category term="max number of row in a table"/><category term="max number of tables in mysql database"/><category term="meaning of drupal"/><category term="meaning of php"/><category term="menu locations in wordpress"/><category term="module and plugin in joomla"/><category term="modules in magento"/><category term="multipart/form-data in form tag."/><category term="multiple file upload in php"/><category term="mvc pattern"/><category term="mysql_connect in php"/><category term="mysql_escape_string"/><category term="mysql_fetch_array in php"/><category term="mysql_fetch_object in php"/><category term="mysql_insert_id Get the ID generated in the last query"/><category term="mysql_pconnect in php"/><category term="normalization"/><category term="pagination in php mysql"/><category term="pagination in php sample code"/><category term="pagination in php tutorial"/><category term="pagination in php with mysql example"/><category term="permalinks in wordpress"/><category term="php - Deleting records selected by Checkbox"/><category term="php code for send email"/><category term="php code for send email attachment"/><category term="php code for sending mail"/><category term="php interface vs abstract"/><category term="php interview questions and answers for freshers"/><category term="php mysql get id of last inserted row"/><category term="php strip img tag"/><category term="php strip tag attributes"/><category term="plugin in joomla"/><category term="post methods in php"/><category term="post tags in wordpress"/><category term="post tags slug name wordpress"/><category term="print and echo in php"/><category term="register menu"/><category term="register the menu in wordpress"/><category term="require and include in php"/><category term="require() and include() in php"/><category term="retrive the data frrom one server and stroe that data to another server in php"/><category term="send a message from queue"/><category term="send email in php"/><category term="send email in php code"/><category term="send the email with uploaded file in php"/><category term="static class in php"/><category term="static in wordpress"/><category term="story"/><category term="strip html tag in php"/><category term="submit the form in php"/><category term="ternary conditional operator in php"/><category term="ternary operator"/><category term="ternary operator in php"/><category term="the_title"/><category term="upload multiple files in php"/><category term="uploaded file in php"/><category term="urldecode in php"/><category term="urlencode in php"/><category term="use drupal"/><category term="what is breadcrumbs in wordpress"/><category term="what is custom field in wordpress"/><category term="what is mysql_escape_string"/><category term="what is the difference between primary key and unique key in mysql?"/><category term="what is the normalization in mysql?"/><category term="what is the use of mysql_escape_string in php"/><category term="what is wordpress"/><category term="without submit boutton in form"/><category term="wordpress definition"/><category term="wordpress display custom post types"/><category term="wordpress get category name"/><category term="wordpress meaning"/><category term="wordpress plugin"/><category term="wordpress widget"/><category term="wp_get_nav_menu_items"/><category term="wp_get_nav_menu_items wordpress"/><title type='text'>PHP TUTORIALS FOR WEB DEVELOPERS - PHP ROCKERS</title><subtitle type='html'>PHP Developers, Coding, Tutorials, Developments</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://phprockers.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3134317434590095750/posts/default'/><link rel='alternate' type='text/html' href='http://phprockers.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/3134317434590095750/posts/default?start-index=26&amp;max-results=25'/><author><name>Ram</name><uri>http://www.blogger.com/profile/11521045862668163635</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuM23o22sawyefJ4AOoIJeQ6XgJ-exCe9gc57sPrUvsnkFgCsikoxNiixSW0fzB_zq4M1CbOeoFyvgmy9G8NlFPiKnBZIbJdo1y__ApDwJf3S7ZfiNl158SejtfYFRIw/s220/ram.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>79</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3134317434590095750.post-2459719922914828902</id><published>2012-08-08T02:35:00.000-07:00</published><updated>2012-08-08T02:35:10.374-07:00</updated><title type='text'>Display the custom file in cms block to frontend/backend in Magento</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Below coding can be used to show CMS block in Frontend.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
Ref. Path :&amp;nbsp; app/design/frontend/base/default/template/callouts/left_col.phtml or right_col.phtml.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;lt;?php echo $this-&amp;gt;getLayout()-&amp;gt;createBlock(&#39;cms/block&#39;)-&amp;gt;setBlockId(&#39;block_id&#39;)-&amp;gt;toHtml(); ?&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Setting in Backend:&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;First Go to CMS and create a static page. Here we take &quot;identifier&quot; id from static block and put this id to above coding inside setBlock_id. And inside content we have put following line for calling our own block coding file,&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;{{block type=&quot;core/template&quot; name=&quot;leftnav_menu&quot; template=&quot;menu/menu.phtml&quot;}}&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Finally we have saved the file and this file is running in frontend inside the block. &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phprockers.blogspot.com/feeds/2459719922914828902/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phprockers.blogspot.com/2012/08/display-custom-file-in-cms-block-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3134317434590095750/posts/default/2459719922914828902'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3134317434590095750/posts/default/2459719922914828902'/><link rel='alternate' type='text/html' href='http://phprockers.blogspot.com/2012/08/display-custom-file-in-cms-block-to.html' title='Display the custom file in cms block to frontend/backend in Magento'/><author><name>Ram</name><uri>http://www.blogger.com/profile/11521045862668163635</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuM23o22sawyefJ4AOoIJeQ6XgJ-exCe9gc57sPrUvsnkFgCsikoxNiixSW0fzB_zq4M1CbOeoFyvgmy9G8NlFPiKnBZIbJdo1y__ApDwJf3S7ZfiNl158SejtfYFRIw/s220/ram.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3134317434590095750.post-2157552116447397218</id><published>2012-07-30T03:14:00.000-07:00</published><updated>2012-07-30T03:14:52.058-07:00</updated><title type='text'>Database connection in Joomla 2.5</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;pre class=&quot;de1&quot; style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span class=&quot;re0&quot;&gt;We have easy to connect database in joomla 2.5. Using below function&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre class=&quot;de1&quot; style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span class=&quot;re0&quot;&gt;we have to connect database wherever you want in joomla folder.&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre class=&quot;de1&quot; style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span class=&quot;re0&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre class=&quot;de1&quot; style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span class=&quot;re0&quot;&gt;$db&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&amp;amp;&lt;/span&gt; JFactory&lt;span class=&quot;sy0&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;me2&quot;&gt;getDBO&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&lt;/span&gt;&lt;/pre&gt;&lt;pre class=&quot;de1&quot; style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span class=&quot;kw1&quot;&gt;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phprockers.blogspot.com/feeds/2157552116447397218/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phprockers.blogspot.com/2012/07/database-connection-in-joomla-25.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3134317434590095750/posts/default/2157552116447397218'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3134317434590095750/posts/default/2157552116447397218'/><link rel='alternate' type='text/html' href='http://phprockers.blogspot.com/2012/07/database-connection-in-joomla-25.html' title='Database connection in Joomla 2.5'/><author><name>Ram</name><uri>http://www.blogger.com/profile/11521045862668163635</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuM23o22sawyefJ4AOoIJeQ6XgJ-exCe9gc57sPrUvsnkFgCsikoxNiixSW0fzB_zq4M1CbOeoFyvgmy9G8NlFPiKnBZIbJdo1y__ApDwJf3S7ZfiNl158SejtfYFRIw/s220/ram.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3134317434590095750.post-4480876037566219269</id><published>2012-06-20T05:12:00.000-07:00</published><updated>2012-06-20T05:12:54.503-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Model View Component"/><category scheme="http://www.blogger.com/atom/ns#" term="mvc pattern"/><title type='text'>What is MVC in Joomla?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;MVC - &lt;span class=&quot;a&quot; style=&quot;left: 2112px; letter-spacing: -1px; top: 2982px;&quot;&gt;Model-View-Component&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span class=&quot;a&quot; style=&quot;left: 663px; top: 3592px; word-spacing: -1px;&quot;&gt;“MVC consists of three kinds of objects. The Model is the &lt;span class=&quot;w6&quot;&gt;&lt;/span&gt;application object, the View is&lt;/span&gt;&lt;span class=&quot;a&quot; style=&quot;left: 663px; top: 3694px; word-spacing: -1px;&quot;&gt;its screen presentation, and the Controller defines the &lt;span class=&quot;w6&quot;&gt;&lt;/span&gt;way that the user interface reacts to&lt;/span&gt;&lt;span class=&quot;a&quot; style=&quot;left: 663px; top: 3795px; word-spacing: -1px;&quot;&gt;the user input.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phprockers.blogspot.com/feeds/4480876037566219269/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phprockers.blogspot.com/2012/06/what-is-mvc-in-joomla.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3134317434590095750/posts/default/4480876037566219269'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3134317434590095750/posts/default/4480876037566219269'/><link rel='alternate' type='text/html' href='http://phprockers.blogspot.com/2012/06/what-is-mvc-in-joomla.html' title='What is MVC in Joomla?'/><author><name>Ram</name><uri>http://www.blogger.com/profile/11521045862668163635</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuM23o22sawyefJ4AOoIJeQ6XgJ-exCe9gc57sPrUvsnkFgCsikoxNiixSW0fzB_zq4M1CbOeoFyvgmy9G8NlFPiKnBZIbJdo1y__ApDwJf3S7ZfiNl158SejtfYFRIw/s220/ram.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3134317434590095750.post-4137030183612884073</id><published>2012-05-30T10:45:00.002-07:00</published><updated>2012-05-30T10:45:40.054-07:00</updated><title type='text'>Create a custom page template in wordpress</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;we have a sidebar on all of pages in wordpress website, but we want to have a page that doesn’t have a sidebar. Here is how we create a custom page template without a sidebar in wordpress:&lt;br /&gt;
&lt;br /&gt;
1)&amp;nbsp;&amp;nbsp; Create a new file in wordpress theme folder and name it withoutSidebar.php.&lt;br /&gt;
&lt;br /&gt;
2)&amp;nbsp;&amp;nbsp; Open page.php and copy all of the code and paste it into the newly created withoutSidebar.php.&lt;br /&gt;
&lt;br /&gt;
3)&amp;nbsp;&amp;nbsp; Make any changes that you would like to withoutSidebar.php. In this example we are going to remove the sidebar, so find the code that calls the sidebar (&amp;lt;?php include(‘sidebar.php’); ?&amp;gt;) and remove it.&lt;br /&gt;
&lt;br /&gt;
4)&amp;nbsp;&amp;nbsp; You may also want to find the div that contains the main container and add a width style to make it cover the whole page.&lt;br /&gt;
&lt;br /&gt;
5)&amp;nbsp;&amp;nbsp; Finally, and most importantly, add the following line of code to the top of the page. This code is used to tell WordPress that this is a custom template. Without this code, WordPress would not be able to find the template:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; /*&lt;br /&gt;
&amp;nbsp;&amp;nbsp; Template Name: without Sidebar&lt;br /&gt;
&amp;nbsp;&amp;nbsp; */&lt;br /&gt;
&amp;nbsp;?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
6)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Save this file and upload it to your server.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phprockers.blogspot.com/feeds/4137030183612884073/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phprockers.blogspot.com/2012/05/create-custom-page-template-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3134317434590095750/posts/default/4137030183612884073'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3134317434590095750/posts/default/4137030183612884073'/><link rel='alternate' type='text/html' href='http://phprockers.blogspot.com/2012/05/create-custom-page-template-in.html' title='Create a custom page template in wordpress'/><author><name>Ram</name><uri>http://www.blogger.com/profile/11521045862668163635</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuM23o22sawyefJ4AOoIJeQ6XgJ-exCe9gc57sPrUvsnkFgCsikoxNiixSW0fzB_zq4M1CbOeoFyvgmy9G8NlFPiKnBZIbJdo1y__ApDwJf3S7ZfiNl158SejtfYFRIw/s220/ram.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3134317434590095750.post-7070697337114000807</id><published>2012-03-28T06:24:00.002-07:00</published><updated>2012-03-28T06:27:04.018-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Difference between Primary Key and Unique key"/><category scheme="http://www.blogger.com/atom/ns#" term="what is the difference between primary key and unique key in mysql?"/><title type='text'>Difference between Primary Key and Unique key in mysql?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Difference between Primary Key and Unique key in mysql/sql/oracle?&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;table border=&quot;1&quot; style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt; &lt;th&gt;&lt;span style=&quot;font-size: large;&quot;&gt;SNO &lt;/span&gt;&lt;/th&gt; &lt;th&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Primary Key&lt;/span&gt;&lt;/th&gt; &lt;th&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Unique Key&lt;/span&gt;&lt;/th&gt; &lt;/tr&gt;
&lt;tr&gt; &lt;td&gt;&lt;span style=&quot;font-size: large;&quot;&gt;1&lt;/span&gt;&lt;/td&gt; &lt;td&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Primary Key does not allow NULLs values in a table&lt;/span&gt;&lt;/td&gt; &lt;td&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Unique Key allows Nulls value in a table&lt;/span&gt;&lt;/td&gt; &lt;/tr&gt;
&lt;tr&gt; &lt;td&gt;&lt;span style=&quot;font-size: large;&quot;&gt;2&lt;/span&gt;&lt;/td&gt; &lt;td&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Only one primary key will be there in a table&lt;/span&gt;&lt;/td&gt; &lt;td&gt;&lt;span style=&quot;font-size: large;&quot;&gt;More than one unique key will be there in a table&lt;/span&gt;&lt;/td&gt; &lt;/tr&gt;
&lt;tr&gt; &lt;td&gt;&lt;span style=&quot;font-size: large;&quot;&gt;3&lt;/span&gt;&lt;/td&gt; &lt;td&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Clustered index is created in primary key in a table&lt;/span&gt;&lt;/td&gt; &lt;td&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Non-Clustered index is created in unique key in a table&lt;/span&gt;&lt;/td&gt; &lt;/tr&gt;
&lt;tr&gt; &lt;td&gt;&lt;span style=&quot;font-size: large;&quot;&gt;4&lt;/span&gt;&lt;/td&gt; &lt;td&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Primary key allows each row in a table to be uniquely identified and ensures that no duplicate rows exist as well as does not allow the duplicates values in the rows of a table.&lt;/span&gt;&lt;/td&gt; &lt;td&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Unique key constraint is used to prevent the duplication of key values within the rows of a table and allow null values&lt;/span&gt;&lt;/td&gt; &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;By default Primary Key creates a Clustered Index on the column as same as Unique Key creates a Nonclustered Index. Another major difference is Primary Key doesn’t allow NULLs, but Unique Key allows NULLs. We can create only one primary key in a table, but a table can have the multiple unique key.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phprockers.blogspot.com/feeds/7070697337114000807/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phprockers.blogspot.com/2012/03/difference-between-primary-key-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3134317434590095750/posts/default/7070697337114000807'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3134317434590095750/posts/default/7070697337114000807'/><link rel='alternate' type='text/html' href='http://phprockers.blogspot.com/2012/03/difference-between-primary-key-and.html' title='Difference between Primary Key and Unique key in mysql?'/><author><name>Ram</name><uri>http://www.blogger.com/profile/11521045862668163635</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuM23o22sawyefJ4AOoIJeQ6XgJ-exCe9gc57sPrUvsnkFgCsikoxNiixSW0fzB_zq4M1CbOeoFyvgmy9G8NlFPiKnBZIbJdo1y__ApDwJf3S7ZfiNl158SejtfYFRIw/s220/ram.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3134317434590095750.post-5944188841573084689</id><published>2012-03-27T02:44:00.000-07:00</published><updated>2012-03-27T02:44:13.637-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Update query in mysql with php. update query in sql"/><title type='text'>Update query in mysql</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;The syntax for Update the row into tables,&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;UPDATE&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; table_name SET (colname1, colname2, colname3 ...) VALUES (value1,value2,value3,...) WHERE colname = row_values;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&amp;lt;?php&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;$con = mysql_connect(&#39;localhost&#39;, &#39;root&#39;,&#39;&#39;);&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;mysql_select_db(&#39;dbname&#39;, $con) or die(mysql_error());&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;$query = &quot;UPDATE table_name SET rank=&quot;2&quot; WHERE sno = 2&quot;;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;$ok = mysql_query($query);&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;if($ok) &lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;echo &quot;Updated row successfully&quot;;&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;else&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;echo &quot;Failed to update the row in the table&quot;;&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;table border=&quot;1&quot;&gt;&lt;tbody&gt;
&lt;tr&gt; &lt;th&gt;sno&lt;/th&gt; &lt;th&gt;name&lt;/th&gt; &lt;th&gt;marks&lt;/th&gt; &lt;th&gt;rank&lt;/th&gt; &lt;th&gt;post_of_date&lt;/th&gt; &lt;/tr&gt;
&lt;tr&gt; &lt;td&gt;2&lt;/td&gt; &lt;td&gt;krishnan&lt;/td&gt; &lt;td&gt;397&lt;/td&gt; &lt;td&gt;2&lt;/td&gt; &lt;td&gt;09-04-2001&lt;/td&gt; &lt;/tr&gt;
&lt;tr&gt; &lt;td&gt;3&lt;/td&gt; &lt;td&gt;PHP Developer&lt;/td&gt; &lt;td&gt;521&lt;/td&gt; &lt;td&gt;36&lt;/td&gt; &lt;td&gt;27-03-2012&lt;/td&gt; &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phprockers.blogspot.com/feeds/5944188841573084689/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phprockers.blogspot.com/2012/03/update-query-in-mysql.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3134317434590095750/posts/default/5944188841573084689'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3134317434590095750/posts/default/5944188841573084689'/><link rel='alternate' type='text/html' href='http://phprockers.blogspot.com/2012/03/update-query-in-mysql.html' title='Update query in mysql'/><author><name>Ram</name><uri>http://www.blogger.com/profile/11521045862668163635</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuM23o22sawyefJ4AOoIJeQ6XgJ-exCe9gc57sPrUvsnkFgCsikoxNiixSW0fzB_zq4M1CbOeoFyvgmy9G8NlFPiKnBZIbJdo1y__ApDwJf3S7ZfiNl158SejtfYFRIw/s220/ram.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3134317434590095750.post-8497737047875693459</id><published>2012-03-27T02:37:00.000-07:00</published><updated>2012-03-27T02:37:17.808-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="delete query in mysql"/><category scheme="http://www.blogger.com/atom/ns#" term="delete query in sql"/><category scheme="http://www.blogger.com/atom/ns#" term="how to delete the row in the table in php?"/><title type='text'>Delete query in mysql with php</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;The syntax for Delete the row into tables,&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;DELETE FROM &lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;table_name WHERE colname = row_values;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&amp;lt;?php&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;$con = mysql_connect(&#39;localhost&#39;, &#39;root&#39;,&#39;&#39;);&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;mysql_select_db(&#39;dbname&#39;, $con) or die(mysql_error());&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;$query = &quot;DELETE FROM table_name WHERE sno = 1&quot;;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;$ok = mysql_query($query);&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;if($ok) &lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;echo &quot;Deleted row successfully&quot;;&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;else&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;echo &quot;Failed to delete the row in the table&quot;;&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;table border=&quot;1&quot;&gt;&lt;tbody&gt;
&lt;tr&gt; &lt;th&gt;sno&lt;/th&gt; &lt;th&gt;name&lt;/th&gt; &lt;th&gt;marks&lt;/th&gt; &lt;th&gt;rank&lt;/th&gt; &lt;th&gt;post_of_date&lt;/th&gt; &lt;/tr&gt;
&lt;tr&gt; &lt;td&gt;2&lt;/td&gt; &lt;td&gt;krishnan&lt;/td&gt; &lt;td&gt;397&lt;/td&gt; &lt;td&gt;3&lt;/td&gt; &lt;td&gt;09-04-2001&lt;/td&gt; &lt;/tr&gt;
&lt;tr&gt; &lt;td&gt;3&lt;/td&gt; &lt;td&gt;PHP Developer&lt;/td&gt; &lt;td&gt;521&lt;/td&gt; &lt;td&gt;36&lt;/td&gt; &lt;td&gt;27-03-2012&lt;/td&gt; &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phprockers.blogspot.com/feeds/8497737047875693459/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phprockers.blogspot.com/2012/03/delete-query-in-mysql-with-php.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3134317434590095750/posts/default/8497737047875693459'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3134317434590095750/posts/default/8497737047875693459'/><link rel='alternate' type='text/html' href='http://phprockers.blogspot.com/2012/03/delete-query-in-mysql-with-php.html' title='Delete query in mysql with php'/><author><name>Ram</name><uri>http://www.blogger.com/profile/11521045862668163635</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuM23o22sawyefJ4AOoIJeQ6XgJ-exCe9gc57sPrUvsnkFgCsikoxNiixSW0fzB_zq4M1CbOeoFyvgmy9G8NlFPiKnBZIbJdo1y__ApDwJf3S7ZfiNl158SejtfYFRIw/s220/ram.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3134317434590095750.post-5075459173266085993</id><published>2012-03-27T02:22:00.002-07:00</published><updated>2012-03-27T02:31:52.260-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="how to insert the data in table in  php"/><category scheme="http://www.blogger.com/atom/ns#" term="insert query"/><title type='text'>Insert query in mysql with php</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;The syntax for inserting values into tables,&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;INSERT INTO &lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;table_name (`col1`, `col2`, `col3`,.....) &lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;VALUES (&#39;val1&#39;, &#39;val2&#39;, &#39;val3&#39;,.....);&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&amp;lt;?php&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;$con = mysql_connect(&#39;localhost&#39;, &#39;root&#39;,&#39;&#39;);&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;mysql_select_db(&#39;dbname&#39;, $con) or die(mysql_error());&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;$query = &quot;INSERT INTO table_name (`sno`, `name`, `marks`, `rank`,`post_of_date`) VALUES (&#39;3&#39;, &#39;PHP Developer&#39;, &#39;521&#39;, &#39;36&#39;,now())&quot;;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;$ok = mysql_query($query);&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;if($ok) &lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;echo &quot;Inserted successfully&quot;;&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;else&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;echo &quot;Data&#39;s are not inserted in to table&quot;;&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;table border=&quot;1&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;  &lt;th&gt;sno&lt;/th&gt;  &lt;th&gt;name&lt;/th&gt;  &lt;th&gt;marks&lt;/th&gt;  &lt;th&gt;rank&lt;/th&gt;  &lt;th&gt;post_of_date&lt;/th&gt;  &lt;/tr&gt;
&lt;tr&gt;  &lt;td&gt;1&lt;/td&gt;  &lt;td&gt;Ram&lt;/td&gt;  &lt;td&gt;407&lt;/td&gt;  &lt;td&gt;3&lt;/td&gt;  &lt;td&gt;09-04-2001&lt;/td&gt;  &lt;/tr&gt;
&lt;tr&gt;  &lt;td&gt;2&lt;/td&gt;  &lt;td&gt;krishnan&lt;/td&gt;  &lt;td&gt;397&lt;/td&gt;  &lt;td&gt;3&lt;/td&gt;  &lt;td&gt;09-04-2001&lt;/td&gt;  &lt;/tr&gt;
&lt;tr&gt;  &lt;td&gt;3&lt;/td&gt;  &lt;td&gt;PHP Developer&lt;/td&gt;  &lt;td&gt;521&lt;/td&gt;  &lt;td&gt;36&lt;/td&gt;  &lt;td&gt;27-03-2012&lt;/td&gt;  &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phprockers.blogspot.com/feeds/5075459173266085993/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phprockers.blogspot.com/2012/03/insert-query-in-mysqlphp.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3134317434590095750/posts/default/5075459173266085993'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3134317434590095750/posts/default/5075459173266085993'/><link rel='alternate' type='text/html' href='http://phprockers.blogspot.com/2012/03/insert-query-in-mysqlphp.html' title='Insert query in mysql with php'/><author><name>Ram</name><uri>http://www.blogger.com/profile/11521045862668163635</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuM23o22sawyefJ4AOoIJeQ6XgJ-exCe9gc57sPrUvsnkFgCsikoxNiixSW0fzB_zq4M1CbOeoFyvgmy9G8NlFPiKnBZIbJdo1y__ApDwJf3S7ZfiNl158SejtfYFRIw/s220/ram.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3134317434590095750.post-3333620982585398370</id><published>2012-03-26T06:34:00.000-07:00</published><updated>2012-03-26T06:34:02.295-07:00</updated><title type='text'>Show the content or text when mouse over the link</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: large;&quot;&gt;&amp;lt;style type=&quot;text/css&quot;&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: large;&quot;&gt;&amp;lt;!--&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: large;&quot;&gt;.box {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: large;&quot;&gt;background-color: #F4F4F4;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: large;&quot;&gt;border: 1px solid #CCC;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: large;&quot;&gt;height: 150px;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: large;&quot;&gt;width: 225px;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: large;&quot;&gt;padding: 5px;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: large;&quot;&gt;display:none;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: large;&quot;&gt;position:absolute;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: large;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: large;&quot;&gt;--&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: large;&quot;&gt;&amp;lt;/style&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: large;&quot;&gt;&amp;lt;script type=&quot;text/javascript&quot; language=&quot;JavaScript&quot;&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: large;&quot;&gt;var cX = 0; var cY = 0; var rX = 0; var rY = 0;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: large;&quot;&gt;function UpdateCursorPosition(e){ cX = e.pageX; cY = e.pageY;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: large;&quot;&gt;function UpdateCursorPositionDocAll(e){ cX = event.clientX; cY = event.clientY;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: large;&quot;&gt;if(document.all) { document.onmousemove = UpdateCursorPositionDocAll; }&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: large;&quot;&gt;else { document.onmousemove = UpdateCursorPosition; }&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: large;&quot;&gt;function AssignPosition(d) {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: large;&quot;&gt;if(self.pageYOffset) {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: large;&quot;&gt;rX = self.pageXOffset;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: large;&quot;&gt;rY = self.pageYOffset;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: large;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: large;&quot;&gt;else if(document.documentElement &amp;amp;&amp;amp; document.documentElement.scrollTop) {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: large;&quot;&gt;rX = document.documentElement.scrollLeft;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: large;&quot;&gt;rY = document.documentElement.scrollTop;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: large;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: large;&quot;&gt;else if(document.body) {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: large;&quot;&gt;rX = document.body.scrollLeft;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: large;&quot;&gt;rY = document.body.scrollTop;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: large;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: large;&quot;&gt;if(document.all) {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: large;&quot;&gt;cX += rX;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: large;&quot;&gt;cY += rY;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: large;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: large;&quot;&gt;d.style.left = (cX-50) + &quot;px&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: large;&quot;&gt;d.style.top = (cY-170) + &quot;px&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: large;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: large;&quot;&gt;function HideText(d) {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: large;&quot;&gt;if(d.length &amp;lt; 1) { return; }&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: large;&quot;&gt;document.getElementById(d).style.display = &quot;none&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: large;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: large;&quot;&gt;function ShowText(d) {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: large;&quot;&gt;if(d.length &amp;lt; 1) { return; }&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: large;&quot;&gt;var dd = document.getElementById(d);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: large;&quot;&gt;AssignPosition(dd);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: large;&quot;&gt;dd.style.display = &quot;block&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: large;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: large;&quot;&gt;function ReverseContentDisplay(d) {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: large;&quot;&gt;if(d.length &amp;lt; 1) { return; }&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: large;&quot;&gt;var dd = document.getElementById(d);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: large;&quot;&gt;AssignPosition(dd);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: large;&quot;&gt;if(dd.style.display == &quot;none&quot;) { dd.style.display = &quot;block&quot;; }&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: large;&quot;&gt;else { dd.style.display = &quot;none&quot;; }&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: large;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: large;&quot;&gt;//--&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: large;&quot;&gt;&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: large;&quot;&gt;&amp;lt;span&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: large;&quot;&gt;onmouseover=&quot;ShowText(&#39;Message&#39;); return true;&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: large;&quot;&gt;onmouseout=&quot;HideText(&#39;Message&#39;); return true;&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: large;&quot;&gt;href=&quot;javascript:ShowText(&#39;Message&#39;)&quot;&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: large;&quot;&gt;Contact Us&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: large;&quot;&gt;&amp;lt;/span&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: large;&quot;&gt;&amp;lt;div&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: large;&quot;&gt;id=&quot;Message&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: large;&quot;&gt;class=&quot;box&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: large;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: large;&quot;&gt;Ramakrishnan V.&amp;lt;br/&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: large;&quot;&gt;14,Robinson Park Colony,&amp;lt;br/&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: large;&quot;&gt;M.C. Road,&amp;lt;br/&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: large;&quot;&gt;Old Washermenpet,&amp;lt;br/&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: large;&quot;&gt;Chennai-600 021.&amp;lt;br/&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: large;&quot;&gt;Contact No: 9445094568.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: large;&quot;&gt;&amp;lt;/div&amp;gt; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phprockers.blogspot.com/feeds/3333620982585398370/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phprockers.blogspot.com/2012/03/show-content-or-text-when-mouse-over.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3134317434590095750/posts/default/3333620982585398370'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3134317434590095750/posts/default/3333620982585398370'/><link rel='alternate' type='text/html' href='http://phprockers.blogspot.com/2012/03/show-content-or-text-when-mouse-over.html' title='Show the content or text when mouse over the link'/><author><name>Ram</name><uri>http://www.blogger.com/profile/11521045862668163635</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuM23o22sawyefJ4AOoIJeQ6XgJ-exCe9gc57sPrUvsnkFgCsikoxNiixSW0fzB_zq4M1CbOeoFyvgmy9G8NlFPiKnBZIbJdo1y__ApDwJf3S7ZfiNl158SejtfYFRIw/s220/ram.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3134317434590095750.post-4681660908760819687</id><published>2012-03-21T07:39:00.002-07:00</published><updated>2012-03-21T07:41:15.495-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Delete multiple records with checkboxes"/><category scheme="http://www.blogger.com/atom/ns#" term="Delete multiple rows using checkbox in php"/><category scheme="http://www.blogger.com/atom/ns#" term="how to delete multiple row using checkbox"/><category scheme="http://www.blogger.com/atom/ns#" term="php - Deleting records selected by Checkbox"/><title type='text'>How to delete checked checkbox rows in php?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;lt;?php&lt;br /&gt;
if($_REQUEST[&#39;btndelete&#39;] != &#39;&#39;)&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; if(!&lt;span style=&quot;color: red;&quot;&gt;empty($_REQUEST[&#39;checkboxstatus&#39;])&lt;/span&gt;) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $checked_values = $_REQUEST[&#39;checkboxstatus&#39;];&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; foreach($checked_values as $val) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $sqldel = &quot;delete from subscribe where id = &#39;$val&#39;&quot;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $resdel = mysql_query($sqldel);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if($resdel) &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; $error_log = 1;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; else &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; $error_log = 2;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
}&lt;/span&gt;&lt;/div&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
$openingcountry = $_REQUEST[&#39;openingcountry&#39;];&lt;br /&gt;
if($_REQUEST[&#39;status&#39;] != &#39;&#39;) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; $status = $_REQUEST[&#39;status&#39;];&lt;br /&gt;
}&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&amp;lt;form name=&quot;frmcountry&quot; method=&quot;post&quot; action=&quot;&quot;&amp;gt;&lt;br /&gt;
&amp;lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;input type=&quot;submit&quot; name=&quot;btndelete&quot; value=&quot;DELETE&quot; class=&quot;openlistdelete&quot; onClick=&quot;javascript: return confirm(&#39;Are you sure you want to delete!&#39;)&quot; /&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div style=&quot;color:#FF0000;&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;?php &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; if($error_log == 2) &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; echo &quot;Selected email id is not deleted&quot;;&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; if($error_log == 1) &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; echo &quot;Deleted successfully&quot;;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ?&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td class=&quot;openingtitletxt&quot;&amp;gt;S.No. &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td class=&quot;openingtitletxt&quot;&amp;gt;Email &amp;lt;/td&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td class=&quot;openingtitletxt&quot;&amp;gt;Country &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td class=&quot;openingtitletxt&quot;&amp;gt;Statu &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td class=&quot;openingtitletxt&quot;&amp;gt;Edit Status &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;?&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; $rest = &#39;&#39;;&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;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; if($openingcountry != &quot;&quot;) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $rest .= &quot;where country = &#39;$openingcountry&#39;&quot;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; if($status!=&#39;&#39;) {&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if($openingcountry != &quot;&quot;)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $rest.= &quot; and status = &#39;$status&#39;&quot;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; else &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $rest.= &quot;where status = &#39;$status&#39;&quot;;&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;&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;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $sqlselopenings = &quot;select * from subscribe &quot;.$rest .&quot;ORDER BY id desc&quot;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; $resselopenings = mysql_query($sqlselopenings);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; if($resselopenings) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $numrowsopenings = mysql_num_rows($resselopenings);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; if($numrowsopenings &amp;gt; 0) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $i = 1;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; while($rowselopenings = mysql_fetch_array($resselopenings)) {&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;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;lt;tr&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td class=&quot;openingtitledetails&quot;&amp;gt; &amp;lt;? echo $i;?&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td class=&quot;openingtitledetails&quot;&amp;gt;&amp;lt;? echo $rowselopenings[&#39;email&#39;];?&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td class=&quot;openingtitledetails&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;?if($rowselopenings[&#39;country&#39;] == &#39;uk&#39;)&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; echo $rowselopenings[&#39;country&#39;] = &#39;UK&#39;;&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; else if($rowselopenings[&#39;country&#39;] == &#39;us&#39;)&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; echo $rowselopenings[&#39;country&#39;] = &#39;US&#39;;&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; else &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; echo $rowselopenings[&#39;country&#39;] = ucfirst($rowselopenings[&#39;country&#39;]);?&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/td&amp;gt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td class=&quot;openingtitledetails&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;? &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; if($rowselopenings[&#39;status&#39;] == 1) {&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; echo &#39;Active&#39;;&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; } else {&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; &amp;nbsp;&amp;nbsp;&amp;nbsp; echo &#39;Inactive&#39;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ?&amp;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;&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;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td class=&quot;openingtitledetails&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: red;&quot;&gt;&amp;lt;input type=&quot;checkbox&quot; name=&quot;checkboxstatus[&amp;lt;?php echo $i; ?&amp;gt;]&quot; id=&quot;checkboxstatus-&amp;lt;?php echo $rowselopenings[&#39;id&#39;]; ?&amp;gt;&quot; value=&quot;&amp;lt;?php echo $rowselopenings[&#39;id&#39;]; ?&amp;gt;&quot;&amp;nbsp; /&amp;gt; &lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;? $i++; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; } else { ?&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td colspan=&quot;5&quot; align=&quot;center&quot; class=&quot;errortxt&quot;&amp;gt; No Records Found! &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/tr&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;? } ?&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&amp;lt;/form&amp;gt;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phprockers.blogspot.com/feeds/4681660908760819687/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phprockers.blogspot.com/2012/03/how-to-delete-checked-checkbox-rows-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3134317434590095750/posts/default/4681660908760819687'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3134317434590095750/posts/default/4681660908760819687'/><link rel='alternate' type='text/html' href='http://phprockers.blogspot.com/2012/03/how-to-delete-checked-checkbox-rows-in.html' title='How to delete checked checkbox rows in php?'/><author><name>Ram</name><uri>http://www.blogger.com/profile/11521045862668163635</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuM23o22sawyefJ4AOoIJeQ6XgJ-exCe9gc57sPrUvsnkFgCsikoxNiixSW0fzB_zq4M1CbOeoFyvgmy9G8NlFPiKnBZIbJdo1y__ApDwJf3S7ZfiNl158SejtfYFRIw/s220/ram.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3134317434590095750.post-3808716405878557607</id><published>2012-03-08T02:50:00.000-08:00</published><updated>2012-03-08T02:50:13.862-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="php code for send email"/><category scheme="http://www.blogger.com/atom/ns#" term="php code for send email attachment"/><category scheme="http://www.blogger.com/atom/ns#" term="php code for sending mail"/><category scheme="http://www.blogger.com/atom/ns#" term="send email in php"/><category scheme="http://www.blogger.com/atom/ns#" term="send email in php code"/><title type='text'>How to send the email in php?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;Easily send the email in php, you have to follow some steps &lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&amp;lt;?php&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;$mail_to = &quot;phprockers.blogspot@gmail.com&quot;;&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;$mail_subject = &quot;Introducing New concept in PHP&quot;;&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;$body_content = &quot;Hi &amp;lt;br/&amp;gt; We are introducing new method in php as well as we are teaching php clearly. Please click here and watch &amp;lt;a href=&#39;http://phprockers.blogspot.in/&#39;&amp;gt;php tutorial&amp;lt;/a&amp;gt;&quot;;&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;if(mail($mail_to, $mail_subject, $body_content)){&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;echo &quot;Email sent successfully&quot;;&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;} else {&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;echo &quot;Email sending problem. Please try again.&quot;;&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phprockers.blogspot.com/feeds/3808716405878557607/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phprockers.blogspot.com/2012/03/how-to-send-email-in-php.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3134317434590095750/posts/default/3808716405878557607'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3134317434590095750/posts/default/3808716405878557607'/><link rel='alternate' type='text/html' href='http://phprockers.blogspot.com/2012/03/how-to-send-email-in-php.html' title='How to send the email in php?'/><author><name>Ram</name><uri>http://www.blogger.com/profile/11521045862668163635</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuM23o22sawyefJ4AOoIJeQ6XgJ-exCe9gc57sPrUvsnkFgCsikoxNiixSW0fzB_zq4M1CbOeoFyvgmy9G8NlFPiKnBZIbJdo1y__ApDwJf3S7ZfiNl158SejtfYFRIw/s220/ram.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3134317434590095750.post-3018544325741065874</id><published>2012-03-08T02:31:00.001-08:00</published><updated>2012-03-08T02:32:20.057-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="email validation in php"/><category scheme="http://www.blogger.com/atom/ns#" term="How to send the email with attachment using php validation. sending email with attachment in php"/><category scheme="http://www.blogger.com/atom/ns#" term="how to upload the file in php"/><category scheme="http://www.blogger.com/atom/ns#" term="send the email with uploaded file in php"/><title type='text'>How to send the email with attachment in php?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Very simple to send the email with attachment with php validation.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;First we have to write html form for upload the attchement.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;form name=&quot;uploadRes&quot; enctype=&quot;multipart/form-data&quot; method=&quot;post&quot; action=&quot;&amp;lt;?php echo $_SERVER[&#39;PHP_SELF&#39;];&quot; &amp;gt;&lt;br /&gt;
&amp;lt;input type=&quot;file&quot; name=&quot;resume&quot; id=&quot;resume&quot; /&amp;gt;&lt;br /&gt;
&amp;lt;input type=&quot;submit&quot; name=&quot;res-submit&quot; id=&quot;res-submit&quot; value=&quot;Send Resume&quot;&amp;nbsp; /&amp;gt;&lt;br /&gt;
&amp;lt;/form&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Validation for attaching the file. Here we have to find the file type, then send the email to particular function.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;if($_REQUEST[&#39;res-submit&#39;] != &#39;&#39;) {&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; if(!empty($_FILES)) { &lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; function getExt($file) {&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $dot = strrpos($file, &#39;.&#39;) + 1;&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; return substr($file, $dot);&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $resume = $_FILES[&#39;resume&#39;][&#39;name&#39;];&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if($resume != &#39;&#39;)&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $resume = $resume;&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $resume = &#39;Not Uploaded!&#39;;&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $extension = getExt($resume);&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if( $resume== &#39;Not Uploaded!&#39;)&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $error_flag = 1;&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; else {&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if($extension != &#39;doc&#39; || $extension != &#39;docx&#39; || $extension != &#39;pdf&#39; || $extension != &#39;odt&#39; || $extension != &#39;txt&#39;) {&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&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; $to = &#39;php.com&#39;;&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&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; $from&amp;nbsp;&amp;nbsp;&amp;nbsp; = &quot;candidate@dckap.com&quot;;&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&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; $subject = &#39;Resume from candidate&#39;;&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&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; $fileatt&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = $_FILES[&#39;resume&#39;][&#39;tmp_name&#39;];&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&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; $fileatt_type = $_FILES[&#39;resume&#39;][&#39;type&#39;];&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&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; $fileatt_name = $_FILES[&#39;resume&#39;][&#39;name&#39;];&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&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; $fileatt_size = $_FILES[&#39;resume&#39;][&#39;size&#39;];&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&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; if($fileatt_size &amp;lt; 300000) { &lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&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; $headers = &quot;From: $from&quot;;&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&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; $message=&quot;&amp;lt;p&amp;gt; Hi, &amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;Please find the attached resume. &amp;lt;/p&amp;gt;&quot;;&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&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; $email_message .= $message;&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&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; $semi_rand = md5(time());&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&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; $mime_boundary = &quot;==Multipart_Boundary_x{$semi_rand}x&quot;;&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&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; $headers .= &quot;\nMIME-Version: 1.0\n&quot; .&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&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; &quot;Content-Type: multipart/mixed;\n&quot; .&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&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; &quot; boundary=\&quot;{$mime_boundary}\&quot;&quot;;&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt; &lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&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; $email_message .= &quot;This is a multi-part message in MIME format.\n\n&quot; .&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&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; &quot;--{$mime_boundary}\n&quot; .&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&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; &quot;Content-Type:text/html; charset=\&quot;iso-8859-1\&quot;\n&quot; .&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&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; &quot;Content-Transfer-Encoding: 7bit\n\n&quot; .&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&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; $email_message .= &quot;\n\n&quot;;&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt; &lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&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; $data = chunk_split(base64_encode(file_get_contents($fileatt)));&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&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; $email_message .= &quot;--{$mime_boundary}\n&quot; .&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&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; &quot;Content-Type: {$fileatt_type};\n&quot; .&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&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; &quot; name=\&quot;{$fileatt_name}\&quot;\n&quot; .&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&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; //&quot;Content-Disposition: attachment;\n&quot; .&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&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; //&quot; filename=\&quot;{$fileatt_name}\&quot;\n&quot; .&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&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; &quot;Content-Transfer-Encoding: base64\n\n&quot; .&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&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; $data .= &quot;\n\n&quot; .&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&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; &quot;--{$mime_boundary}--\n&quot;;&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&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; $ok = mail($to, $subject, $email_message, $headers);&amp;nbsp; // Mail sending to the requested Email Id&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&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; } else {&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&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; &lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&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; $error_flag_filesize = 3;&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&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;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt; &lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; } else {&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&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; $error_flag = 2;&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&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;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt; }&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt; ?&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt; &lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt; &lt;span style=&quot;color: blue; font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;Here we are showing the validation errors.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt; &amp;lt;?php if(!empty($_FILES)) {&amp;nbsp; if($error_flag == 1) { ?&amp;gt; &lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt; &amp;lt;div id=&quot;result-resume&quot; name=&quot;result-resume&quot; &amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt; &amp;lt;span style=&quot;color:red; margin-left:-245px;&quot;&amp;gt;please upload the file&amp;lt;/span&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt; &amp;lt;/div&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt; &amp;lt;?php } elseif ($error_flag == 2) { ?&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt; &amp;lt;div id=&quot;result-resume&quot; name=&quot;result-resume&quot; &amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt; &amp;lt;span style=&quot;color:red; margin-left:-245px;&quot;&amp;gt;Please Upload Valid file Extension!&amp;lt;/span&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt; &amp;lt;/div&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt; &amp;lt;?php } elseif ($error_flag_filesize == 3) { ?&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt; &amp;lt;div id=&quot;result-resume&quot; name=&quot;result-resume&quot; &amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt; &amp;lt;span style=&quot;color:red; margin-left:-245px;&quot;&amp;gt;Please upload the file less than 3MB&amp;lt;/span&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt; &amp;lt;/div&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt; &amp;lt;?php } else { ?&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt; &amp;lt;div id=&quot;result-resume&quot; name=&quot;result-resume&quot; &amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt; &amp;lt;span style=&quot;color:red; margin-left:-245px;&quot;&amp;gt;Sent the resume successful&amp;lt;/span&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt; &amp;lt;/div&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt; &amp;lt;?php }?&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt; &amp;lt;script&amp;gt;hideResult=document.getElementById(&quot;result-resume&quot;);&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt; setTimeout(&#39;hideResult.innerHTML=\&#39;\&#39;&#39;,7000); &amp;lt;/script&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot; /&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt; &amp;lt;?php }?&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phprockers.blogspot.com/feeds/3018544325741065874/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phprockers.blogspot.com/2012/03/how-to-send-email-with-attachment-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3134317434590095750/posts/default/3018544325741065874'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3134317434590095750/posts/default/3018544325741065874'/><link rel='alternate' type='text/html' href='http://phprockers.blogspot.com/2012/03/how-to-send-email-with-attachment-in.html' title='How to send the email with attachment in php?'/><author><name>Ram</name><uri>http://www.blogger.com/profile/11521045862668163635</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuM23o22sawyefJ4AOoIJeQ6XgJ-exCe9gc57sPrUvsnkFgCsikoxNiixSW0fzB_zq4M1CbOeoFyvgmy9G8NlFPiKnBZIbJdo1y__ApDwJf3S7ZfiNl158SejtfYFRIw/s220/ram.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3134317434590095750.post-6550578940410547840</id><published>2012-02-21T02:23:00.000-08:00</published><updated>2012-07-30T02:25:33.323-07:00</updated><title type='text'>How to integrate &quot;xing&quot; share button in your site?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj35olbADu31Xr2kH1iO0fhuJggHv0tGS3yVD5rHSbzf8kQf3O0wlYruIjzyvktSx6x9AbI1kYQB61BGMtH8vozkZpciCwuNX-5xq0ektFtF1d_JvMdILlySX4TDbmmFW98LQB2NFIaRQ/s1600/xing-share-phprockers.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;533&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj35olbADu31Xr2kH1iO0fhuJggHv0tGS3yVD5rHSbzf8kQf3O0wlYruIjzyvktSx6x9AbI1kYQB61BGMtH8vozkZpciCwuNX-5xq0ektFtF1d_JvMdILlySX4TDbmmFW98LQB2NFIaRQ/s640/xing-share-phprockers.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Steps:&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;1.Select The button layout as you want display in your site.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;2.Provide the Url for which you are going to display the xing share count.(This is optional)&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;3.Select the language.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;4.Copy the code in the textarea and paste it in your page.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Thats it. The All new Xing share button will be displayed in your site.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phprockers.blogspot.com/feeds/6550578940410547840/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phprockers.blogspot.com/2012/07/how-to-integrate-xing-share-button-in.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3134317434590095750/posts/default/6550578940410547840'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3134317434590095750/posts/default/6550578940410547840'/><link rel='alternate' type='text/html' href='http://phprockers.blogspot.com/2012/07/how-to-integrate-xing-share-button-in.html' title='How to integrate &quot;xing&quot; share button in your site?'/><author><name>Ram</name><uri>http://www.blogger.com/profile/11521045862668163635</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuM23o22sawyefJ4AOoIJeQ6XgJ-exCe9gc57sPrUvsnkFgCsikoxNiixSW0fzB_zq4M1CbOeoFyvgmy9G8NlFPiKnBZIbJdo1y__ApDwJf3S7ZfiNl158SejtfYFRIw/s220/ram.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj35olbADu31Xr2kH1iO0fhuJggHv0tGS3yVD5rHSbzf8kQf3O0wlYruIjzyvktSx6x9AbI1kYQB61BGMtH8vozkZpciCwuNX-5xq0ektFtF1d_JvMdILlySX4TDbmmFW98LQB2NFIaRQ/s72-c/xing-share-phprockers.jpg" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3134317434590095750.post-947768466010380249</id><published>2012-02-20T03:44:00.000-08:00</published><updated>2012-02-20T03:44:26.773-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="get post tags by category"/><category scheme="http://www.blogger.com/atom/ns#" term="get post tags by category name in wordpress"/><category scheme="http://www.blogger.com/atom/ns#" term="How to get the post tags by particular category name in wordpress?"/><title type='text'>How to get the post tags by category name in wordpress?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; font-size: large;&quot;&gt;Paste this code wherever you want to get post tags for specific category name in wordpress.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
&lt;br /&gt;
$cat_name = &quot;Test Cat&quot;;&lt;br /&gt;
query_posts(&#39;category_name=&#39;.$cat_name); //give the your category name here.&lt;br /&gt;
&lt;br /&gt;
if (have_posts()) : while (have_posts()) : the_post();&lt;br /&gt;
$postTags = get_the_tags();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; if ($postTags) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; foreach($postTags as $tag) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $all_tags[] = $tag -&amp;gt; name; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
endwhile; endif; &lt;br /&gt;
&lt;br /&gt;
if(!empty($all_tags)) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; $unique_tags = array_unique($all_tags); //Removes the duplicates tags in the all_tags_arr array.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; echo &#39;&amp;lt;pre&amp;gt;&#39;.print_r($unique_tags, true).&#39;&amp;lt;/pre&amp;gt;&#39;; &lt;br /&gt;
} else {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; echo &quot;No post tags are available for &quot;.$cat_name.&quot; - category&quot;;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
?&amp;gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phprockers.blogspot.com/feeds/947768466010380249/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phprockers.blogspot.com/2012/02/how-to-get-post-tags-by-category-name.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3134317434590095750/posts/default/947768466010380249'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3134317434590095750/posts/default/947768466010380249'/><link rel='alternate' type='text/html' href='http://phprockers.blogspot.com/2012/02/how-to-get-post-tags-by-category-name.html' title='How to get the post tags by category name in wordpress?'/><author><name>Ram</name><uri>http://www.blogger.com/profile/11521045862668163635</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuM23o22sawyefJ4AOoIJeQ6XgJ-exCe9gc57sPrUvsnkFgCsikoxNiixSW0fzB_zq4M1CbOeoFyvgmy9G8NlFPiKnBZIbJdo1y__ApDwJf3S7ZfiNl158SejtfYFRIw/s220/ram.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3134317434590095750.post-105004900938848921</id><published>2012-02-17T07:47:00.000-08:00</published><updated>2012-02-17T07:47:44.350-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="get posts by post tags in wordpress"/><category scheme="http://www.blogger.com/atom/ns#" term="get posts title using post tags"/><category scheme="http://www.blogger.com/atom/ns#" term="how to get the posts using post tags in wordpress"/><category scheme="http://www.blogger.com/atom/ns#" term="post tags in wordpress"/><title type='text'>How to get the posts by post tags in wordpress</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;We have easily get the post titles from from the post Id. So We have to try to get the post Id using the post tags. &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;lt;?php&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;br /&gt;
global&amp;nbsp; $wpdb;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;$postTags = &quot;Accidents&quot;;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;//Below query can be used to get the post id using post tags.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
$querystr =&quot;SELECT object_id FROM wp_term_relationships WHERE term_taxonomy_id = (SELECT term_taxonomy_id FROM wp_term_taxonomy WHERE taxonomy = &#39;post_tag&#39; AND term_id = (SELECT term_id FROM wp_terms WHERE name =&#39;$postTags &#39;))&quot;;&lt;br /&gt;
&lt;br /&gt;
$result= $wpdb-&amp;gt;get_results($querystr);&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;//$result have the post id. Now we easily get the post title or post information using post id.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
foreach($result as $postid) {&lt;br /&gt;
&lt;br /&gt;
echo get_the_title($postid-&amp;gt;object_id).&#39;&amp;lt;br/&amp;gt;&#39;;&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
?&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phprockers.blogspot.com/feeds/105004900938848921/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phprockers.blogspot.com/2012/02/how-to-get-posts-by-post-tags-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3134317434590095750/posts/default/105004900938848921'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3134317434590095750/posts/default/105004900938848921'/><link rel='alternate' type='text/html' href='http://phprockers.blogspot.com/2012/02/how-to-get-posts-by-post-tags-in.html' title='How to get the posts by post tags in wordpress'/><author><name>Ram</name><uri>http://www.blogger.com/profile/11521045862668163635</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuM23o22sawyefJ4AOoIJeQ6XgJ-exCe9gc57sPrUvsnkFgCsikoxNiixSW0fzB_zq4M1CbOeoFyvgmy9G8NlFPiKnBZIbJdo1y__ApDwJf3S7ZfiNl158SejtfYFRIw/s220/ram.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3134317434590095750.post-8946278996842540279</id><published>2012-02-15T03:07:00.000-08:00</published><updated>2012-02-15T03:08:33.502-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Database normalization"/><category scheme="http://www.blogger.com/atom/ns#" term="normalization"/><category scheme="http://www.blogger.com/atom/ns#" term="Normalization in sql"/><category scheme="http://www.blogger.com/atom/ns#" term="what is the normalization in mysql?"/><title type='text'>What is normalization?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Normalisation is a set of rules and techniques concerned with below:&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 1. Identifying relationships among the attributes.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 2. Combining the attributes to form relations.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 3. Combining the relations to form a database.&lt;br /&gt;
&lt;br /&gt;
Normalised relational database gives several benefits to us:&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 1. Elimination of redundant data storage in the database.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 2. Close modeling of real world entities, processes, and their&amp;nbsp; relationships.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 3. Structuring of data so that the model is flexible.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phprockers.blogspot.com/feeds/8946278996842540279/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phprockers.blogspot.com/2012/02/what-is-normalization.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3134317434590095750/posts/default/8946278996842540279'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3134317434590095750/posts/default/8946278996842540279'/><link rel='alternate' type='text/html' href='http://phprockers.blogspot.com/2012/02/what-is-normalization.html' title='What is normalization?'/><author><name>Ram</name><uri>http://www.blogger.com/profile/11521045862668163635</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuM23o22sawyefJ4AOoIJeQ6XgJ-exCe9gc57sPrUvsnkFgCsikoxNiixSW0fzB_zq4M1CbOeoFyvgmy9G8NlFPiKnBZIbJdo1y__ApDwJf3S7ZfiNl158SejtfYFRIw/s220/ram.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3134317434590095750.post-919159039659923857</id><published>2012-02-14T02:25:00.000-08:00</published><updated>2012-02-14T02:25:52.591-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="php strip img tag"/><category scheme="http://www.blogger.com/atom/ns#" term="php strip tag attributes"/><category scheme="http://www.blogger.com/atom/ns#" term="strip html tag in php"/><category scheme="http://www.blogger.com/atom/ns#" term="Strip tags uses in PHP"/><title type='text'>Strip tags in PHP</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;strip_tags() function will return the string with stripped(removed) HTML and PHP tags.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
&lt;br /&gt;
$string = &#39;&amp;lt;h2&amp;gt;This is PHP Rokcers blogspot.&amp;lt;/h2&amp;gt;&amp;lt;!-- Comment --&amp;gt; &amp;lt;a href=&quot;http://phprockers.blogspot.com/&quot;&amp;gt;phprockers&amp;lt;/a&amp;gt;&#39;;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
echo strip_tags($string);&lt;br /&gt;
&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Output:&lt;br /&gt;
=======&lt;br /&gt;
This is PHP Rokcers blogspot. phprockers&lt;br /&gt;
&lt;br /&gt;
If we want to allow some specific tags in our string, we have to given that tags as parameters in strip_tags function.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
&lt;br /&gt;
$string = &#39;&amp;lt;h2&amp;gt;This is PHP Rokcers blogspot.&amp;lt;/h2&amp;gt;&amp;lt;!-- Comment --&amp;gt; &amp;lt;a href=&quot;http://phprockers.blogspot.com/&quot;&amp;gt;phprockers&amp;lt;/a&amp;gt;&#39;;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
echo strip_tags($string, &#39;&amp;lt;h2&amp;gt;&amp;lt;a&amp;gt;&#39;);&lt;br /&gt;
&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Output:&lt;br /&gt;
=======&lt;br /&gt;
&amp;lt;h2&amp;gt;This is PHP Rokcers blogspot.&amp;lt;/h2&amp;gt;&amp;lt;a href=&quot;http://phprockers.blogspot.com/&quot;&amp;gt;phprockers&amp;lt;/a&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phprockers.blogspot.com/feeds/919159039659923857/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phprockers.blogspot.com/2012/02/strip-tags-in-php.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3134317434590095750/posts/default/919159039659923857'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3134317434590095750/posts/default/919159039659923857'/><link rel='alternate' type='text/html' href='http://phprockers.blogspot.com/2012/02/strip-tags-in-php.html' title='Strip tags in PHP'/><author><name>Ram</name><uri>http://www.blogger.com/profile/11521045862668163635</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuM23o22sawyefJ4AOoIJeQ6XgJ-exCe9gc57sPrUvsnkFgCsikoxNiixSW0fzB_zq4M1CbOeoFyvgmy9G8NlFPiKnBZIbJdo1y__ApDwJf3S7ZfiNl158SejtfYFRIw/s220/ram.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3134317434590095750.post-2789296599456207116</id><published>2012-02-08T01:55:00.000-08:00</published><updated>2012-02-13T01:04:45.624-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="dynamic upload multiple files in php"/><category scheme="http://www.blogger.com/atom/ns#" term="upload multiple files in php"/><title type='text'>Dynamic upload the multiple files in php with Javascript validation</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; font-size: large;&quot;&gt;&amp;lt;?php&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; $con = mysql_connection() or (mysql_error();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; mysql_db_select(&quot;phprockers&quot;, $con) or mysql_error();&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
&amp;lt;script type=&quot;text/javascript&quot; &amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; function add_more() {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var img = document.getElementById(&quot;image&quot;).value;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; img=parseInt(img)+1;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var txt = &quot;&amp;lt;br&amp;gt;&amp;lt;input type = file name = images&quot;+img+&quot;&amp;gt;&quot;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; document.getElementById(&quot;image&quot;).value=img;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; document.getElementById(&quot;files&quot;).innerHTML += txt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; function validate(){&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var img = document.getElementById(&quot;image&quot;).value;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; img=parseInt(img);&lt;/span&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; font-size: large;&quot;&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; while(img &amp;gt; 0){&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; var x=document.forms[&quot;myForm&quot;][&quot;images&quot;+img].value&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; if (x==&quot;&quot;) {&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; alert(&quot;please select file&quot;);&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; return false;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; img--;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;form method=&quot;POST&quot;&amp;nbsp; name=&quot;myForm&quot; action=&quot;&quot; enctype=&quot;multipart/form-data&quot; onSubmit=&quot;return validate();&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div id=&quot;files&quot;&amp;gt;&amp;nbsp; &amp;lt;input type=&quot;file&quot; name=&#39;images1&#39;/&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;input type=&quot;hidden&quot; value=1 id=&quot;image&quot; name=&quot;image&quot;/&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;input type = &quot;submit&quot; name = &quot;submit&quot; value = &quot;Submit&quot;&amp;nbsp; /&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div style=&quot;cursor:pointer&quot; onClick=&quot;add_more();&quot;&amp;gt;Attach File&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/form&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;?php&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; if($_POST[&#39;submit&#39;]!=&quot;&quot; ) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $upload_directory = &#39;upload/&#39;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for ($i = 1; $i &amp;lt;= $_REQUEST[&#39;image&#39;]; $i++) {&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; $path=$_FILES[&#39;images&#39;.$i][&#39;name&#39;];&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; move_uploaded_file ($_FILES[&#39;images&#39;.$i][&#39;tmp_name&#39;], $upload_directory . $_FILES[&#39;images&#39;.$i][&#39;name&#39;]);&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; $query=&quot;INSERT INTO `browsefile`(`id`, `path`) VALUES (NULL,&#39;$path&#39;)&quot;;&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; mysql_query( $query );&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; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; ?&amp;gt;&lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phprockers.blogspot.com/feeds/2789296599456207116/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phprockers.blogspot.com/2012/02/dynamic-upload-multiple-files-in-php.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3134317434590095750/posts/default/2789296599456207116'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3134317434590095750/posts/default/2789296599456207116'/><link rel='alternate' type='text/html' href='http://phprockers.blogspot.com/2012/02/dynamic-upload-multiple-files-in-php.html' title='Dynamic upload the multiple files in php with Javascript validation'/><author><name>Ram</name><uri>http://www.blogger.com/profile/11521045862668163635</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuM23o22sawyefJ4AOoIJeQ6XgJ-exCe9gc57sPrUvsnkFgCsikoxNiixSW0fzB_zq4M1CbOeoFyvgmy9G8NlFPiKnBZIbJdo1y__ApDwJf3S7ZfiNl158SejtfYFRIw/s220/ram.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3134317434590095750.post-494431297936297159</id><published>2012-02-06T09:23:00.000-08:00</published><updated>2012-02-06T09:23:19.188-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="file upload in php"/><category scheme="http://www.blogger.com/atom/ns#" term="how to get the multiple uploaded files in php"/><category scheme="http://www.blogger.com/atom/ns#" term="multiple file upload in php"/><title type='text'>Multiple File uploads in PHP</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;lt;?php&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; $con = mysql_connection() or(mysql_error();&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; mysql_db_select(&quot;phprockers&quot;, $con) or mysql_error();&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;form method=&quot;POST&quot; action=&quot;&quot; enctype=&quot;multipart/form-data&quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Images 1: &amp;lt;input type=file name=&#39;images1&#39; &amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Images 2: &amp;lt;input type=file name=&#39;images2&#39; &amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Images 3: &amp;lt;input type=file name=&#39;images3&#39; &amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;input type=&quot;submit&quot; name=&quot;submit&quot; value=&quot;Submit&quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/form&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;lt;?php&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; if($_POST[&#39;submit&#39;]!=&quot;&quot; ) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $upload_directory = &#39;/upload/&#39;; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; for ($i = 1; $i &amp;lt;= count($_FILES); $i++) {&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $path = $_FILES[&#39;images&#39;.$i][&#39;name&#39;];&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; move_uploaded_file($_FILES[&#39;images&#39;.$i][&#39;tmp_name&#39;], $upload_directory . basename($_FILES[&#39;images&#39;.$i][&#39;name&#39;]));&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $query=&quot;INSERT INTO browsefile (id,path) values(&#39;$path&#39;)&quot;; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; mysql_query( $query ); &lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
?&amp;gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phprockers.blogspot.com/feeds/494431297936297159/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phprockers.blogspot.com/2012/02/multiple-file-uploads-in-php.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3134317434590095750/posts/default/494431297936297159'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3134317434590095750/posts/default/494431297936297159'/><link rel='alternate' type='text/html' href='http://phprockers.blogspot.com/2012/02/multiple-file-uploads-in-php.html' title='Multiple File uploads in PHP'/><author><name>Ram</name><uri>http://www.blogger.com/profile/11521045862668163635</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuM23o22sawyefJ4AOoIJeQ6XgJ-exCe9gc57sPrUvsnkFgCsikoxNiixSW0fzB_zq4M1CbOeoFyvgmy9G8NlFPiKnBZIbJdo1y__ApDwJf3S7ZfiNl158SejtfYFRIw/s220/ram.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3134317434590095750.post-491591540798733932</id><published>2012-02-03T08:41:00.000-08:00</published><updated>2012-02-03T08:41:37.021-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="get_categories"/><category scheme="http://www.blogger.com/atom/ns#" term="get_the_author in wordpress"/><category scheme="http://www.blogger.com/atom/ns#" term="get_the_content"/><category scheme="http://www.blogger.com/atom/ns#" term="get_the_title"/><category scheme="http://www.blogger.com/atom/ns#" term="the_title"/><category scheme="http://www.blogger.com/atom/ns#" term="Wordpres functions"/><title type='text'>Important  functions in Wordpres</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;Wordpress Functions:&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;================&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;get_the_excerpt() -&amp;nbsp; It can be used to get the post excerpt content in the current post.&lt;br /&gt;
&lt;br /&gt;
get_post($post-&amp;gt;ID) - It can be used to get the post details about current post. It has title,categoryid, category name, post status etc. Here post-&amp;gt;ID is optional.&lt;br /&gt;
&lt;br /&gt;
get_the_post_thumbnail($page-&amp;gt;ID,array(150,200),&#39;thumbnail&#39;) - It can be used for retrive the thumbnail image for the post.&lt;br /&gt;
&lt;br /&gt;
the_title() - It can be used for retrive the title for current post.&lt;/span&gt;&lt;/div&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
get_the_title(ID) - It can be also used to get the title for the post.&lt;br /&gt;
&lt;br /&gt;
get_cat_name( $cat_id ) - It can be used to get the category title for that category id.&lt;br /&gt;
&lt;br /&gt;
get_post_type(ID) - get the post type for that post id.&lt;br /&gt;
&lt;br /&gt;
get_the_author() - get the author name for current post.&lt;br /&gt;
&lt;br /&gt;
get_categories() -&amp;nbsp; get the all the categories in wp.&lt;br /&gt;
&lt;br /&gt;
get_the_content() - It can be used for the get the content for current post.&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phprockers.blogspot.com/feeds/491591540798733932/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phprockers.blogspot.com/2012/02/important-functions-in-wordpres.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3134317434590095750/posts/default/491591540798733932'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3134317434590095750/posts/default/491591540798733932'/><link rel='alternate' type='text/html' href='http://phprockers.blogspot.com/2012/02/important-functions-in-wordpres.html' title='Important  functions in Wordpres'/><author><name>Ram</name><uri>http://www.blogger.com/profile/11521045862668163635</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuM23o22sawyefJ4AOoIJeQ6XgJ-exCe9gc57sPrUvsnkFgCsikoxNiixSW0fzB_zq4M1CbOeoFyvgmy9G8NlFPiKnBZIbJdo1y__ApDwJf3S7ZfiNl158SejtfYFRIw/s220/ram.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3134317434590095750.post-423529245417136240</id><published>2012-02-03T06:00:00.000-08:00</published><updated>2012-02-03T06:00:01.451-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="max number of database in mysql"/><category scheme="http://www.blogger.com/atom/ns#" term="max number of row in a table"/><category scheme="http://www.blogger.com/atom/ns#" term="max number of tables in mysql database"/><title type='text'>Limitatin in MYSQL</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Table attribute names are eliminated after 31 characters in the database.&lt;br /&gt;
&lt;br /&gt;
The maximum character of database and table is 122 characters in the mysql.&lt;br /&gt;
&lt;br /&gt;
The maximum number of table in a mysql database is 1792.&lt;br /&gt;
&lt;br /&gt;
The maximum number of database in mysql is 20320.&lt;br /&gt;
&lt;br /&gt;
The maximum number of attributes (that is, columns and indexes) per table is 128 characters. &lt;br /&gt;
&lt;br /&gt;
The maximum number of attributes per key is 32. &lt;br /&gt;
&lt;br /&gt;
The maximum permitted size of one row in table is 8052 bytes.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phprockers.blogspot.com/feeds/423529245417136240/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phprockers.blogspot.com/2012/02/limitatin-in-mysql.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3134317434590095750/posts/default/423529245417136240'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3134317434590095750/posts/default/423529245417136240'/><link rel='alternate' type='text/html' href='http://phprockers.blogspot.com/2012/02/limitatin-in-mysql.html' title='Limitatin in MYSQL'/><author><name>Ram</name><uri>http://www.blogger.com/profile/11521045862668163635</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuM23o22sawyefJ4AOoIJeQ6XgJ-exCe9gc57sPrUvsnkFgCsikoxNiixSW0fzB_zq4M1CbOeoFyvgmy9G8NlFPiKnBZIbJdo1y__ApDwJf3S7ZfiNl158SejtfYFRIw/s220/ram.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3134317434590095750.post-7294955293343592355</id><published>2012-02-01T07:50:00.000-08:00</published><updated>2012-02-01T08:04:43.817-08:00</updated><title type='text'>Get the second highest salary from employee table in mysql</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;
&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;We have get the second, third, fourth etc. hightest salary from the employee table very easily in mysql/sql.&lt;br /&gt;
&lt;br /&gt;
Getting max highest salary:&lt;br /&gt;
===================&lt;br /&gt;
&lt;br /&gt;
SELECT max(salary) as salary FROM employee;&lt;br /&gt;
&lt;br /&gt;
Getting N th highest salary syntax:&lt;br /&gt;
========================&lt;br /&gt;
&lt;br /&gt;
SELECT salary FROM employee as emp WHERE (n-1) = (SELECT count(*) FROM employee as emp2 WHERE emp2.salary &amp;gt; emp.salary)&lt;br /&gt;
&lt;br /&gt;
Getting 2nd maximum salary:&lt;br /&gt;
=====================&lt;br /&gt;
Above syntax, subsitute n=2, then we have to get second max salary.&lt;br /&gt;
&lt;br /&gt;
SELECT salary FROM employee as emp WHERE (2-1) = (SELECT count(*) FROM employee as emp2 WHERE emp2.salary &amp;gt; emp.salary)&lt;/span&gt;&lt;/div&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
(OR)&lt;br /&gt;
&lt;br /&gt;
SELECT max(salary) as salary FROM employee WHERE salary &amp;lt; (SELECT max(salary) FROM employee)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;(OR)&lt;br /&gt;
&lt;br /&gt;
SELECT salary FROM employee ORDER BY salary DESC LIMIT 1,1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
Getting First Three maximum salary:&lt;br /&gt;
=======================&lt;br /&gt;
&lt;br /&gt;
SELECT salary FROM employee ORDER BY salary DESC LIMIT 0,3.&lt;br /&gt;
&lt;br /&gt;
This is very useful for retriving the highest three maximum salary from the employee table. &lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phprockers.blogspot.com/feeds/7294955293343592355/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phprockers.blogspot.com/2012/02/get-second-highest-salary-in-mysql.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3134317434590095750/posts/default/7294955293343592355'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3134317434590095750/posts/default/7294955293343592355'/><link rel='alternate' type='text/html' href='http://phprockers.blogspot.com/2012/02/get-second-highest-salary-in-mysql.html' title='Get the second highest salary from employee table in mysql'/><author><name>Ram</name><uri>http://www.blogger.com/profile/11521045862668163635</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuM23o22sawyefJ4AOoIJeQ6XgJ-exCe9gc57sPrUvsnkFgCsikoxNiixSW0fzB_zq4M1CbOeoFyvgmy9G8NlFPiKnBZIbJdo1y__ApDwJf3S7ZfiNl158SejtfYFRIw/s220/ram.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3134317434590095750.post-8018998356454213387</id><published>2012-01-31T05:11:00.001-08:00</published><updated>2012-01-31T05:11:59.066-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="mysql_escape_string"/><category scheme="http://www.blogger.com/atom/ns#" term="what is mysql_escape_string"/><category scheme="http://www.blogger.com/atom/ns#" term="what is the use of mysql_escape_string in php"/><title type='text'>mysql_escape_string in php</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;This function escacpe the single quotes, double quotes and unwanted symbol from our passing strings. &lt;br /&gt;
&lt;br /&gt;
Format :&lt;br /&gt;
========&lt;br /&gt;
mysql_escape_string(string_name);&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Example:&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;======&lt;br /&gt;
$first_name = mysql_escape_string($first_name);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Keep in mind:&lt;br /&gt;
=============&lt;br /&gt;
mysql_escape_string() cann&#39;t escape the % and _. &lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phprockers.blogspot.com/feeds/8018998356454213387/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phprockers.blogspot.com/2012/01/mysqlescapestring-in-php.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3134317434590095750/posts/default/8018998356454213387'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3134317434590095750/posts/default/8018998356454213387'/><link rel='alternate' type='text/html' href='http://phprockers.blogspot.com/2012/01/mysqlescapestring-in-php.html' title='mysql_escape_string in php'/><author><name>Ram</name><uri>http://www.blogger.com/profile/11521045862668163635</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuM23o22sawyefJ4AOoIJeQ6XgJ-exCe9gc57sPrUvsnkFgCsikoxNiixSW0fzB_zq4M1CbOeoFyvgmy9G8NlFPiKnBZIbJdo1y__ApDwJf3S7ZfiNl158SejtfYFRIw/s220/ram.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3134317434590095750.post-2001485789620314079</id><published>2012-01-31T04:12:00.000-08:00</published><updated>2012-01-31T04:12:06.015-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="display all the database name in php"/><category scheme="http://www.blogger.com/atom/ns#" term="How do I find out a database name in MySQL?"/><category scheme="http://www.blogger.com/atom/ns#" term="How to get all database names with MS SQL?"/><category scheme="http://www.blogger.com/atom/ns#" term="list all db name in php"/><title type='text'>List out all the mysql database name in php</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;List out all the mysql database name using follwing php code.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; error_reporting(E_ALL);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; $connection = mysql_connect(&#39;localhost&#39;, &#39;root&#39;, &#39;&#39;);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; $database_list = mysql_list_dbs($connection);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; $count = mysql_num_rows($database_list);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; for($i=0;$i&amp;lt;$count;$i++) {&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; echo mysql_db_name($db_list, $i) . &quot;&amp;lt;br/&amp;gt;&quot;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
?&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phprockers.blogspot.com/feeds/2001485789620314079/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phprockers.blogspot.com/2012/01/list-out-all-mysql-database-name-in-php.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3134317434590095750/posts/default/2001485789620314079'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3134317434590095750/posts/default/2001485789620314079'/><link rel='alternate' type='text/html' href='http://phprockers.blogspot.com/2012/01/list-out-all-mysql-database-name-in-php.html' title='List out all the mysql database name in php'/><author><name>Ram</name><uri>http://www.blogger.com/profile/11521045862668163635</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuM23o22sawyefJ4AOoIJeQ6XgJ-exCe9gc57sPrUvsnkFgCsikoxNiixSW0fzB_zq4M1CbOeoFyvgmy9G8NlFPiKnBZIbJdo1y__ApDwJf3S7ZfiNl158SejtfYFRIw/s220/ram.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3134317434590095750.post-6112104702355301714</id><published>2012-01-31T02:10:00.000-08:00</published><updated>2012-01-31T02:21:02.549-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="get last inserted id mysql php"/><category scheme="http://www.blogger.com/atom/ns#" term="how to get last inserted ID of a table?"/><category scheme="http://www.blogger.com/atom/ns#" term="mysql_insert_id Get the ID generated in the last query"/><category scheme="http://www.blogger.com/atom/ns#" term="php mysql get id of last inserted row"/><title type='text'>How to get the mysql last inserted id using PHP?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;We have to easily get the last inserted id in mysql table using below code.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;lt;?php&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;$connection = mysql_connect(&#39;localhost&#39;, &#39;MYSQL_USERNAME&#39;, &#39;MYSQL_PASSWORD&#39;) or mysql_error();&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;mysql_select_db(&#39;DATABASE_NAME&#39;, $connection)&amp;nbsp; or mysql_error();&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;$query = &quot;INSERT INTO emp_table (emp_id, emp_name, emp_qualification, emp_salary) VALUES (&#39;SC70699&#39;, &#39;Ramakrishnan&#39;, &#39;MCA&#39;, &#39;13186&#39;)&quot;;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;mysql_query($query );&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;$last_insert_id = mysql_insert_id();&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;echo &quot;Last insert id in employee table: &quot;.$last_insert_id;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;mysql_close($connection) ;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phprockers.blogspot.com/feeds/6112104702355301714/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phprockers.blogspot.com/2012/01/how-to-get-mysql-last-inserted-id-using.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3134317434590095750/posts/default/6112104702355301714'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3134317434590095750/posts/default/6112104702355301714'/><link rel='alternate' type='text/html' href='http://phprockers.blogspot.com/2012/01/how-to-get-mysql-last-inserted-id-using.html' title='How to get the mysql last inserted id using PHP?'/><author><name>Ram</name><uri>http://www.blogger.com/profile/11521045862668163635</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuM23o22sawyefJ4AOoIJeQ6XgJ-exCe9gc57sPrUvsnkFgCsikoxNiixSW0fzB_zq4M1CbOeoFyvgmy9G8NlFPiKnBZIbJdo1y__ApDwJf3S7ZfiNl158SejtfYFRIw/s220/ram.jpg'/></author><thr:total>1</thr:total></entry></feed>