Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.
Moderator: General Moderators
bugthefixer
Forum Contributor
Posts: 118 Joined: Mon Mar 22, 2004 2:35 am
Post
by bugthefixer » Thu Sep 09, 2004 3:33 am
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);
?>
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Thu Sep 09, 2004 3:38 am
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..