Full service web hosting, great prices and support. Starts at $1.99/month!
Results 1 to 4 of 4

Thread: How do you print the results of tep_db_query()

  1. #1
    dhobson
    Guest


    Default How do you print the results of tep_db_query()

    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?

  2. #2
    Arpit
    Guest


    Default RE: How do you print the results of tep_db_query()

    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. #3
    dhobson
    Guest


    Default

    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. #4
    Arpit
    Guest

Similar Threads

  1. How do you actually Print the Printable Catalog
    By zues in forum osCMax v2 Features Discussion
    Replies: 2
    Last Post: 11-23-2006, 10:43 AM
  2. Fedex Quotes But Won't Print Label
    By cabana in forum osCmax v2 Installation issues
    Replies: 4
    Last Post: 09-05-2006, 09:51 PM
  3. Please explain tep_db_query() format
    By dhobson in forum osCommerce 2.2 Modification Help
    Replies: 4
    Last Post: 01-26-2005, 08:03 PM
  4. Need to print shopping cart - how? like a quote
    By mikeyb in forum osCmax v1.7 Discussion
    Replies: 0
    Last Post: 01-16-2005, 05:40 PM

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •