Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Sunday, October 18, 2026
About Us
O nás
Magazine
Magazín
Open Source
Otvorený softvér
CVS
CVS
Services
Služby
Index  »  Projects  »  phpMyEdit  »  Forum  »  Passing a variable to a trigger

phpMyEdit General     Passing a variable to a trigger
Post new topic   Reply to topic    
 
ckaiser1     Joined: 11 Dec 2012   Posts: 3  
Post Posted: 2012-12-12 16:55
Back to top  Reply with quote     

Sorry but I am fairly new to PHP but love the script but I am stuck trying to pass a field to a trigger to make a folder.

I have this as one of my mysql fields:

Code:
$opts['fdd']['design_number'] = array(
  'name'     => 'Design Number',
  'select'   => 'T',
  'sort'     => true,
  'maxlen'   => 15
);


I am also using a trigger:
Code:
$opts['triggers']['insert']['after'] = 'new_folder.php';


What i can not seem to figure out is how can I pass the ['design_number'] data correctly to the trigger to create the folder.

My trigger is simple:

Code:
<?php
$structure = '\\Drawings\2013\["design_number"]';

if (!mkdir($structure, 0, true)) {
    die('Failed to create folders... it already exists');
}
?>


Please help if me if anyone can figure out what i am doing wrong

 
ckaiser1     Joined: 11 Dec 2012   Posts: 3  
Post Posted: 2012-12-13 17:54
Back to top  Reply with quote     

Dumb ass spammers ruining a good discussion board, how sad you bunch of asshats

 
admin   Site Admin   Joined: 06 Jan 2003   Posts: 12   Location: Bratislava, Slovakia
Post Posted: 2013-09-28 22:24
Back to top  Reply with quote     

I tried to clean it up, but it is not easy, they are spamming like crazy

Thanks for the support anyway!

ckaiser1 wrote:
Dumb ass spammers ruining a good discussion board, how sad you bunch of asshats


 
Post new topic   Reply to topic    

Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top · Feedback form · Odkazový formulár · Application form · Prihláška
Report bug on PLATON.SK website · Upozorniť na chybu na PLATON.SK webstránke · Terms of use · Podmienky použitia · Privacy policy · Ochrana osobných údajov