help pls

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
8707
Forum Newbie
Posts: 11
Joined: Thu Jan 07, 2010 7:41 pm

help pls

Post by 8707 »

Code: Select all

$product_result = $adb->pquery("select productid from vtiger_products where (productname like 'Wood%')");

if ($focus->column_fields['product_id'] == $product_result)
{
$focus->column_fields['assigned_user_id'] = 91;
}
In above code, the query will return 3 value.(For ex 111,222,333). When user select the product_id and if the id is equal either one of the return value, it will assign it to the user with id ==91. Anyone have any idea?
minorDemocritus
Forum Commoner
Posts: 96
Joined: Thu Apr 01, 2010 7:28 pm
Location: Chicagoland, IL, USA

Re: help pls

Post by minorDemocritus »

I've no clue what the objects $adb and $focus do.
Post Reply