Hi as the title say i have a php code where i sucefully echo the articles in a table, the problem is in this table i just have cat_id the parent_id is referenced in other table..
"articulos" table
id | titulo | fecha_evento | descripcion | img | cat_id
"categoriablog" table
id | parent_id
This is the way im making my query
$query1 = "SELECT id,titulo,fecha_evento,descripcion,img FROM articulos WHERE cat_id = 1";
$result = mysql_query($query1);
My goal is to do something like this, but "parent_id" is in other table
$query1 = "SELECT id,titulo,fecha_evento,descripcion,img FROM articulos WHERE cat_id = 1 OR parent_id = 1";
$result = mysql_query($query1);