<?php $bolge="MARMARA";
$sorgu = "SELECT * FROM veriler WHERE bolge=\"$bolge\"";
$sonuc=mysql_query($sorgu);
echo $sorgu;
$sonuc= mysql_query($sql,$baglanti);
if(!$sonuc)
die(mysql_error());
while($satir= mysql_fetch_array($sonuc))
{
$id= $satir["id"];
$sehir= $satir["sehir"];
$firma= $satir["firma"];
$adres= $satir["adres"];
$tel= $satir["tel"];
$web= $satir["web"];
?>
Its my code.

Its my database and connection is done.
Giving this result;
SELECT * FROM veriler WHERE bolge="MARMARA";
**Query was empty**
Why giving “Query was empty” error? I have query and need to give result. (Sorry for bad english)
using mysql_* functions is deprecated
use PDO or mysqli with prepared statements instead
try this :
However, you may also employ mysql_real_escape_string
Just a question, what is meaning of this :
$sql variable is not set this results in Query was empty