How to retrieve the data from the sever and displaying it in a page?

So in this case, the problem is that your line right before the echo call is incomplete: $number_rows= $wpdb->get_var( “SELECT COUNT(*) FROM $wpdb->daviddgl_wp1.SaveContactForm7_7” ); $x=1; while ($x<$number_rows) { $results = $wpdb->get_results(“SELECT ticket, name,email FROM $wpdb->daviddgl_wp1.SaveContactForm7_7 WHERE id = $x”); print_r($results); $x++; } (You’re missing the closing bracket and semi-column) Note also that your echo will … Read more

WP User Query with Custom Fields and Search Results

Not sure if you ever found the answer, but just in case, I just did 🙂 There’s a hook I (finally!) found that lets you do this and works in a similar way to posts_where. The hook is pre_user_query. Here’s an example on the Codex: https://developer.wordpress.org/reference/hooks/pre_user_query/#user-contributed-notes With the above, your function could now look like … Read more

Blob file download problem

There are some security issues. Please sanitize your input because someone can download from Your database something different than archive, or simply drop Your database. $fid = sanitize_text_field( $_GET[‘fid’] );

How to delete database without using any plugin?

If the database server is available publicly you should be able to use a MySQL client to interact with it. Sequel Pro is a good one for mac, check this list if you need something for windows or linux. If the database is only available locally on your web server, you might be able to … Read more