Hello, I'm not able to show all the records in a DB table row, I can only bring the first record.
Here is my table:
CREATE TABLE IF NOT EXISTS 'tbnoticiasrel' (
'id' bigint(20) NOT NULL AUTO_INCREMENT,
'id_noticia' bigint(20) NOT NULL,
'id_noticia_relacionada' int(20),
'id_noticia_relacionada1' int(20),
'id_noticia_relacionada2' int(20),
'id_noticia_relacionada3' int(20),
'id_noticia_relacionada4' int(20),
PRIMARY KEY ('id')
)
Here are my records in the table (in site admin mode)
Hereismyselectinphpscript:
$query_noticiasrelacionadas="SELECT * "
. "FROM tbnoticiasrel AS nr "
. "INNER JOIN tbnews AS n ON nr.id_noticia_relacionada = n.id "
. "WHERE nr.id_noticia = " . $_REQUEST[idNoticia];
Here is the result of the query (above): yes, it is only bringing one of the 5 related data. What can it be?