Results 1 to 3 of 3

Thread: Select data from database via Ad-title

  1. #1
    Thread Starter
    Amateur marcoberndtde's Avatar
    Join Date
    Aug 2011
    Location
    Frankfurt, Germany
    Posts
    16
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Select data from database via Ad-title

    Hi,

    I'm writing some code for a page which is outside the loop. The page consists of a table with the exact values of the ad-titles. Now I need to select the ad-id, ad-owner, owner-id and owner-mail out of $wpdb, but the ad-owner most of the time is NOT the current user, so wp-commands don't help therefore. This is what it makes it a bit tricky for me.

    Can somebody please tell me which db-table I need to select and point out the names I need for my selection?

    Btw. I'm still using CP 3.2.1.

  2. #2
    samcy's Avatar
    Join Date
    Mar 2012
    Location
    Germany
    Posts
    12,098
    Thanks
    121
    Thanked 1,756 Times in 1,442 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Rolf Hassel (Samcy)

  3. #3
    ridabenharrou's Avatar
    Join Date
    Jun 2011
    Location
    Morocco
    Posts
    169
    Thanks
    2
    Thanked 45 Times in 32 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. save contact form data in the database
    By foundationmedia in forum ClassiPress General Discussion
    Replies: 1
    Last Post: July 20th, 2011, 08:45 AM