How To Export User’s Custom Fields in CSV or XLSX

Probably the easiest way to do this is to connect to the database using MySQL Workbench or similar, and extract the data using a SQL query e.g. select u.user_login, u.user_email, m1.meta_value as first_name, m2.meta_value as last_name, m3.meta_value as billing_codice_snep, m4.meta_value as codice_snep from wp_users u left join wp_usermeta m1 on m1.user_id = u.id and m1.meta_key … Read more

how can export data in excel file custom plugin

<script src=”https://wordpress.stackexchange.com/questions/355504/<?php echo plugins_url();?>/client/jquery.js”></script> <button id=”excel” onClick =”$(‘#dataTable’).tableExport({type:’excel’,escape:’false’});”> XLS</button> <button id=”print”>Print me</button> <table class=”dash-table” width=”100%” cellspacing=”0″ cellpadding=”10px” border=”0″ id=”dataTable”> <tr> <td>Client Name</td> <td>Email</td> <td>Health Condition</td> <td>Changes</td> <td>Image</td> </tr> <?php foreach ($results1 as $key => $value) { ?> <tr> <td><?php echo $value->rclient_name;?></td> <td><?php echo $value->email;?></td> <td><?php echo $value->health_condition;?></td> <td><?php echo $value->changes;?></td> <td><img src=”https://wordpress.stackexchange.com/questions/355504/<?php echo $value->image;?>” width=”50px” … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)