July's Course of the Month is now available! Enroll to learn HTML5 and prepare for certification. It's free for Premium Members, Team Accounts, and Qualified Experts.
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']; ?>
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.