I'm having a problem getting information from a database, the code I tried was this:
require_once "config.php"; // database
$sql = mysql_query("SELECT conteudo FROM home NULL NULL NULL") or die("MySQL error:".mysql_error());
$result = mysql_fetch_array($sql);
echo $result;
Only nothing happens, does not the information I get from the database appear, any idea of what is happening?
NOTE: If there is an error on the page, here is the code:
<html>
<head>
<title>Trilhas da Terra</title>
<link rel="stylesheet" type="text/css" href="style.css">
<meta charset="UTF-8">
</head>
<body>
<div id="menu">
<ul class="main">
<li><a class="item" href="index.html"><div>Home</div></a></li>
<li><a class="item" href="quem.html"><div>Quem Somos</div></a></li>
<li><a class="item" href="roteiros.html"><div>Roteiros</div></a></li>
<li><a class="item" href="portfolio.html"><div>Portfolio</div></a></li>
<li><a class="item" href="contato.html"><div>Contato</div></a></li>
<li style="float:right;"><a class="item" href="login.html"><div>Admin</div></a></li>
</ul>
</div>
<div id="logo"><img src="imagens/logo.jpg"></div>
<div id="info">
<div id="wtitle">Home</div>
<br>
<div id="wcont">
<?php
require_once "config.php"; // database
$sql = mysql_query("SELECT conteudo FROM home NULL NULL NULL") or die("MySQL error:".mysql_error());
$result = mysql_fetch_array($sql);
echo $result;
?>
</div>
</div>
<div id="widside">
<div id="wtitle">Trilhas do Barro Serra do Mar</div>
</div>
<script src="some.js"></script>
</body>
</html>