<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://script.spoken-tutorial.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://script.spoken-tutorial.org/index.php?action=history&amp;feed=atom&amp;title=PHP-and-MySQL%2FC4%2FUser-Login-Part-2%2FEnglish</id>
		<title>PHP-and-MySQL/C4/User-Login-Part-2/English - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://script.spoken-tutorial.org/index.php?action=history&amp;feed=atom&amp;title=PHP-and-MySQL%2FC4%2FUser-Login-Part-2%2FEnglish"/>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=PHP-and-MySQL/C4/User-Login-Part-2/English&amp;action=history"/>
		<updated>2026-04-20T15:08:18Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.23.17</generator>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=PHP-and-MySQL/C4/User-Login-Part-2/English&amp;diff=6494&amp;oldid=prev</id>
		<title>Kavita salve at 05:50, 14 October 2013</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=PHP-and-MySQL/C4/User-Login-Part-2/English&amp;diff=6494&amp;oldid=prev"/>
				<updated>2013-10-14T05:50:32Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 05:50, 14 October 2013&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 113:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 113:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|4:33&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|4:33&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|This will be equal 1, 2, 3, 4 and so on. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|This will be equal 1, 2, 3, 4 and so on. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|-&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|4:38&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|Sorry it will equal... &lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|4:40&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|4:40&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Kavita salve</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=PHP-and-MySQL/C4/User-Login-Part-2/English&amp;diff=899&amp;oldid=prev</id>
		<title>Pravin1389: moved PHP-and-MySQL/C4/User-Login-(Part 2)/English to PHP-and-MySQL/C4/User-Login-Part-2/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=PHP-and-MySQL/C4/User-Login-Part-2/English&amp;diff=899&amp;oldid=prev"/>
				<updated>2012-12-01T15:51:05Z</updated>
		
		<summary type="html">&lt;p&gt;moved &lt;a href=&quot;/index.php/PHP-and-MySQL/C4/User-Login-(Part_2)/English&quot; class=&quot;mw-redirect&quot; title=&quot;PHP-and-MySQL/C4/User-Login-(Part 2)/English&quot;&gt;PHP-and-MySQL/C4/User-Login-(Part 2)/English&lt;/a&gt; to &lt;a href=&quot;/index.php/PHP-and-MySQL/C4/User-Login-Part-2/English&quot; title=&quot;PHP-and-MySQL/C4/User-Login-Part-2/English&quot;&gt;PHP-and-MySQL/C4/User-Login-Part-2/English&lt;/a&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 15:51, 1 December 2012&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan='2' style='text-align: center;'&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Pravin1389</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=PHP-and-MySQL/C4/User-Login-Part-2/English&amp;diff=593&amp;oldid=prev</id>
		<title>Chandrika: Created page with '{|Border=1 !Time  !Narration |- |0:00 |Welcome to the second part. Here I’ll show you how to edit your &quot;login dot php&quot; page to connect to the database and also how to check our…'</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=PHP-and-MySQL/C4/User-Login-Part-2/English&amp;diff=593&amp;oldid=prev"/>
				<updated>2012-11-29T07:04:03Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;#039;{|Border=1 !Time  !Narration |- |0:00 |Welcome to the second part. Here I’ll show you how to edit your &amp;quot;login dot php&amp;quot; page to connect to the database and also how to check our…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{|Border=1&lt;br /&gt;
!Time &lt;br /&gt;
!Narration&lt;br /&gt;
|-&lt;br /&gt;
|0:00&lt;br /&gt;
|Welcome to the second part. Here I’ll show you how to edit your &amp;quot;login dot php&amp;quot; page to connect to the database and also how to check our username and password against that in the database.&lt;br /&gt;
|-&lt;br /&gt;
|0:14&lt;br /&gt;
|Now we’ve already connected to our database.&lt;br /&gt;
|-&lt;br /&gt;
|0:18&lt;br /&gt;
|Refreshing this and resending my username and password, we can establish that there have been no errors.&lt;br /&gt;
|-&lt;br /&gt;
|0:24&lt;br /&gt;
|I mean this error here.&lt;br /&gt;
|-&lt;br /&gt;
|0:25&lt;br /&gt;
|And we have seen that if we don’t type data we will get an error.&lt;br /&gt;
|-&lt;br /&gt;
|0:28&lt;br /&gt;
|Now. First of all I’m going to setup a query. &lt;br /&gt;
|-&lt;br /&gt;
|0:36&lt;br /&gt;
|If you have used &amp;quot;mysql&amp;quot; or any structured query language before, you will know that you can query a database. &lt;br /&gt;
|-&lt;br /&gt;
|0:43&lt;br /&gt;
|I think Microsoft Access has this.&lt;br /&gt;
|-&lt;br /&gt;
|0:46&lt;br /&gt;
|So here we are going to say, &amp;quot;SELECT&amp;quot;, in fact we’re going to say &amp;quot;SELECT *&amp;quot; because we need the ID, the username and the password. &lt;br /&gt;
|-&lt;br /&gt;
|0:54&lt;br /&gt;
|I don’t think we need the id but &amp;quot;SELECT *&amp;quot; anyway so that it will grab all the data.&lt;br /&gt;
|-&lt;br /&gt;
|0:59&lt;br /&gt;
|So &amp;quot;SELECT * FROM&amp;quot; and we’ve called this, users, I think. Let me confirm that.&lt;br /&gt;
|-&lt;br /&gt;
|1:04&lt;br /&gt;
|Yes, users.  So &amp;quot;SELECT * users&amp;quot; and here we’ll say &amp;quot;WHERE username&amp;quot; which is the name of this...... this, here. &lt;br /&gt;
|-&lt;br /&gt;
|1:20&lt;br /&gt;
|And we will say &amp;quot;WHERE username equals&amp;quot; the &amp;quot;username&amp;quot; that has been typed. &lt;br /&gt;
|-&lt;br /&gt;
|1:30&lt;br /&gt;
|Now if that &amp;quot;username&amp;quot; doesn’t exist, we need to display some kind of an error message to say that &amp;quot;This user doesn’t exist&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|1:37&lt;br /&gt;
|So what we will do is we will use another function, a mysql function called &amp;quot;mysql num rows&amp;quot;. &lt;br /&gt;
|-&lt;br /&gt;
|1:46&lt;br /&gt;
|This counts the number of rows that have been retrieved from the query you’ve given the database. &lt;br /&gt;
|-&lt;br /&gt;
|1:53&lt;br /&gt;
|So we’ll say &amp;quot;numrows equals mysql_num_rows&amp;quot; and in the brackets we have the name of our query, the variable that I have stored the query function in.&lt;br /&gt;
|-&lt;br /&gt;
|2.08&lt;br /&gt;
|And if we echo out the number of rows, I’ll just prove to you and test for myself that we should get 1 because we have just 1 row.&lt;br /&gt;
|-&lt;br /&gt;
|2.16&lt;br /&gt;
|Let me click insert and add another row of data, for example - another username and another password.&lt;br /&gt;
|-&lt;br /&gt;
|2:26&lt;br /&gt;
|I’ll just try that now. I’ll be testing this later on. Lets see, lets say username is &amp;quot;Kyle&amp;quot; and password is &amp;quot;123&amp;quot; this time.&lt;br /&gt;
|-&lt;br /&gt;
|2:38&lt;br /&gt;
|Okay, lets try that. And there we are. Hold on a second.  Where am I?  Ah there we go. &lt;br /&gt;
|-&lt;br /&gt;
|2:53&lt;br /&gt;
|So we have got &amp;quot;Alex&amp;quot; and &amp;quot;Kyle&amp;quot;. &lt;br /&gt;
|-&lt;br /&gt;
|2:55&lt;br /&gt;
|We can see the ids have been automatically incremented. &lt;br /&gt;
|-&lt;br /&gt;
|2:58&lt;br /&gt;
|You can see both our passwords here and the 2 usernames. &lt;br /&gt;
|-&lt;br /&gt;
|3:02&lt;br /&gt;
|Now we will refresh this and see what we get.&lt;br /&gt;
|-&lt;br /&gt;
|3.06:&lt;br /&gt;
|Oh Ok. This is the whole part of the check.&lt;br /&gt;
|-&lt;br /&gt;
|3:10&lt;br /&gt;
|The reason this has returned 1 is that if I were just selecting every user and then counting the row, the value would increment.&lt;br /&gt;
|-&lt;br /&gt;
|3:18&lt;br /&gt;
|Go back here and refresh and we’ll get the value of 2 because there are 2 rows.&lt;br /&gt;
|-&lt;br /&gt;
|3:22&lt;br /&gt;
|But if I’m saying &amp;quot;SELECT where the username equals my username&amp;quot;, we’re obviously only selecting where my username exists and that is in 1 row. &lt;br /&gt;
|-&lt;br /&gt;
|3:34&lt;br /&gt;
|Usually on a website, you won’t have duplicate username. &lt;br /&gt;
|-&lt;br /&gt;
|3:40&lt;br /&gt;
|Okay. So now that we have got this, what is the purpose of finding out how many rows there are. &lt;br /&gt;
|-&lt;br /&gt;
|3:47&lt;br /&gt;
|Now the purpose is that we can say &amp;quot;if num_rows is equal to zero&amp;quot;, then that means we can.. Sorry, if &amp;quot;my num_rows doesn’t equal zero&amp;quot;, then we can execute the code we need to do, that we will need to login.&lt;br /&gt;
|-&lt;br /&gt;
|4.01&lt;br /&gt;
|Otherwise, sorry &amp;quot;else&amp;quot;, we need to echo out, sorry  &amp;quot;else die&amp;quot;. We will give the message &amp;quot;That user doesn’t exist&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|4:16:&lt;br /&gt;
|So what we’re doing is, we’re checking that a row has been returned where we have supplied that username. &lt;br /&gt;
|-&lt;br /&gt;
|4:25&lt;br /&gt;
|And if it doesn’t equal zero, we can execute our code to login.&lt;br /&gt;
|-&lt;br /&gt;
|4:29&lt;br /&gt;
|Otherwise we’ll say die and &amp;quot;Tthat username doesn’t exist&amp;quot;. &lt;br /&gt;
|-&lt;br /&gt;
|4:33&lt;br /&gt;
|This will be equal 1, 2, 3, 4 and so on. &lt;br /&gt;
|-&lt;br /&gt;
|4:38&lt;br /&gt;
|Sorry it will equal... &lt;br /&gt;
|-&lt;br /&gt;
|4:40&lt;br /&gt;
|If it doesn’t equal zero, then it must equal something. &lt;br /&gt;
|-&lt;br /&gt;
|4:44&lt;br /&gt;
|And if it does equal something, then the code in here will be executed. &lt;br /&gt;
|-&lt;br /&gt;
|4:47&lt;br /&gt;
|So if it is equal to 0, that basically means that no result can be returned. &lt;br /&gt;
|-&lt;br /&gt;
|4:52&lt;br /&gt;
|I’ll resend this.  Let’s go back.&lt;br /&gt;
|-&lt;br /&gt;
|4:57&lt;br /&gt;
|And.........  let’s get rid of our &amp;quot;echo num_rows&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|5:05&lt;br /&gt;
|Okay. So let’s go back to our main page and we’ll login with &amp;quot;Alex&amp;quot; and &amp;quot;abc&amp;quot;; password doesn’t matter at the moment. &lt;br /&gt;
|-&lt;br /&gt;
|5:13&lt;br /&gt;
|Nothing’s happened because no errors have been returned. &lt;br /&gt;
|-&lt;br /&gt;
|5:15&lt;br /&gt;
|Now let me use Billy, for example, and type the password in and click on login. &lt;br /&gt;
|-&lt;br /&gt;
|5:21&lt;br /&gt;
|&amp;quot;That user doesn’t exist!&amp;quot; because no rows that have the username equal to Billy have been returned. &lt;br /&gt;
|-&lt;br /&gt;
|5:26&lt;br /&gt;
|So we can see that that’s working. &lt;br /&gt;
|-&lt;br /&gt;
|5:28&lt;br /&gt;
|I’ll go back to my original thing. &lt;br /&gt;
|-&lt;br /&gt;
|5:31&lt;br /&gt;
|So &amp;quot;Alex&amp;quot; and my password is &amp;quot;abc&amp;quot;. &lt;br /&gt;
|-&lt;br /&gt;
|5:37&lt;br /&gt;
|Now the code to login.  &lt;br /&gt;
|-&lt;br /&gt;
|5:39&lt;br /&gt;
|Inorder to login, we need to perform a password check. &lt;br /&gt;
|-&lt;br /&gt;
|5:42&lt;br /&gt;
|So to grab the password, I’ll use a function. &lt;br /&gt;
|-&lt;br /&gt;
|5:46&lt;br /&gt;
|Sorry not a function, I’ll use...... a loop and that loop will be the &amp;quot;while&amp;quot; loop. &lt;br /&gt;
|-&lt;br /&gt;
|5:52&lt;br /&gt;
|I will type a variable name here. I’ll call it &amp;quot;row&amp;quot; and that is equal to &amp;quot;mysql&amp;quot;..... &amp;quot;mysql_ fetches a row as an array&amp;quot;. Okay? &lt;br /&gt;
|-&lt;br /&gt;
|6:11&lt;br /&gt;
|So I’ll say &amp;quot;mysqul_fetch_assoc&amp;quot; for short.&lt;br /&gt;
|-&lt;br /&gt;
|6:22&lt;br /&gt;
|And this is going to be my query.  So I’ve got my query there. &lt;br /&gt;
|-&lt;br /&gt;
|6:28&lt;br /&gt;
|From this, we are fetching each column data from here and putting it into an array called &amp;quot;row&amp;quot;. &lt;br /&gt;
|-&lt;br /&gt;
|6:40&lt;br /&gt;
|So obviously with the while loop, we’ll have our brackets and now we’ll set some variables. &lt;br /&gt;
|-&lt;br /&gt;
|6:45&lt;br /&gt;
|I’ll say &amp;quot;db username&amp;quot;, which is the username that I’ll extract from the database, is equal to the &amp;quot;row&amp;quot; and this is the row name, &amp;quot;username&amp;quot;. &lt;br /&gt;
|-&lt;br /&gt;
|6:55&lt;br /&gt;
|So as we can see here, this is the row name here. &lt;br /&gt;
|-&lt;br /&gt;
|6:59&lt;br /&gt;
|If this is an array of the data, then each of these are going to be id, username and password. &lt;br /&gt;
|-&lt;br /&gt;
|7:06&lt;br /&gt;
|We’re not using 0,1,2. But I’m not sure whether that works.&lt;br /&gt;
|-&lt;br /&gt;
|7:10&lt;br /&gt;
|Now we’ll keep it simple and we’ll  directly reference the name of our column. &lt;br /&gt;
|-&lt;br /&gt;
|7:20&lt;br /&gt;
|So the database username will be &amp;quot;row&amp;quot; and that since this is an array which is using this function on our query. &lt;br /&gt;
|-&lt;br /&gt;
|7:26&lt;br /&gt;
|Next we will say &amp;quot;db password equals row&amp;quot; and then our password.&lt;br /&gt;
|-&lt;br /&gt;
|7:38&lt;br /&gt;
|So after this we could echo out.... &lt;br /&gt;
|-&lt;br /&gt;
|7:43&lt;br /&gt;
|No, in fact we don’t need to echo out our contents of our db username and password unless we want to run into errors.&lt;br /&gt;
|-&lt;br /&gt;
|7:49&lt;br /&gt;
|We already know what they are.  We’ve seen them in the database.&lt;br /&gt;
|-&lt;br /&gt;
|7:51&lt;br /&gt;
|Now what we’ll do is we will perform a check.  So &amp;quot;check to see if they match&amp;quot;. &lt;br /&gt;
|-&lt;br /&gt;
|8:00&lt;br /&gt;
|It’s very simple to do this using an &amp;quot;if&amp;quot; statement.&lt;br /&gt;
|-&lt;br /&gt;
|8:04&lt;br /&gt;
|&amp;quot;if&amp;quot; our username equals our db username and our password is equal to our db password , then we’ll say it’s correct.&lt;br /&gt;
|-&lt;br /&gt;
|8:19&lt;br /&gt;
|Otherwise, we’ll say it’s incorrect. &lt;br /&gt;
|-&lt;br /&gt;
|8:22&lt;br /&gt;
|I will remove the brackets because there is only one line. So echo &amp;quot;Incorrect password!&amp;quot;.  Just leave it like that. &lt;br /&gt;
|-&lt;br /&gt;
|8:34&lt;br /&gt;
|And here we’ll say echo &amp;quot;You’re in!&amp;quot;. &lt;br /&gt;
|-&lt;br /&gt;
|8:41&lt;br /&gt;
|Okay we’ll just test this before I end this part of the video. &lt;br /&gt;
|-&lt;br /&gt;
|8:46&lt;br /&gt;
|I’ll first say &amp;quot;Alex&amp;quot; and I’ll put a wrong password in. &amp;quot;Incorrect password!&amp;quot;. &lt;br /&gt;
|-&lt;br /&gt;
|8:51&lt;br /&gt;
|And now I’ll put &amp;quot;abc&amp;quot; as password and &amp;quot;You’re in!&amp;quot;. &lt;br /&gt;
|-&lt;br /&gt;
|8:55&lt;br /&gt;
|So we’ve checked our username and it exists. &lt;br /&gt;
|-&lt;br /&gt;
|8:58&lt;br /&gt;
|We’ve checked our fields exist so please enter in your username and password. &lt;br /&gt;
|-&lt;br /&gt;
|9:04&lt;br /&gt;
|If we enter in a username and a wrong password we get an error message – &amp;quot;Incorrect password&amp;quot;. &lt;br /&gt;
|-&lt;br /&gt;
|9:11&lt;br /&gt;
|If we enter the correct password, we get- &amp;quot;You’re in&amp;quot;. &lt;br /&gt;
|-&lt;br /&gt;
|9:13&lt;br /&gt;
|And if we enter a username that is not found, we get an error message saying the user doesn’t exist. &lt;br /&gt;
|-&lt;br /&gt;
|9:24 &lt;br /&gt;
|Okay so join me in the next part, and I’ll show you how to create your sessions and your log out page. See you then!&lt;br /&gt;
|-&lt;br /&gt;
|9:32&lt;br /&gt;
|This is Antara dubbing for the Spoken Tutorial project.&lt;/div&gt;</summary>
		<author><name>Chandrika</name></author>	</entry>

	</feed>