I would do something like this:
<a href="https://wordpress.stackexchange.com/questions/42287/?xp=<?php echo $row->BrExpress; ?>">
<img src="https://wordpress.stackexchange.com/questions/42287/images/full_menu_icon.gif"
alt="See this store menu" class="menuimg" /></a>
And then to load the page when the link is clicked:
function load_the_menu_page() {
if(isset($_GET['xp'])) {
global $wpdb;
// retrieve database info here
return $info;
}
}
add_action('init', 'load_the_menu_page');
Note, this is just a sample. If you do something like this you should greatly improve it. You will want to use a nonce and also name your functions appropriately.
It’s still not very clear as to what exactly you’re trying to do, so if this isn’t close, please try explaining more.
Related Posts:
- dbDelta only creates the last table
- How to add “Stick this post to the front page” to front end?
- Ways to have multiple front-page.php templates that can be swapped out?
- How to generate expiring URL?
- Facebook comments box on front page
- Is their any way to Extend WPDB class and Overwrite the Default Query Function
- Open external links in a new window
- Issues creating a tinyMCE plugin that creates a custom link
- Stackoverflow type of badge plugin giving warnings in WordPress 3.5
- Missing argument 2 for wpdb::prepare() Issue
- How to attach Links into page/post or custom post type?
- ob_end_flush error when using wpdb in plugin
- How to set all external links to a certain domain to “nofollow”?
- $wpdb->get_results() does not fetch results with unicode ‘WHERE’ clause
- post_content getting cut off on blank space on $wpdb->update
- How do I customize my WordPress shortlink structure in link-template.php without a plugin?
- Tag link suggestion plugin
- Why am i getting this error? WordPress database error: [Query was empty]
- Inserting large amounts of data into a custom table during plugin install
- plugin ajax to external php file always return null
- When to call add_filter
- How to add an image from web-link?
- How to Display a Plugin function (content) on frontpage using index.php
- Doubt using $wpbd->get_col for a single column
- Access WordPress database outside of WordPress
- Correct way to perform non-cacheable DB query
- SEO smart plugin not working for words ending with ä, ö, å
- Build a list of partners with Link, Logo and text
- Help With MySQL to WPDB Query Conversion
- Creating mySQL procedure with $wpdb
- Problem with creating tables for Plugin
- Change commission_status paid when withdraw_status vendor is completed
- WP Plugin for onpage link suggestions [closed]
- $wpdb->get_row returns column name instead of column value
- Create a table with wordpress plugin boilerplate
- How to add subcategories to the blogroll?
- plugin code is pulling information from database in one instance and not in other. What is wrong?
- Object method calling for global $wpdb in header.php
- Using wpdb without loading all plug-ins via wp-load.php
- after wordpress update to 3.5+ i get many errors in plugin wpdb::prepare()
- Cannot get wpdb data (Error in a simple fuction) [closed]
- WPDB: Update table
- Issue running db create table query from static method
- $wpdb update query in plugin only updating one column
- In Woocommerce theme need to add custom external link [closed]
- Any idea how to get something like this to work? [closed]
- Inserting shortcode in href – any ideas or workarounds?
- Need to change link URL embedded in multiple posts to new link URL
- track all external links on blog via username
- how to replace hostnames on certain external links?
- Store plugin page content in wp_options?
- Displaying data from another database
- Using $wpdb in a plugin, what sort of data does it return?
- How to access the WordPress DB from a plugin file
- WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version [closed]
- How to auto strip hyperlinks & images in wordpress post
- Need help creating asynchronous data scraper in WordPress
- Elementor Combined all Sections into 1 Text Editor
- Why the internal link get converted into a comment?
- ob_end_flush(): failed to send buffer of zlib output compression (0) in external php
- How to fetch WordPress database values in JavaScript widget
- $wpdb->delete not working for me
- WP search box on page not finding .PDF files
- any word search WordPress
- Ability to change homepage on WordPress using API
- How to securely controlling data without keeping it in postmeta?
- how to convert frontpage.php to dynamic page?
- Using id to show item
- WordPress website working fine on localhost but not displaying front pages on webhost
- Scroll to ID broken in main menu
- No result after wpdb->insert
- How to fix slow comment query?
- User Affiliate Token Generator?
- Add Filter to get_next_posts_link
- Theme Load Error
- Action hook “wp_insert_post” works but not for last imported post
- Proper way to trigger a MySQL query via link in a plugin
- How to Set Limit with WordPress Get Bookmarks Shortcode
- get_var result empty for query of custom table in plugin admin
- Can I have a link within a WP UI Spoiler
- Why links are not linked if edited comment?
- How to use Link Manager
- How do I add php to all links automatically?
- How to remove links generated by SEO-smart-links?
- How do I increase the 255 character limit on the ‘description’ field for link library links?
- Thumbnails and Lightbox
- Making plugin to use different table prefix cause permission problem
- Is it safe to increase/alter the size of the wp_post.guid column from VARCHAR(255) to VARCHAR(2048)?
- How to block external download link access if visitor not referred from WP?
- Simple Amazon Affiliate Plugin [closed]
- How to wrap image logo in Homepage with H1 tag
- Get all the related data from WordPress DB
- How to make temporary expiring link for a downloadable file
- WordPress Customise
- $wpdb selects wrong database
- How to dispaly post informations (such as titles) in an admin plugin menu page?
- Continuous jQuery Slider / Carousel Plugin with linkable slides [for WooCommerce]
- FATAL ERROR: WP complains about redeclaration [closed]
- How to check record is exist or not in WordPress CRUD Operation with $wpdb
- claim a permalink and all sublinks in plugin