- Timestamp:
- Dec 16, 2008, 8:15:34 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
types/PointerOneToOne.php
r29 r30 23 23 { 24 24 //print_r($Type); 25 $DbResult = $Database->select( $List['TableName'], '*', 'Id='.$Item['Value']);25 $DbResult = $Database->select(array('Database' => $List['Database'], 'Table' => $List['TableName'], 'Condition' => 'Id='.$Item['Value'])); 26 26 $DbRow = $DbResult->fetch_assoc(); 27 27 $DefinitionItem = array('Name' => $Index, 'Type' => $Item['Type'], 'Caption' => $Item['TextBefore'], 'Value' => $DbRow[$Index], 'SourceTable' => $List['Id'], 'SourceItemId' => 0); … … 34 34 if($Columns == '') $Columns = 'Id AS Name, Id'; 35 35 else $Columns = 'CONCAT('.$Columns.') AS Name, Id'; 36 $DbResult = $Database->select( $TargetTable, $Columns, 'Id='.$Item['Value']);36 $DbResult = $Database->select(array('Database' => $List['Database'], 'Table' => $TargetTable, 'Columns' => $Columns, 'Condition' => 'Id='.$Item['Value'])); 37 37 //echo($Database->LastQuery); 38 38 if($DbResult->num_rows > 0)
Note:
See TracChangeset
for help on using the changeset viewer.