if(empty($_GET['s'])){
$goster = mysql_query("select * from sozler group by rand() limit 1");
while($row = mysql_fetch_array($goster)){
@$idyaz = $row["id"];
@$soz_idyaz = $row["soz_id"];
@$sozyaz = $row["soz"];
@$soyleyenyaz = $row["soyleyen"];
header("Location: index.php?s=$soz_idyaz");
echo '
'.$sozyaz.'
-'.$soyleyenyaz.'
';
}
}
else{
$s = $_GET['s'];
$goster = mysql_query("select * from sozler WHERE soz_id='$s'");
while($row = mysql_fetch_array($goster)){
@$idyaz = $row["id"];
@$soz_idyaz = $row["soz_id"];
@$sozyaz = $row["soz"];
@$soyleyenyaz = $row["soyleyen"];
echo '
'.$sozyaz.'
-'.$soyleyenyaz.'
';
}
}