hairos
05-17-2004, 06:12 AM
I have a MySQL database, with some fields:
userID, name, email, Approved
I need to show a random data when Approved 'y'.
here's my code :
<%
call OpenConn
call OpenRs(RsContent,"select UserID,Name,Email, from MSUser where lower(UserID)='" & lcase(session("UserID")) & "' and upper(approved) = 'Y' order by rand() limit 1"
call GetRowsRs(RsContent,DataContent,DataContentRow)
call CloseRs(RsContent)
call CloseConn
%>
But it didn't work.
Maybe you guys can help me ?
userID, name, email, Approved
I need to show a random data when Approved 'y'.
here's my code :
<%
call OpenConn
call OpenRs(RsContent,"select UserID,Name,Email, from MSUser where lower(UserID)='" & lcase(session("UserID")) & "' and upper(approved) = 'Y' order by rand() limit 1"
call GetRowsRs(RsContent,DataContent,DataContentRow)
call CloseRs(RsContent)
call CloseConn
%>
But it didn't work.
Maybe you guys can help me ?
