WordPress plugin NOT get $adds->id into query with HREF + Modal

Cancelled Posted 7 years ago Paid on delivery
Cancelled Paid on delivery

Need a PHP specialist who can help me getting a record_id .

In below href I put a record_id = $adds->id

Via the href I start a modal and in the modal I start: function customer_advertisement_function().

The function runs well.

Only need the record_id to get the right query result.

How can I get the record_id = $adds->id into the query?

foreach($result as $adds) {

$content .= '<a class="fusion-modal-text-link" data-toggle="modal" data-id=".$adds->id." id=".$adds->id." data-target=".editadd" title="'.__('Edit', 'agent-plugin').'" href="#">

}

function customer_advertisement_function($atts) {

$uid = $current_user->ID; // correct filled

$query = "SELECT *

FROM ".$wpdb->prefix."agent_adds

WHERE id = "'.$adds->id.'"

AND user_id = $uid ";

}

add_shortcode('customer_advertisement', 'customer_advertisement_function');

Realization: today

Milestone: 1 released after finishing project

Dev: on my server

PHP WordPress

Project ID: #13357447

About the project

8 proposals Remote project Active 7 years ago

8 freelancers are bidding on average $46 for this job

Webln

Hello! my name is Viktor. We are IT Company «Webin». We provide website design and web and app development services for organizations, public and government institutions, company or private web-pages. We got acquainte More

$43 USD in 2 days
(13 Reviews)
5.4