Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

view a query


travisb

Recommended Posts

How can you view a query? For example I have

$color_option_query = tep_db_query("SELECT * FROM products_options_values WHERE products_options_values_name = $color_string2");

and would like to know the value of $color_string2.

When I echo $color_option_query I get things like "Resource id #10" and not the query.

Link to comment
Share on other sites

Nevermind, I found a solution.

$my_query = "SELECT * FROM products_options_values WHERE products_options_values_name = $color_string2";
$color_option_query = tep_db_query($my_query);
echo $myquery;

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...