<?php

$conn = mysql_connect("localhost", "username", "password");

if (!$conn) {
    echo "Unable to connect to DB: " . mysql_error();
    exit;
}

if (!mysql_select_db("databasename")) {
    echo "Unable to select mydbname: " . mysql_error();
    exit;
}

$sql = "SELECT konubasligi
        FROM   tabloadi
		";

$result = mysql_query($sql);

if (!$result) {
    echo "Could not successfully run query ($sql) from DB: " . mysql_error();
    exit;
}

if (mysql_num_rows($result) == 0) {
    echo "No rows found, nothing to print so am exiting";
    exit;
}


while ($row = mysql_fetch_assoc($result)) {
    echo $row["konubasligi"];
}

mysql_free_result($result);

?>