code description required

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
bugthefixer
Forum Contributor
Posts: 118
Joined: Mon Mar 22, 2004 2:35 am

code description required

Post 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);

?>
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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..
Post Reply