I am just getting started in using PHP and MySQL for a project.
I want to create the following query using pseudonyms for the tables involved in the query.
$query1 = "SELECT Q.NAME
FROM QUALIFICATION Q, STUDENT S, HAS H
WHERE S.ID=$ID AND S.ID=H.STUDENT_ID AND H.QUALIF_NAME = Q.NAME";
$result1 = mysqli_query($con, $query1);
while($rows = mysqli_fetch_array($result1)){
$QNAME = $rows1['Q.NAME'];...
However I am getting the error:
Notice: Undefined index: Q.NAME
Probably I am missing something terribly wrong in the syntax, so any help would be really valuable!