(Changed quote tags to PHP tags -- NogDog)
THe first problem I have in my code is the login ..
$sql = "SELECT * FROM register_info where user_name = ".$user_name." && password = ".$password." ";
$result = mysql_query($sql)or die ("could Not execute query $sql");
if (mysql_num_rows($result) == 0){
redirect("fail_msg.htm");
exit;
}
echo "<table>
<tr>
<td width = 50><b><font size=4 color=D70056 >Welcome</font></b></td>
<td width = 200> <b><font size=3 color=ff0000 > ".$row["user_name"]."</font></b></td>
<tr>
<table>
";
This is my code and when I try to login by the username and the password
it gives me an error >>>> (Parse error: syntax error, unexpected )..
I don't know what is the wrong in this code 🙁
Can you help me, please?