Query |
SET NAMES UTF8 SELECT u.universityID, u.longName as name, up.name as uniPic FROM users_apll ua INNER JOIN university_specialty AS us ON (ua.university_specialtyID = us.university_specialtyID) LEFT JOIN university AS u ON (u.universityID = us.universityID) LEFT JOIN pic AS up ON (up.ID = u.pix) WHERE userID = '' GROUP BY u.universityID ORDER BY u.longName ASC SELECT s.specialtyID, s.shortName, s.longName, s.url FROM specialty as s INNER JOIN university_specialty AS us ON (s.specialtyID = us.specialtyID) WHERE s.hide = 0 AND us.hide=0 GROUP BY specialtyID ORDER BY s.shortName SELECT universityID, longName as shortName,url FROM university WHERE hide = 0 ORDER BY shortName SELECT cityID, shortName FROM city WHERE hide = 0 AND cityID IN (SELECT cityID FROM university WHERE hide = 0) OR cityID IN (SELECT cityID FROM university_affiliate WHERE hide = 0) ORDER BY shortName SELECT * FROM specialty WHERE hide = 0 AND url = 'medicinska-rehabilitaciya-i-ergoterapiya' UPDATE specialty SET hits = (hits + 1) WHERE specialtyID = '171' SELECT * FROM university_specialty WHERE hide = 0 AND specialtyID = '171' ORDER BY longName SELECT longName, cityID, pix FROM university WHERE universityID = '21' SELECT * FROM pic WHERE ID='37' SELECT cityID, longName, pix FROM city WHERE cityID='7' SELECT * FROM pic WHERE ID='22' SELECT ratingValue FROM university_specialty_score WHERE scoreYear = '2013' AND minmax = '' AND university_specialtyID = '584' AND ratingType = '1' SELECT ratingValue FROM university_specialty_score WHERE scoreYear = '2013' AND minmax = '' AND university_specialtyID = '584' AND ratingType = '2' SELECT ratingValue FROM university_specialty_score WHERE scoreYear = '2013' AND minmax = '' AND university_specialtyID = '584' AND ratingType = '3' SELECT ratingValue FROM university_specialty_score WHERE scoreYear = '2012' AND minmax = '' AND university_specialtyID = '584' AND ratingType = '1' SELECT ratingValue FROM university_specialty_score WHERE scoreYear = '2012' AND minmax = '' AND university_specialtyID = '584' AND ratingType = '2' SELECT ratingValue FROM university_specialty_score WHERE scoreYear = '2012' AND minmax = '' AND university_specialtyID = '584' AND ratingType = '3' SELECT university_scoringID FROM university_specialty_score_type WHERE university_specialtyID = '584' AND scoreYear = (2014 - 1) SELECT hide FROM university_scoring WHERE university_scoringID = '432' SELECT longName, cityID, pix FROM university WHERE universityID = '5' SELECT * FROM pic WHERE ID='17' SELECT cityID, longName, pix FROM city WHERE cityID='1' SELECT * FROM pic WHERE ID='6' SELECT ratingValue FROM university_specialty_score WHERE scoreYear = '2013' AND minmax = '' AND university_specialtyID = '688' AND ratingType = '1' SELECT ratingValue FROM university_specialty_score WHERE scoreYear = '2013' AND minmax = '' AND university_specialtyID = '688' AND ratingType = '2' SELECT ratingValue FROM university_specialty_score WHERE scoreYear = '2013' AND minmax = '' AND university_specialtyID = '688' AND ratingType = '3' SELECT ratingValue FROM university_specialty_score WHERE scoreYear = '2012' AND minmax = '' AND university_specialtyID = '688' AND ratingType = '1' SELECT ratingValue FROM university_specialty_score WHERE scoreYear = '2012' AND minmax = '' AND university_specialtyID = '688' AND ratingType = '2' SELECT ratingValue FROM university_specialty_score WHERE scoreYear = '2012' AND minmax = '' AND university_specialtyID = '688' AND ratingType = '3' SELECT university_scoringID FROM university_specialty_score_type WHERE university_specialtyID = '688' AND scoreYear = (2014 - 1) SELECT hide FROM university_scoring WHERE university_scoringID = '261' SELECT longName, cityID, pix FROM university WHERE universityID = '31' SELECT * FROM pic WHERE ID='0' SELECT cityID, longName, pix FROM city WHERE cityID='13' SELECT * FROM pic WHERE ID='17' SELECT ratingValue FROM university_specialty_score WHERE scoreYear = '2013' AND minmax = '' AND university_specialtyID = '819' AND ratingType = '1' SELECT ratingValue FROM university_specialty_score WHERE scoreYear = '2013' AND minmax = '' AND university_specialtyID = '819' AND ratingType = '2' SELECT ratingValue FROM university_specialty_score WHERE scoreYear = '2013' AND minmax = '' AND university_specialtyID = '819' AND ratingType = '3' SELECT ratingValue FROM university_specialty_score WHERE scoreYear = '2012' AND minmax = '' AND university_specialtyID = '819' AND ratingType = '1' SELECT ratingValue FROM university_specialty_score WHERE scoreYear = '2012' AND minmax = '' AND university_specialtyID = '819' AND ratingType = '2' SELECT ratingValue FROM university_specialty_score WHERE scoreYear = '2012' AND minmax = '' AND university_specialtyID = '819' AND ratingType = '3' SELECT university_scoringID FROM university_specialty_score_type WHERE university_specialtyID = '819' AND scoreYear = (2014 - 1) SELECT hide FROM university_scoring WHERE university_scoringID = '' SELECT longName, cityID, pix FROM university WHERE universityID = '36' SELECT * FROM pic WHERE ID='0' SELECT cityID, longName, pix FROM city WHERE cityID='1' SELECT * FROM pic WHERE ID='6' SELECT ratingValue FROM university_specialty_score WHERE scoreYear = '2013' AND minmax = '' AND university_specialtyID = '914' AND ratingType = '1' SELECT ratingValue FROM university_specialty_score WHERE scoreYear = '2013' AND minmax = '' AND university_specialtyID = '914' AND ratingType = '2' SELECT ratingValue FROM university_specialty_score WHERE scoreYear = '2013' AND minmax = '' AND university_specialtyID = '914' AND ratingType = '3' SELECT ratingValue FROM university_specialty_score WHERE scoreYear = '2012' AND minmax = '' AND university_specialtyID = '914' AND ratingType = '1' SELECT ratingValue FROM university_specialty_score WHERE scoreYear = '2012' AND minmax = '' AND university_specialtyID = '914' AND ratingType = '2' SELECT ratingValue FROM university_specialty_score WHERE scoreYear = '2012' AND minmax = '' AND university_specialtyID = '914' AND ratingType = '3' SELECT university_scoringID FROM university_specialty_score_type WHERE university_specialtyID = '914' AND scoreYear = (2014 - 1) SELECT hide FROM university_scoring WHERE university_scoringID = '' SELECT url,universityID FROM university_specialty WHERE university_specialtyID = '584' SELECT url FROM university WHERE universityID = '21' SELECT url FROM university WHERE universityID = '21' SELECT forbidenAppl FROM university_specialty WHERE university_specialtyID = '584' SELECT url,universityID FROM university_specialty WHERE university_specialtyID = '688' SELECT url FROM university WHERE universityID = '5' SELECT url FROM university WHERE universityID = '5' SELECT forbidenAppl FROM university_specialty WHERE university_specialtyID = '688' SELECT url,universityID FROM university_specialty WHERE university_specialtyID = '819' SELECT url FROM university WHERE universityID = '31' SELECT url FROM university WHERE universityID = '31' SELECT forbidenAppl FROM university_specialty WHERE university_specialtyID = '819' SELECT url,universityID FROM university_specialty WHERE university_specialtyID = '914' SELECT url FROM university WHERE universityID = '36' SELECT url FROM university WHERE universityID = '36' SELECT forbidenAppl FROM university_specialty WHERE university_specialtyID = '914'
|
$data |
Array
(
[0] => Array
(
[university_specialtyID] => 584
[hide] => 0
[position] => 0
[universityID] => 21
[specialtyID] => 171
[napID] => 0
[university_facultyID] => 0
[university_scoringID] => 0
[shortName] => Медицинска рехабилитация и ерготерапия
[longName] => Медицинска рехабилитация и ерготерапия
[fo] => 0
[otherLang] => 0
[url] => medicinska-rehabilitaciya-i-ergoterapiya
[forbidenAppl] => 0
[universityData] => Array
(
[longName] => Медицински университет - Плевен
[cityID] => 7
[pix] => Array
(
[ID] => 37
[type] => 0
[name] => k8qk1374670773.jpg
[title] =>
[txt] =>
[addDate] => 2013-07-24 15:59:36
)
)
[cityData] => Array
(
[cityID] => 7
[longName] => Плевен
[pix] =>
)
[imaMinBalove] => 1
[activeChance] => 432
)
[1] => Array
(
[university_specialtyID] => 688
[hide] => 0
[position] => 0
[universityID] => 5
[specialtyID] => 171
[napID] => 0
[university_facultyID] => 0
[university_scoringID] => 0
[shortName] => Медицинска рехабилитация и ерготерапия
[longName] => Медицинска рехабилитация и ерготерапия
[fo] => 0
[otherLang] => 0
[url] => medicinska-rehabilitaciya-i-ergoterapiya
[forbidenAppl] => 0
[universityData] => Array
(
[longName] => Софийски университет ''Св. Климент Охридски''
[cityID] => 1
[pix] => Array
(
[ID] => 17
[type] => 0
[name] => ctkqq1369236743.jpg
[title] =>
[txt] =>
[addDate] => 2013-05-22 18:32:26
)
)
[cityData] => Array
(
[cityID] => 1
[longName] => София
[pix] => Array
(
[ID] => 6
[type] => 0
[name] => 7hofg1369236211.jpg
[title] =>
[txt] =>
[addDate] => 2013-05-22 18:23:42
)
)
[imaMinBalove] => 1
[activeChance] => 261
)
[2] => Array
(
[university_specialtyID] => 819
[hide] => 0
[position] => 0
[universityID] => 31
[specialtyID] => 171
[napID] => 0
[university_facultyID] => 0
[university_scoringID] => 0
[shortName] => Медицинска рехабилитация и ерготерапия
[longName] => Медицинска рехабилитация и ерготерапия
[fo] => 0
[otherLang] => 0
[url] => medicinska-rehabilitacia-i-ergoterapia
[forbidenAppl] => 0
[universityData] => Array
(
[longName] => Тракийски университет-Стара загора
[cityID] => 13
[pix] =>
)
[cityData] => Array
(
[cityID] => 13
[longName] => Стара Загора
[pix] => Array
(
[ID] => 17
[type] => 0
[name] => ctkqq1369236743.jpg
[title] =>
[txt] =>
[addDate] => 2013-05-22 18:32:26
)
)
[imaMinBalove] => 0
[activeChance] =>
)
[3] => Array
(
[university_specialtyID] => 914
[hide] => 0
[position] => 0
[universityID] => 36
[specialtyID] => 171
[napID] => 0
[university_facultyID] => 0
[university_scoringID] => 0
[shortName] => Медицински рехабилитатор,ерготерапевт
[longName] => Медицински рехабилитатор,ерготерапевт
[fo] => 0
[otherLang] => 0
[url] => medicinski-rehabilitatorergoterapevt
[forbidenAppl] => 0
[universityData] => Array
(
[longName] => Медицински университет-София
[cityID] => 1
[pix] =>
)
[cityData] => Array
(
[cityID] => 1
[longName] => София
[pix] => Array
(
[ID] => 6
[type] => 0
[name] => 7hofg1369236211.jpg
[title] =>
[txt] =>
[addDate] => 2013-05-22 18:23:42
)
)
[imaMinBalove] => 0
[activeChance] =>
)
)
1 |