} #search_form p{ padding:0; margin:0; margin-bottom:5px; } </style> </head> <body> <div id="search_form"> <p class='mycolor'>поиск по столбцу</p> <?php $test = new MyTable(); if (isset($_POST['text'])) { $test->getSearchForm($_POST['select'], $_POST['text']); } else { $test->getSearchForm(NULL, ''); } ?> </div> <div id="table" align="center"> <?php if ($test->connectDB('localhost', 'root', '', 'orders')) { //получаем имя колонки if (isset($_GET['sorted'])) { $sorted = $_GET['sorted']; } else { $sorted = NULL; } //получаем тип сортировки