Changeset 8222
- Timestamp:
- 08/27/09 22:30:36 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
freepbx/branches/2.6/amp_conf/bin/retrieve_op_conf_from_mysql.php
r8218 r8222 403 403 foreach ($tables as $table) { 404 404 if (table_exists($db,$table)) { 405 $statement = "SELECT data,id,'$table' from $table where keyword='account' and flags <> 1 and id >99990group by data order by id";405 $statement = "SELECT data,id,'$table' from $table where keyword='account' and flags <> 1 and id LIKE 'tr-%' group by data order by id"; 406 406 $results = $db->getAll($statement); 407 407 if(DB::IsError($results)) { … … 564 564 if ($btn == 0) {last;} 565 565 if (table_exists($db,$table)) { 566 $statement = "SELECT keyword,data from $table where id= $idand keyword <> 'account' and flags <> 1 order by keyword";566 $statement = "SELECT keyword,data from $table where id='$id' and keyword <> 'account' and flags <> 1 order by keyword"; 567 567 $results = $db->getAll($statement); 568 568 if(DB::IsError($results)) {
