Gossamer Forum
Home : Products : DBMan : Customization :

What's wrong ?

Quote Reply
What's wrong ?
Why this don't work ???

$dir=substr($dbman_field[33],0,1);
$dir1=substr$dbman_field[33],1,2);
$dir2=substr($dbman_field[33],3,2);

$dir works fine but $dir1 and $dir2 give an error


And this work's perfect

$dir=substr($rec{'Userid'},0,1);
$subdir=substr($rec{'Userid'},1,2);
$subdir2=substr($rec{'Userid'},3,2);


Thanks Sjaak

Quote Reply
Re: What's wrong ? In reply to
$dir=substr($dbman_field[33],0,1);
$dir1=substr($dbman_field[33],1,2);
$dir2=substr($dbman_field[33],3,2);

JPD