I wrote a php code like this but it is giving this error
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in c:\program files\apache group\apache\htdocs\acc\kapatma.php on line 52
and my php code is this
<html>
<body bgcolor="#FFFFFF" text="#000000">
<form action="kapatma.php" method="get">
<b>Kullanici Adi:</b><input type="text" name="username" size="20"><br>
<b>Sifre:</b><input type="password" name="pass" size="20"><br>
<input type="submit" value=" Kayit ">
</form>
<?
include("ust.php");
include("config.php");
@mysql_connect("localhost", "abcd", "12345")
or die("Veritabani ile baglanti kurulamadi!");
@mysql_select_db("account")
or die("Veritabaninda bir hata olustu!");
$query = "SELECT password FROM acc_tmp WHERE username='$u_name' and password='$pass'";
$sonuc=mysql_query($query);
if(mysql_num_rows($sonuc)==1) {
$pfix = "WHERE disable ='0'";
$eded = "(Aktif)";
} else {
$pfix = "";
}
$result = mysql_query("SELECT bitis FROM accounts $pfix");
$num_rows = mysql_num_rows($result);
echo "Toplam $eded Kay?t: $num_rows<br>";
if(mysql_num_rows($sonuc)==1)
$pfix = "WHERE disable='0'";
else
$pfix = "LIMIT $startl , $stopl";
$result = mysql_query( "SELECT id,username,fullname,email,bitis,baslangic,disable
FROM accounts $pfix");
$where="";
WHILE ($row=mysql_fetch_array($result)) {
if($row['bitis']=now()) {
mysql_query("UPDATE accounts SET disable=1 WHERE username='$row['username']'");
echo "Kapatilan Accountlar:$row['username']";
}
}
?>
</body>
</html>
I couldnt find why it is giving that error
can anyone help me about it?