Radicore Forum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » RADICORE » How To » pickup subdir from table and put into upload_subdir
Re: pickup subdir from table and put into upload_subdir [message #1373 is a reply to message #1372] Thu, 12 June 2008 04:56 Go to previous messageGo to previous message
AJM is currently offline  AJM
Messages: 2347
Registered: April 2006
Location: Surrey, UK
Senior Member
When I pointed you to that link I did not mean that you had to call the _cm_getForeigndata() method, I meant that you could use that code sample within your _cm_initialiseFileUpload() method.

You can access any other table from anywhere in your code with the following:
$dbobject =& singleton::getInstance('other_table');
$dbobject->sql_select = 'other_field';
$other_data = $dbobject->getData("other_id='whatever'");

What you do with the contents of $other_data is up to you.


 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Filter values of fields depending on other fields
Next Topic: Use the ADD5 template
Goto Forum:
  


Current Time: Mon Apr 29 12:23:29 EDT 2024

Total time taken to generate the page: 0.01219 seconds