Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.
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.