function getjobid() {
global $geotag_table, $wpdb;
$qry = "SELECT * FROM mirdc_jo_form WHERE jo_id = (SELECT MAX(jo_id) FROM mirdc_jo_form)";
$desc = $wpdb->get_results($qry);
return $desc; }
can you help me guys.. i am trying to get the id from my table and try to show the data to my wordpress..
<?php foreach (getjobid() as $generatedid) {
echo $generatedid;?> #<------ this is the error
this is my wordpress code.. can you teach me how i convert the object to string.. to show the result to my wordpress.
<?php $array_data = getjobid(); ?>now print it first and then work accordingly. Show use what you got after printing this variable