prepare(" SELECT * FROM NOTICIAS WHERE IDNOTICIA = ? "); $stmt->bind_param('i', $idnews); /* execute prepared statement */ $stmt->execute(); echo "COUNT = " . $stmt->num_rows . "
"; //printf("%d Row inserted.\n", $stmt->affected_rows); //WOULD THIS WORK? $results = $stmt->fetch(); echo "
DUMP - " . var_dump($results); echo "
results - titulo = " . $results->TITULO; echo "
" . $TITULO; //? /* close statement and connection */ $stmt->close(); /* Clean up table CountryLanguage */ //$mysqli->query("DELETE FROM NOTICIAS WHERE TITULO='DEU'"); //printf("%d Row deleted.\n", $mysqli->affected_rows); /* close connection */ $mysqli->close(); ?>