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

<channel>
	<title>Password recovery Archives -</title>
	<atom:link href="https://mitindia.in/tag/password-recovery/feed/" rel="self" type="application/rss+xml" />
	<link>https://mitindia.in/tag/password-recovery/</link>
	<description></description>
	<lastBuildDate>Sat, 26 Nov 2016 06:57:40 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://mitindia.in/wp-content/uploads/2023/03/cropped-android-chrome-512x512-1-32x32.png</url>
	<title>Password recovery Archives -</title>
	<link>https://mitindia.in/tag/password-recovery/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Password recovery example using php from MySQL</title>
		<link>https://mitindia.in/password-recovery-example-using-php-from-mysql/</link>
		
		<dc:creator><![CDATA[SKB]]></dc:creator>
		<pubDate>Tue, 21 Jun 2016 11:25:22 +0000</pubDate>
				<category><![CDATA[PHP-MySQL]]></category>
		<category><![CDATA[Password recovery]]></category>
		<guid isPermaLink="false">http://www.mitindia.in/?p=93</guid>

					<description><![CDATA[<p>To retrieve the password from your MySQL Database with using PHP script. Step 1 : Create a table called &#8220;users&#8221; in your MySQL database with following structure for the same. Step 2: Create a configuration file called &#8216;config.php&#8217; which contains connection string and local host / remote server path. &#60;?php $connection = mysql_connect('localhost', 'root', ''); [&#8230;]</p>
<p>The post <a href="https://mitindia.in/password-recovery-example-using-php-from-mysql/">Password recovery example using php from MySQL</a> appeared first on <a href="https://mitindia.in"></a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><b>To retrieve the password from your MySQL Database with using PHP script.</b></p>
<p>Step 1 : Create a table called &#8220;users&#8221; in your MySQL database with following structure for the same.<br />
<img decoding="async" class="alignnone" src="https://4.bp.blogspot.com/-C-qZOaLcXcM/Vvy9Tl3-iUI/AAAAAAAABQg/42lcGJE5ovQytAXRY2S-BETncHlNfufwQ/s400/user_table_structure.JPG" width="400" height="83" border="0" /></p>
<p>Step 2: Create a configuration file called &#8216;config.php&#8217; which contains connection string and local host / remote server path.</p>
<pre>&lt;?php
$connection = mysql_connect('localhost', 'root', '');
if (!$connection){
die("Database Connection Failed" . mysql_error());
}
$select_db = mysql_select_db('mars_db');
if (!$select_db){
die("Database Selection Failed" . mysql_error());
}
?&gt;</pre>
<p>Step 3: Now create a &#8216;forgotpassword.php&#8217; page with following code in it.</p>
<pre>&lt;center&gt;
&lt;h2 style='background-color:skyblue; color:blue'&gt; 

Password recovery page &lt;/h2&gt;
&lt;hr&gt;

&lt;?php error_reporting (E_ALL ^ E_NOTICE); ?&gt;

&lt;?php session_start();
include"config.php"; 
if (isset($_POST['username'])){
    $username = $_POST['username'];
    $query="select * from users where 

usernm='$username'";
    $result=mysql_query($query);
    $count=mysql_num_rows($result);
    if($count==1)
    {
        $rows=mysql_fetch_array($result);
        $pass  =  $rows['password'];
        echo "&lt;b&gt;&lt;p 

style='background-color:green; color:yellow'&gt;your 

password is::".($pass)."";
        $to = $rows['usernm'];
}
}
?&gt;

&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Password recovery page&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;form action="" method="post"&gt;
        &lt;label&gt; Enter your User Name / Email 

Id : &lt;/label&gt;
        &lt;input id="username" type="text" 

name="username" /&gt;
        &lt;input id="button" type="submit" 

name="button" value="Submit" /&gt;
    &lt;/form&gt;

&lt;b&gt;&lt;p style='background-color:khaki; 

color:teal'&gt;&lt;marquee  onmouseover='stop()' 

onmouseout='start()' &gt; Password recovery demo page 

&lt;/marquee&gt; &lt;/p&gt;

&lt;/body&gt;
&lt;/html&gt;</pre>
<p>Step 4: Run the program to recover the forgot password.</p>
<div class="separator"><img fetchpriority="high" decoding="async" class="alignnone" src="https://4.bp.blogspot.com/-Gsi-Q4OWooU/Vvy_5J4fkYI/AAAAAAAABQs/DMLXu25B86QJVMO1GupuktzyxepPos1dA/s400/passwordrecovery.JPG" width="400" height="256" border="0" /></div>
<div class="separator"></div>
<div class="separator"></div>
<div class="separator">Step 5: After entering existing user id, the following password is retrieved from your database.</div>
<div class="separator"><img decoding="async" class="alignnone" src="https://4.bp.blogspot.com/-PLKekh-ERik/VvzAWE0N5UI/AAAAAAAABQw/QNvoQHu-lLMocggwGB_II62lJbpXVgf_w/s400/passwordrecovery2.JPG" width="400" height="200" border="0" /></div>
<p>&nbsp;</p>
<p><a class="a2a_button_whatsapp" href="https://www.addtoany.com/add_to/whatsapp?linkurl=https%3A%2F%2Fmitindia.in%2Fpassword-recovery-example-using-php-from-mysql%2F&amp;linkname=Password%20recovery%20example%20using%20php%20from%20MySQL" title="WhatsApp" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fmitindia.in%2Fpassword-recovery-example-using-php-from-mysql%2F&amp;linkname=Password%20recovery%20example%20using%20php%20from%20MySQL" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fmitindia.in%2Fpassword-recovery-example-using-php-from-mysql%2F&#038;title=Password%20recovery%20example%20using%20php%20from%20MySQL" data-a2a-url="https://mitindia.in/password-recovery-example-using-php-from-mysql/" data-a2a-title="Password recovery example using php from MySQL"><img src="https://static.addtoany.com/buttons/favicon.png" alt="Share"></a></p><p>The post <a href="https://mitindia.in/password-recovery-example-using-php-from-mysql/">Password recovery example using php from MySQL</a> appeared first on <a href="https://mitindia.in"></a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
