| 
 Posted by Matt on 08/27/07 11:43 
On Aug 27, 1:45 am, Jerry Stuckle <jstuck...@attglobal.net> wrote: 
 
> IF they aren't authorized, they won't get the article, even if they 
> guess the URL. 
 
This is the part I'm having trouble with. Norman's method will work 
fine to print a list of links to articles depending on user access 
rights, but my issue is for displaying a specific article. I just 
can't figure out an efficient way to test a) if the article IS premium 
and b) if the user is premium without repeating my 'output article' 
code. 
 
I can't build my SELECT statement based on privileges because I have 
to make the SELECT in the first place to establish whether or not the 
article is premium content or not!
 
[Back to original message] 
 |