| Index
» Projekty
» phpMyEdit
» Fórum
» Passing a variable to a trigger |
 |
ckaiser1
Založený: 11.12.2012
Príspevky: 3
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
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
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
|
|
|
|