<?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"];
?>
它是我的代碼。Mysql給出空的結果
它我的數據庫和連接完成。
給出這個結果;
SELECT * FROM veriler WHERE bolge="MARMARA";
**Query was empty**
爲什麼給 「查詢爲空」 的錯誤?我有查詢,需要給結果。 (對不起,我英文不好)
爲什麼你寫'mysql_query' 2次? – diEcho
只是我測試代碼。 – Ryliatron