User Search

2 posts by 2 authors in: Forums > CMS Builder
Last Post: July 17, 2008   (RSS)

By Kenny - July 15, 2008

How do you get listings pulled up by a particular user?

I tried

index.php?createdByUserNum=<?php echo $record['createdBy.fullname'] ?>

and it didn't work.

Re: [sagentic] User Search

By Dave - July 17, 2008

Hi sagentic,

You're almost there - you want the user number. So if $record is the user record you could use:

index.php?createdByUserNum=<?php echo $record['num'] ?>

But if record is something else, say an article, you could just do this:

index.php?createdByUserNum=<?php echo $record['createdByUserNum'] ?>

Hope that helps! Let me know if you need any more details on that.
Dave Edis - Senior Developer
interactivetools.com