I start the process:
function vhod() { $.get( "http://blabla.com/vhod.php", {..........} ) .done(function( data ) { localStorage.setItem(data, value) }); } On the server ( vhod.php ):
$result = mysqli_query($con,"SELECT k_ls, v_ls FROM users"); while($row = mysqli_fetch_array($result)) { echo ($row['k_ls']); } As a result, I only get the value of the k_ls column, and I would like to get all the values - both k_ls and v_ls for successful saving. In the Mysql table, the values of the k_ls and v_ls can be several.
json? in what form you are going to save these values in general, you should now have one line coming together that combines thek_lsvalues of all sample lines without any separators. How do you plan to use it? - terank_ls. - teran