username from sent argument

3 posts by 2 authors in: Forums > CMS Builder
Last Post: April 9, 2011   (RSS)

By ikanizaj - April 7, 2011

I have one page that sends ?createdByUserNum argument.
and am having trouble picking up that argument to display username as title on next page.
I have tried it like this :
list($accountsRecords, $accountsMetaData) = getRecords(array(
'tableName' => 'accounts',
'allowSearch' => false,
));

and then it should go something like this, but I don't know what to write where the stars are (it should be that transfered number):
<?php foreach ($accountsRecords as $userRecord): ?>
<?php if ($userRecord['num'] == *******): ?>
<title><?php echo $userRecord['fullname'] ?></title>
<?php endif ?>
<?php endforeach ?>

--
Igor Kani¾aj

Re: [robin] username from sent argument

By ikanizaj - April 9, 2011

That is it. Thanks
--
Igor Kani¾aj