Jump to content

Recommended Posts

// grab the rest of the listing's data
$sql2 = "SELECT listingsdbelements_field_value, listingsformelements_field_type, listingsformelements_display_priv, listingsformelements_search_result_rank  FROM " . $config['table_prefix'] . "listingsdbelements, " . $config['table_prefix'] . "listingsformelements WHERE ((listingsdb_id = $current_ID) AND (listingsformelements_display_on_browse = 'Yes')  AND (listingsdbelements_field_name = listingsformelements_field_name)) ORDER BY listingsformelements_search_result_rank";
$recordSet2 = $conn->Execute($sql2);

Basicly there are certain veriables I need out of the record set but I have no idea what they are called (It's not my database)

So I was wondering if there is a way I can write the entire thing to the screen so I know what everything is.

Or how can I display the first entry in the record set?

Unless just looking at the database is easier. But I haven't checked what tools or sql stuff is on the webhost.
Link to comment
https://forums.phpfreaks.com/topic/29375-need-some-help-sqlphp-newbie-help/
Share on other sites

ok I think I got it to this:

$sqld = "SELECT listingsdbelements_field_value FROM default_en_listingsdbelements WHERE listingsdb_id = $current_ID  AND listingsdbelements_field_name LIKE  'price' ";

$recordsetdave= $conn->Execute($sqld);

So now how do I get the value of price? I need to put it in a variable.
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.