Photos Not View

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    I try now... ;) GooD MoRNINg BuDDy :D
    if like my post click:

    http://coding-talk.com/images/totall...ost_thanks.gif

    Comment


      #17
      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


        #18
        with this code I view the photo...but are only my photos at all nicknames...:o
        if like my post click:

        http://coding-talk.com/images/totall...ost_thanks.gif

        Comment


          #19
          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=&#39;".$uid."&#39; 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


            #20
            this is my code:

            Code:
              $photo = mysql_fetch_array(mysql_query("SELECT imageurl FROM ibwf_gallery WHERE uid=&#39;".$who."&#39; ORDER BY RAND() "));
            
                          echo "<img src=\"$photo\" width=\"50\" height=\"60\" alt=\"photo[0]\"/>";
                          echo "[$ds]<a href=\"chat.php?action=say2&amp;sid=$sid&amp;who=$chat[0]&amp;rid=$rid&amp;rpw=$rpw\">$optlink</a> - ";
                          echo "".strtolower($tosay)."
            ";
            but photos not open....any1 can help me to fix this problem?? [/b]
            post full code

            Comment


              #21
              <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


                #22
                but I wont add the gallery pics random before nickname at chat page...but this pics are from user write msg gallery...

                if like my post click:

                http://coding-talk.com/images/totall...ost_thanks.gif

                Comment


                  #23
                  Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource
                  if like my post click:

                  http://coding-talk.com/images/totall...ost_thanks.gif

                  Comment


                    #24
                    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=&#39;".$who.&#39;" "));</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=&#39;".$who.&#39;""));</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=&#39;".$uid.&#39;""));</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


                      #25
                      I have add this:

                      $photo = mysql_fetch_array(mysql_query("SELECT avatar FROM ibwf_users WHERE uid=&#39;".$who.&#39;"));

                      but:

                      Parse error: syntax error, unexpected &#39;"&#39;

                      if like my post click:

                      http://coding-talk.com/images/totall...ost_thanks.gif

                      Comment


                        #26
                        I have add this:

                        $photo = mysql_fetch_array(mysql_query("SELECT avatar FROM ibwf_users WHERE uid=&#39;".$who.&#39;"));

                        but:

                        Parse error: syntax error, unexpected &#39;"&#39;

                        [/b]
                        try
                        this one!!!
                        $photo = mysql_fetch_array(mysql_query("SELECT avatar FROM ibwf_users WHERE uid=&#39;".$who.&#39;"&#39;));
                        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


                          #27
                          at this line:

                          $photo = mysql_fetch_array(mysql_query("SELECT avatar FROM ibwf_users WHERE uid=&#39;".$who.&#39;"&#39;));

                          I have:

                          Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource
                          if like my post click:

                          http://coding-talk.com/images/totall...ost_thanks.gif

                          Comment


                            #28
                            at this line:

                            $photo = mysql_fetch_array(mysql_query("SELECT avatar FROM ibwf_users WHERE uid=&#39;".$who.&#39;"&#39;));

                            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


                              #29
                              Ok, now try this:

                              $photo = mysql_fetch_array(mysql_query("SELECT imageurl FROM ibwf_gallery WHERE uid=&#39;".$chat[0]."&#39; ORDER BY RAND() "));

                              echo "<img src=\"$photo[0]\" width=\"50\" height=\"60\" alt=\"$photo[0]\"/>";
                              echo "[$ds]<a href=\"chat.php?action=say2&amp;sid=$sid&amp;who=$ chat[0]&amp;rid=$rid&amp;rpw=$rpw\">$optlink</a> - ";
                              echo "".strtolower($tosay)."
                              ";

                              Comment


                                #30
                                Ok, now try this:

                                $photo = mysql_fetch_array(mysql_query("SELECT imageurl FROM ibwf_gallery WHERE uid=&#39;".$chat[0]."&#39; ORDER BY RAND() "));

                                echo "<img src=\"$photo[0]\" width=\"50\" height=\"60\" alt=\"$photo[0]\"/>";
                                echo "[$ds]<a href=\"chat.php?action=say2&amp;sid=$sid&amp;who=$ chat[0]&amp;rid=$rid&amp;rpw=$rpw\">$optlink</a> - ";
                                echo "".strtolower($tosay)."
                                ";[/b]
                                this work how I can add a image by default if 1 users not have photo ????
                                if like my post click:

                                http://coding-talk.com/images/totall...ost_thanks.gif

                                Comment

                                Working...
                                X