Jump to content

Need some help SQL/PHP newbie help


ViperG

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.