This is my code:
<!DOCTYPE html>
<html>
<body>
<?php
$servername = "localhost";
$username = "alasgsco_user";
$password = "pass123";
$dbname = "alasgsco_alasdb";
$conn = new mysqli($servername, $username, $password, $dbname);
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
$sql = "SELECT 'ime' FROM 'kafici'";
$result = mysql_query($query);
while($row = mysql_fetch_array($result)){
echo "<p>" . $row['ime'] . "<br />";
}
$conn->close();
?>
</body>
</html>
'kafici' is the name of the table 'ime' is the name of a column Why isn't my code working? Someone please help me! Thank you in advance.