sabret00the |
10-07-2003 10:49 PM |
random profiles on non-vb page
can you help me with this snippet of code please
PHP Code:
<?php
$randname="SELECT username, userid FROM user ORDER BY rand() LIMIT 1";
echo ("<a href=\"forums/member.php?s=&action=getinfo&userid=$randname\"><img src=\"img/v2-rand_prof.png\" alt=\"random profile\" width=\"292\" height=\"136\" border=\"0\" /></a>");
?>
when you click the image that that produces it's meant to send you to a random profile but instead of making the userid it gives me the query as the link
e.g. http://www.ebslive.com/forums/member...&userid=SELECT username, userid FROM user ORDER BY rand() LIMIT 1
|