Akopia Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

[mv] Error limiting the number of rows returned



******    message to minivend-users from "Pawel Opala" <pawel@12ave.com>     ******

I am using mySQL with minivend and I am trying to limit the number
of rows returned, however, keyword LIMIT in sql string causes an
error in error.log, even though it is a valid keyword in mySQL
queries.  Below is the syntax from minivend enhanced page.

$Safe{'scratch'}{'selString'} = "SELECT * FROM products WHERE
dept=\'$Safe{'scratch'}{'selDepartment'}\' LIMIT
$Safe{'scratch'}{'current'},10"

[sql type=list query="[scratch selString]"]

The above produces a string that works directly with mySQL, however,
I get a syntax error in error.log.  When I remove the word LIMIT,
everything works without logging an error.

I would very much appreciate any suggestions.

Thank you
Pawel Opala

-
To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list


Search for: Match: Format: Sort by: