Re: [PHP-DB] Using PHP to generate SQL statement

2004-09-23 Thread Eduardo Sampaio
Or you could use a more flexible way, allowing you to easily add other filters to the query. $sql = select ID from products; if ($webpage-parameter_isset(CategoryID)) $sql = addFilter($sql,CategoryID,$webpage-CategoryID); if ($webpage-parameter_isset(CompanyID)) $sql =

Re: [PHP-DB] mysql to postgres migration blues...

2004-09-23 Thread Eduardo Sampaio
Its because the function cannot access your connection object... Try passing it to the function.. function makelistboxentries($link, $title, $mytable, $mycolumn, $othertable, $wherestring) On Thu, 23 Sep 2004 19:44:51 +0200, Antoine [EMAIL PROTECTED] wrote: Hi, I am trying to get skilled up