Динамическое обновление таблицы бд mysql js php
2 USDЕсть база данных, в которой есть таблица users.
Есть столбцы id, name, lastname.
Нужно сделать динамическое обновление таблицы без перезагрузки страницы (когда добавили строку, она должна автоматически вывестись в таблице).
Таблицу вывожу таким кодом:
<?php
$host = 'localhost';
$db = 'aasinua_test';
$user = 'aasinua_test';
$pass = '1q2w3e4r5t6y';
$charset = 'utf8';
$dsn = "mysql:host=$host;dbname=$db;charset=$charset";
$opt = [
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC,
PDO::ATTR_EMULATE_PREPARES => false,
];
$pdo = new PDO($dsn, $user, $pass, $opt);
$stmt = $pdo->query("SELECT * FROM users");
while ($row = $stmt->fetch()) {
echo "<span>".$row['name']." ".$row['lastname']."</span>";
}
?>
-
144 1 0 Добрый день, Екатерина! Есть у меня готовые решения. Готов показать в скайпе sljar147
-
2597 427 9 1 Так вы же напишите что это нада сделать все самому на своем сервере, обновление таблицы в реально времени, чтобы таблица обновилась даже если изменения были сделаны через phpmyadmin, то что у вас нет созданного проекта, его нужно делать самому, и еще комментировать каждую строку кода. ну емае.
-
Нужно сделать через ajax
-
Сервера у него нет.
-
Current freelance projects in the category Javascript and Typescript
I am looking for an experienced Full Stack developer to create a SaaS service for online stores.Service idea: The client uploads a link to their product feed (XML or CSV). The service automatically retrieves the products, takes their photos, and creates new advertising images based on ready-made templates: price, discount, logo, promotional tags, etc. There should also be… Javascript and Typescript, Web Programming ∙ 19 hours 3 minutes back ∙ 69 proposals |
Development of a WebGL/Three.js scene with generation and export of 3D (snapshot) from an animated shaderObject Description:The project is a designer table shaped like a realistic, deep whirlpool (a central vortex that smoothly transitions from a wide horizontal tabletop to a thin elegant leg). Task Essence:A WebGL / Creative Coding developer is required to create an interactive 3D… Javascript and Typescript, Web Programming ∙ 1 day 15 hours back ∙ 27 proposals |
Support and development of the cleaning company's website
20 USD
I'm looking for a web developer/webmaster for long-term support and development of a cleaning company's website. Website: https://donely.ca About the project DoneLy Home Services is a cleaning service company in Canada that is actively growing and expanding its geographical… Javascript and Typescript, Web Programming ∙ 3 days 17 hours back ∙ 63 proposals |
Development of a website according to the specifications on FramerYou need to create a website based on the parameters in the technical specification. https://docs.google.com/document/d/1ODO2C9Krb4AaMiJz9wfbNzWlAyA2FwCCHL8r0biajUY/edit?usp=sharing Please provide your actual rate based on this design. HTML & CSS, Javascript and Typescript ∙ 4 days 18 hours back ∙ 27 proposals |
Development of an interactive Palworld map for the websiteWe need to develop an interactive map for Palworld based on the example: https://palworld.gg/map We need not just a static image, but a full-fledged interactive map where users can view locations, toggle object categories on/off, search for specific points, and interact with… HTML & CSS, Javascript and Typescript ∙ 6 days 9 hours back ∙ 36 proposals |