TSTRING PROBLEM! i come from sweden..
Posted: Wed Feb 19, 2003 11:34 am
Before you read the other text:
i come from sweden so i may not write everything so good
The problem is that my code shows the message:
T_STRING in c:\program\easyphp\www\sidan\login\check.php on line 12
in this code:
what is my problem?
?>
i come from sweden so i may not write everything so good
The problem is that my code shows the message:
T_STRING in c:\program\easyphp\www\sidan\login\check.php on line 12
in this code:
Code: Select all
їphp]<?php
session_start();
$username=$_POSTї'username'];
$password=$_POSTї'password'];
$open = mysql_connect("localhost", "gefan", "gefan");
mysql_select_db("users", $open);
$sql = "SELECT id FROM users WHERE username='$username' AND password='$password'";
$result = mysql_query($sql);
if (mysql_num_rows($result) == 0) {
header("Location: /sidan/login/wrong.php");
exit;
}
else {
$connect = mysql_connect("localhost", "imitt", lösenord");
mysql_select_db("users", $connect);
mysql_query("UPDATE users SET senast=now(),antalbesok=antalbesok+1 WHERE username='$username'");
$_SESSIONї'id'] = mysql_result($result, 0);
$_SESSIONї'username'] = $_POSTї'username'];
header("Location: /sidan/start/index.php");
exit;
}
?>
?>ї/php]?>