You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.
Is it possible to access the contents of a particular field from an existing table from within a custom shipping script?
I used to use functionality like this in CCP5.1 in perl and wish to replicate it in CCP8 in php.
Does anyone have a code fragment they could share with me? Alternatively if it is not possible, please let me know.
Phill
Offline
$CORE_DB =& $this->quick_object('CORE_DB','core','CORE_DB_1'); $table = 'SOME_TABLE'; $sql = 'SOME_SQL_STATEMENT'; $result = $CORE_DB->sql_do(array('sql' => $sql, 'table' => $table, 'order' => array('id' => 'ASC'))); foreach ($result as $num => $row) { //DO SOMETHING... } // End of foreach statement.
Offline
Thanks, Nick
Offline