i have a problem with a code.
Parse error: syntax error, unexpected 'user' (T_STRING) in www\php\login.php on line 9
$sql1= “select * from user where (username=\”$_POST[username]\” or fullname=\”$_POST[username]\”) and password=\””.sha1(md5($_POST[password])).”\” “;
I want the passwords to be in md5, I do not use a registry just enter.
And I also have another problem add the code:
<h2>Welcome <?php $query = $con->query("select * from user where id=".$_SESSION["user_id"]);
while ($r=$query->fetch_array()) {
echo $r["name"]; ?>}/h2>
Parse error: syntax error, unexpected end of file in C:\wamp64\www\home.php on line 30
thanks!