I try now... ;) GooD MoRNINg BuDDy :D
Photos Not View
Collapse
This topic is closed.
X
X
-
Try This:
$photo = mysql_fetch_array(mysql_query("SELECT imageurl FROM ibwf_gallery WHERE uid='".$chat."' ORDER BY RAND() "));
echo "<img src=\"$photo[0]\" width=\"50\" height=\"60\" alt=\"$photo[0]\"/>";
echo "[$ds]<a href=\"chat.php?action=say2&sid=$sid&who=$chat[0]&rid=$rid&rpw=$rpw\">$optlink</a> - ";
echo "".strtolower($tosay)."
";
this is ok!Services
Are you looking to take your wap or wapsite to a higher level? Do you want to stand out and rise above your competitors?
Below is a list of services I offer:
Wap Design and Customized Coding -The first way to stand out in a crowd is to have a brilliant and unique design for your wap or wapsite.
Rates
General consulting – My current hourly rate is $100 / hour.
Custom Wapsite Community - My current rate is $500 / Wap Community Development.
Comment
-
with this code I view the photo...but are only my photos at all nicknames...:o[/b]
yes this works... right?
<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>$photo = mysql_fetch_array(mysql_query("SELECT imageurl FROM ibwf_gallery WHERE uid='".$uid."' ORDER BY RAND() "));
</div>
or use this one................................... this will help you...............
for all the pictures in your ibwf gallery this works fine for me on my fourth domain!
<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>$photo = mysql_fetch_array(mysql_query("SELECT imageurl FROM ibwf_gallery ORDER BY RAND() "));
</div>
<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>$photo = mysql_fetch_array(mysql_query("SELECT imageurl FROM ibwf_gallery ORDER by RAND() LIMIT 1"));
</div>Services
Are you looking to take your wap or wapsite to a higher level? Do you want to stand out and rise above your competitors?
Below is a list of services I offer:
Wap Design and Customized Coding -The first way to stand out in a crowd is to have a brilliant and unique design for your wap or wapsite.
Rates
General consulting – My current hourly rate is $100 / hour.
Custom Wapsite Community - My current rate is $500 / Wap Community Development.
Comment
-
Guest
this is my code:
Code:Â Â $photo = mysql_fetch_array(mysql_query("SELECT imageurl FROM ibwf_gallery WHERE uid='".$who."' ORDER BY RAND() ")); Â Â Â Â Â Â Â Â Â Â Â Â Â Â echo "<img src=\"$photo\" width=\"50\" height=\"60\" alt=\"photo[0]\"/>"; Â Â Â Â Â Â Â Â Â Â Â Â Â Â echo "[$ds]<a href=\"chat.php?action=say2&sid=$sid&who=$chat[0]&rid=$rid&rpw=$rpw\">$optlink</a> - "; Â Â Â Â Â Â Â Â Â Â Â Â Â Â echo "".strtolower($tosay)." ";
Comment
-
<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>$photo = mysql_fetch_array(mysql_query("SELECT imageurl FROM ibwf_gallery ORDER BY RAND() limit 1"));
echo "<img src=\"$photo[0]\" width=\"50\" height=\"60\" alt=\"$photo[0]\"/>";</div>
problem solved..Services
Are you looking to take your wap or wapsite to a higher level? Do you want to stand out and rise above your competitors?
Below is a list of services I offer:
Wap Design and Customized Coding -The first way to stand out in a crowd is to have a brilliant and unique design for your wap or wapsite.
Rates
General consulting – My current hourly rate is $100 / hour.
Custom Wapsite Community - My current rate is $500 / Wap Community Development.
Comment
-
but I wont add the gallery pics random before nickname at chat page...but this pics are from user write msg gallery...[/b]
use this final one hope this finaly resolves your problem
do not random the image but rather it displays image of the chatter
<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>$photo = mysql_fetch_array(mysql_query("SELECT avatarImageofChatter FROM ibwf_users WHERE uid='".$who.'" "));</div>
<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>$photo = mysql_fetch_array(mysql_query("SELECT avatar FROM ibwf_users WHERE uid='".$who.'""));</div>
<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>$photo = mysql_fetch_array(mysql_query("SELECT mypicture FROM ibwf_users WHERE uid='".$uid.'""));</div>Services
Are you looking to take your wap or wapsite to a higher level? Do you want to stand out and rise above your competitors?
Below is a list of services I offer:
Wap Design and Customized Coding -The first way to stand out in a crowd is to have a brilliant and unique design for your wap or wapsite.
Rates
General consulting – My current hourly rate is $100 / hour.
Custom Wapsite Community - My current rate is $500 / Wap Community Development.
Comment
-
I have add this:
$photo = mysql_fetch_array(mysql_query("SELECT avatar FROM ibwf_users WHERE uid='".$who.'"));
but:
Parse error: syntax error, unexpected '"'
[/b]
this one!!!
$photo = mysql_fetch_array(mysql_query("SELECT avatar FROM ibwf_users WHERE uid='".$who.'"'));Services
Are you looking to take your wap or wapsite to a higher level? Do you want to stand out and rise above your competitors?
Below is a list of services I offer:
Wap Design and Customized Coding -The first way to stand out in a crowd is to have a brilliant and unique design for your wap or wapsite.
Rates
General consulting – My current hourly rate is $100 / hour.
Custom Wapsite Community - My current rate is $500 / Wap Community Development.
Comment
-
at this line:
$photo = mysql_fetch_array(mysql_query("SELECT avatar FROM ibwf_users WHERE uid='".$who.'"'));
I have:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource[/b]
because you dont have this avatar in your sql... you must add it ....
what script you use today?Services
Are you looking to take your wap or wapsite to a higher level? Do you want to stand out and rise above your competitors?
Below is a list of services I offer:
Wap Design and Customized Coding -The first way to stand out in a crowd is to have a brilliant and unique design for your wap or wapsite.
Rates
General consulting – My current hourly rate is $100 / hour.
Custom Wapsite Community - My current rate is $500 / Wap Community Development.
Comment
-
Guest
Ok, now try this:
$photo = mysql_fetch_array(mysql_query("SELECT imageurl FROM ibwf_gallery WHERE uid='".$chat[0]."' ORDER BY RAND() "));
echo "<img src=\"$photo[0]\" width=\"50\" height=\"60\" alt=\"$photo[0]\"/>";
echo "[$ds]<a href=\"chat.php?action=say2&sid=$sid&who=$ chat[0]&rid=$rid&rpw=$rpw\">$optlink</a> - ";
echo "".strtolower($tosay)."
";
Comment
-
Ok, now try this:
$photo = mysql_fetch_array(mysql_query("SELECT imageurl FROM ibwf_gallery WHERE uid='".$chat[0]."' ORDER BY RAND() "));
echo "<img src=\"$photo[0]\" width=\"50\" height=\"60\" alt=\"$photo[0]\"/>";
echo "[$ds]<a href=\"chat.php?action=say2&sid=$sid&who=$ chat[0]&rid=$rid&rpw=$rpw\">$optlink</a> - ";
echo "".strtolower($tosay)."
";[/b]
Comment
Comment