Show Random Topic
Started on the old forum in April 2008 · view the original in the archive · old links redirect here
and random photo at index page how I can add???
if like my post click:
$lpt = mysql_fetch_array(mysql_query("SELECT pictureurl FROM gallery ORDER BY RAND() LIMIT 1")); echo "<img src=\"$lpt[0]\" alt=\"pic\"/>
";
$random = mysql_fetch_array(mysql_query("SELECT url, uid FROM table_gallery ORDER BY RAND() LIMIT 1")); echo "<img src="$random[0]" alt="$random[1]"/>"; echo " "; $nick = getnick_uid($random[1]); $urlnick = "<a href="index.php?action=viewuser&sid=$sid&who=$random[1]"/>$nick</a>"; echo "by: $urlnick"; echo "
";
// for width n height .. just use the coded ~
echo "<img src="$random[0]" width="#" height="#" alt="$random[1]"/>";
but work at wapdesire script???
if like my post click:
Modify it yourself for wapdesire but keep it in your mind that wapdesire's gallery works without database
I try but not work...External image (may be gone)
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in
if like my post click:
I try but not work... External image (may be gone)
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in
do you even have the table "table_gallery" in your database?
sweetangel try this
$rnd = mysql_fetch_array(mysql_query("SELECT itemurl FROM fun_gallery ORDER BY RAND() LIMIT 1")); echo "<img src="$rnd[0]" alt="pic"/>
";
this will work for u External image (may be gone)
Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!
I use this gallery: http://www.2wap.org/forums/Photo-Gallery-t4675.html
if like my post click:
how do i edit the random topic so it show the last topic posted / replied to
sweetangel try this
$rnd = mysql_fetch_array(mysql_query("SELECT itemurl FROM fun_gallery ORDER BY RAND() LIMIT 1")); echo "<img src="$rnd[0]" alt="pic"/>
";
this will work for u External image (may be gone)
this work but at my gallery not found images External image (may be gone) now try upload 1 External image (may be gone)
if like my post click:
I upload the photo but not open...why???any1 can help?
if like my post click:
sweetangel try this
$rnd = mysql_fetch_array(mysql_query("SELECT itemurl FROM ibwf_gallery ORDER BY RAND() LIMIT 1")); echo "<img src="$rnd[0]" alt="pic"/>
";
this will work for u External image (may be gone)
this time it will work
$rnd = mysql_fetch_array(mysql_query("SELECT itemurl FROM ibwf_gallery ORDER BY RAND() LIMIT 1")); echo "<img src="$rnd[0]" alt="pic"/>
";
Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!
how would i pull male and female tables saperately?
Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!
could some one teell how to show male and female im confused
Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!