Так дело вот в чем работаю на Mysql есть простенькая структура таблицы для заданий.
И есть work.php где должны отображатся все задания пользователей. Я зделал простойскриптик
---------Кусок кода-----------
CODE (htmlphp):
скопировать код в буфер обмена
скопировать код в буфер обмена
- <table class="table-responsive-md table mt-2 p-2 table-bordered table-striped">
- <thead>
- <tr>
- <th scope="col">ID</th>
- <th scope="col">Логин хозяина</th>
- <th scope="col">Имя задания</th>
- <th scope="col">Описание</th>
- <th scope="col">URL</th>
- <th scope="col">Дата регистрации</th>
- <th scope="col">Скачано</th>
- </tr>
- </thead>
- <?php
- $link = mysql_connect('localhost', '......', '.........');
- if (!$link) {
- die ('Err ' . mysql_error());
- header("Location: http://...../baryga/profile.php?error=Ошибка соединения:". mysql_error());
- exit;
- }
- if (!mysql_select_db('.....', $link)) {
- header("Location: http://...../baryga/profile.php?error=Не удалось выбрать базу данных");
- exit;
- }
- mysql_set_charset('utf8');
- $sql4 = 'SELECT * FROM `Work`';
- $result4 = mysql_query($sql4, $link);
- ?>
- <tbody>
- <?php
- while ($row4 = mysql_fetch_assoc($result4)) {
- echo '<tr>';
- echo '<th scope="row">'.$row4['id_work'].'</th>';
- echo '<td>'.$row4['creator_login'].'</td>';
- echo '<td>'.$row4['name_work'].'</td>';
- echo '<td>'.$row4['desc_work'].'</td>';
- echo '<td>'.$row4['url'].'</td>';
- echo '<td>'.$row4['date_reg'].'</td>';
- echo '<td>'.$row4['downloaded'].'</td>';
- echo '</tr>';
- }
- ?>
- </tbody>
- </table>