Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks
My big doubt is about this line: "WHERE id = 1". Is correct?
<? $conn = new PDO( 'mysql:host=localhost;dbname=Remove', 'remove', 'remove', array(PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8') ); $sql = 'SELECT nome FROM artigos WHERE id = 1 ORDER BY id'; $q = $conn->query($sql); $r = $q->fetch(); echo $r['nome']; ?>
Join the community of 500,000 technology professionals and ask your questions.