Hey guys working on a new project, thankfully its not to complex and havent ran into any bugs at long last, well yet. Hope I havent jinxed myself there, anyway am trying to connect to multiple db and am having some trouble hoping somebody can provide a solution…
using Form, ajax event, have a select menu when change to add data from another db into field.
this is what I have so far…
/**
- Selecting a field from another table - db to select
*/
$check_db = “conn_mysql_1”;
/**
- Selecting a field from another table
*/
$check_sql = “SELECT providerID, providerRef”
. " FROM providers"
. " WHERE providerID = ‘" . {propProvider} . "’";
sc_lookup(rs, $check_sql, $check_db);
if (isset({rs[0][0]})) // Row found
{
{propProviderRef} = {rs[0][1]};
}
else // No row found
{
{propProviderRef} = “Nothing”;
}
its just throwing errors, from what I have gathered from other examples this should be possible, or am I mistaken???
Any help would be aprechiated