Page 1 of 1

code description required

Posted: Thu Sep 09, 2004 3:33 am
by bugthefixer
anybody can tell me wat does folllowing code do..

Code: Select all

<?php

$consulting_tables =
    "(professors left join teach on (professors.Id = teach.Id), subjects)";
$consulting_columns =
    "professors.Surname, professors.Name, subjects.Subject , ";
$consulting_columns .=
    "subjects.Cod_number, professors.Consulting_hour, professors.Consulting_place";
$consulting_query=
    "subjects.Cod_Subject = teach.Cod_subject and subjects.Subject like '%$subject%' ";

connect($consulting_tables, $consulting_columns, $consulting_query);

?>

Posted: Thu Sep 09, 2004 3:38 am
by feyd
since you don't have to function definition here... potentially, it connects to a database and runs a query of it's own building.. as there is very little sql really in that code..