WWW.url.text doesnt work! please help!

Hi ı am trying to use mysql with unity for login and other systems.ı can write data to database with www.url. but when ı tried to read text of php file , nothing happen.there is no error in screen.please help me.

my php file.

<?php
$baglanti = @mysql_connect('localhost', 'root','');
$veritabani = @mysql_select_db('unity');
 


$querry =mysql_query("select gold from unitytest");

while($sutun = mysql_fetch_array($querry))
{
	
	echo $sutun['gold'] ."-";
	
}

mysql_close($baglanti);


?>

here is my c#

WWW urll = new WWW ("http://localhost/goldbak.php");
		if (urll.isDone) {
			txt.text = urll.text;
		}

Your c# code starts a download and immediately checks if the download is finished (it isn’t). You have to wait for the download to actually finish. This is usually done using a coroutine with a yield return www, i.e.

void Start() 
{
   StartCoroutine(Download());
}

IEnumerator Download() 
{
    WWW urll = new WWW ("http://localhost/goldbak.php");
    yield return urll ;
    if (urll.error == null) {
          txt.text = urll.text;
    }
}