Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Streda, 25. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  Passing a variable to a trigger

phpMyEdit General     Passing a variable to a trigger
Odoslať novú tému   Odpovedať na tému    
 
ckaiser1     Založený: 11.12.2012   Príspevky: 3  
Príspevok Zaslal: 2012-12-12 16:55
Návrat hore  Odpovedať s citátom     

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:

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


I am also using a trigger:
Kód:
$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:

Kód:
<?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     Založený: 11.12.2012   Príspevky: 3  
Príspevok Zaslal: 2012-12-13 17:54
Návrat hore  Odpovedať s citátom     

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

 
admin   Site Admin   Založený: 06.01.2003   Príspevky: 12   Bydlisko: Bratislava, Slovakia
Príspevok Zaslal: 2013-09-28 22:24
Návrat hore  Odpovedať s citátom     

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

Thanks for the support anyway!

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


 
Odoslať novú tému   Odpovedať na tému    

Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok · Odkazový formulár · Prihláška
Upozorniť na chybu na PLATON.SK webstránke · Podmienky použitia · Ochrana osobných údajov