Using PHP, how can I fetch values from tables?

Asked

Viewed 38 times

0

I’m new to the programming, but I wanted to know how I get information from the tables,:

Tabelas

The code I currently have of the query is this:

$resultado = $ligacao->query("SELECT cursos_has_lisboa.*
FROM ((cursos_has_lisboa
INNER JOIN cursos ON cursos_has_lisboa.cursos_ID_curso = cursos.ID_curso)
INNER JOIN lisboa ON cursos_has_lisboa.lisboa_ID_escola = lisboa.ID_escola)
ORDER BY cursos_has_lisboa.lisboa_ID_escola");
  • Why do these parentheses?

  • Follow me on this: https://www.w3schools.com/sql/sql_join_inner.asp

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.