This is a discussion on How do you print the results of tep_db_query() within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; If I make this call: $categories_query = tep_db_query(...) When I try to print print "<BR><BR>categories_query = ".$categories_query; I get "categories_query ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| If I make this call: $categories_query = tep_db_query(...) When I try to print print "<BR><BR>categories_query = ".$categories_query; I get "categories_query = Resource id #79" How do I print the contents of $categories_query? |
| Sponsored Links | ||
| ||
|
#2
| |||
| |||
| just fetch the result from the tep_db_query() wher-ever you may choose to do so, mysql_fetch_array -- Fetch a result row as an associative array, a numeric array, or both mysql_fetch_assoc -- Fetch a result row as an associative array mysql_fetch_field -- Get column information from a result and return as an object mysql_fetch_lengths -- Get the length of each output in a result mysql_fetch_object -- Fetch a result row as an object mysql_fetch_row -- Get a result row as an enumerated array |
|
#3
| |||
| |||
| I only want to see the syntax stored in the variable. I don't actually want to see the result of the query at this time. I want to do it for debugging purposes. Like when the query fails and I can't figure out why. |
|
#4
| |||
| |||
| use the mysql error functions, http://dev.mysql.com/doc/mysql/en/mysql-error.html |
| Sponsored Links | ||
| ||
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How do you actually Print the Printable Catalog | zues | osCMax v2 Features Discussion | 2 | 11-23-2006 10:43 AM |
| Fedex Quotes But Won't Print Label | cabana | osCMax v2 Installation issues | 4 | 09-05-2006 10:51 PM |
| Please explain tep_db_query() format | dhobson | osCommerce 2.2 Modification Help | 4 | 01-26-2005 08:03 PM |
| Need to print shopping cart - how? like a quote | mikeyb | osCMax v1.7 Discussion | 0 | 01-16-2005 05:40 PM |