Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8687655
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T23:10:27+00:00 2026-06-12T23:10:27+00:00

I am building a table on a wordpress site that displays data that is

  • 0

I am building a table on a wordpress site that displays data that is sorted from one table.

What I cannot get right is to change the title to a URL, that is changeable (slug) from the same db.

The basic url stays the same only the slug changes
ie wwww.thesite.com/job/view/ — and then the slug.

Here is my code so far.

function dbTEST($atts, $content = null) {

// Get all the data from the "job board" table

$result = mysql_query("SELECT * FROM wpjb_job WHERE job_country='72' ORDER BY job_title") 
or die(mysql_error());  

echo "<table border='1'>";
echo "<tr> <th>Job</th> <th>Company</th> </tr>";


// keeps getting the next row until there are no more to get

while($row = mysql_fetch_array( $result )) {

    // Print out the contents of each row into a table

    echo "<tr><td>"; 
#---------- I need this job_title to url link to the job_slug
    echo $row['job_title'];
    echo $row['job_slug'];
    echo "</td><td>"; 
    echo $row['company_name'];
    echo "</td></tr>"; 
} 

echo "</table>";
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T23:10:28+00:00Added an answer on June 12, 2026 at 11:10 pm

    Try this:

    echo "<a href=wwww.thesite.com/job/view/".$row['job_slug'].">".$row['job_title']."</a>"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm building a table that displays the dates of the next 10 days. I
I'm building a table data editor, and need functionality that's not available in the
I have a button_to helper method in a view table that I cannot get
I'm building a table cell using two bound ember.js views on data. When I
I'm building a table with some text that is HTML, so I am using
I'm building a table from which I want to update different fields of a
I have an HTML table where I'm building an edit function to change a
I am building a table that spans multiple pages of my PDF. I would
I'm just building a table to store hierarchical data using the Modified Pre-order Tree
I am building a table row in a jQuery $.ajax() call that builds a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.