Answer the question
In order to leave comments, you need to log in
How to read text from a table?
I derive a table from the database
It is necessary that by clicking on a certain line all the information in it is stored in variables and displayed on the next table.
How can this be implemented?
<?php
while ($user = $stmt->fetch( PDO::FETCH_ASSOC ))
echo '
<div class="stroka_klient">
<div class="id_klient">'.$user['K_id'].'</div>
<div class="name_klient">'.$user['K_name'].'</div>
<div class="telephone_klient">'.$user['K_phone'].'</div>
<div class="email_klient">'.$user['K_mail'].'</div>
</div>';
?>
Answer the question
In order to leave comments, you need to log in
c jquery
$('div.stroka_klient > div').click(function(){
var savetext = $(this).text();
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question