Hata:
Parse error: syntax error, unexpected '{' in /home/freeli/domains/citymini.tk/public_html/templates/ajax.php on line 19
ajax.php Sayfası:
session_start();
require "data.php";
@$mesaj=$_POST['mesaj'];
@$guncel=$_POST['guncel'];
if(isset($mesaj)){
	
	$kullanici=$_SESSION['username'];
	$mesaj=trim($mesaj);
	$tarih=date("G:i:s d-m-Y ");
	if($mesaj=="undefined"){
		break;
	}
	$bul=mysql_query("SELECT cost FROM users WHERE id='$kullanici'");
	if($para>=200){
	$mesakekle=mysql_query("INSERT INTO chat (kullanici,mesaj,tarih) values('$kullanici','$mesaj','$tarih')");
	$mesakekle=mysql_query("INSERT INTO users SET cost=cost-200 WHERE id='$kullanici'");
	}
	if($para<=200){
	echo "yetersiz bakiye";
	}
}
if(isset($guncel)){
	$bul=mysql_query("SELECT * FROM chat ORDER BY id DESC LIMIT 15"); 
	while($guncelle=mysql_fetch_array($bul)){
		echo ''.$guncelle['kullanici'].': '.$guncelle['mesaj'].' | ';
	}
	
}
?> 
  
