MySQL Advanced Query

2 posts by 2 authors in: Forums > CMS Builder
Last Post: May 27, 2010   (RSS)

Re: [cjnovak] MySQL Advanced Query

By Dave - May 27, 2010

Hi cjnovak,

This took me a little while to look up! Try this:

SELECT mls_number
FROM `<?php echo $TABLE_PREFIX ?>ad_copy_editor`
WHERE createdByUserNum = <?php echo $CURRENT_USER['num'] ?>

Note that when you refer to undocumented program internals there's always a chance it may break or change when you upgrade to future versions (although it's pretty unlikey the global will).

Hope that helps!
Dave Edis - Senior Developer
interactivetools.com