Rambom Link My_sql

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Rambom Link My_sql

    can any one know a rambom sql like rambom link ??

    i need for my new toplist im making
    Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
    Visit: WapMasterz Coming Back Soon!
    _______
    SCRIPTS FOR SALE BY SUBZERO
    Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
    FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
    _______
    Info & Tips
    php.net
    w3schools.com

    #2
    Code:
    $random_row = mysql_fetch_row(mysql_query("select * from YOUR_TABLE order by rand() limit 1"));
    Advertise your mobile site for FREE with AdTwirl

    Comment


      #3
      thats no t picking up in sql bro
      Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
      Visit: WapMasterz Coming Back Soon!
      _______
      SCRIPTS FOR SALE BY SUBZERO
      Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
      FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
      _______
      Info & Tips
      php.net
      w3schools.com

      Comment


        #4
        it shud work.

        Code:
        $random_row = mysql_fetch_row(mysql_query("select * from YOUR_TABLE order by rand() limit 1"));
        [/b]
        Wont it work like this,
        Code:
        $random_row = mysql_fetch_array(mysql_query("select * from YOUR_TABLE order by rand() limit 1"));

        Comment


          #5
          dont work
          Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
          Visit: WapMasterz Coming Back Soon!
          _______
          SCRIPTS FOR SALE BY SUBZERO
          Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
          FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
          _______
          Info & Tips
          php.net
          w3schools.com

          Comment


            #6
            Code:
            CREATE TABLE `links` (
            
              `id` int(11) NOT NULL auto_increment,
              `link` text NOT NULL,
              `image` longtext NOT NULL,
              `text` text NOT NULL,
              PRIMARY KEY  (`id`)
            ) TYPE=MyISAM;
            Code:
            // insert values into the database
            
            insert into links values ('NULL',"http://www.site1.com", "path/image.gif", "website description");
            insert into links values ('NULL',"http://www.site2.com", "path/image.gif", "website description");
            insert into links values ('NULL',"http://www.site3.com", "path/image.gif", "website description");
            Code:
            <?
            // Connect to the database
            mysql_connect (&#39;localhost&#39;, &#39;username&#39;, &#39;password&#39;);
            mysql_select_db (&#39;database_name&#39;); 
            
            // Edit this number to however many links you want displaying
            $num_displayed = 3;
            
            // Select random rows from the database
            $result = mysql_query ("SELECT * FROM links ORDER BY RAND() LIMIT $num_displayed"); 
            
            // For all the rows that you selected
            while ($row = mysql_fetch_array($result)) 
            
            {
            // Display them to the screen...
            
            echo "<a href=\"" . $row["link"] . "\">
            <img src=\"" . $row["image"] . "\" border=0 alt=\"" . $row["text"] . "\">
            </a>";
            }
            ?>
            dunno if that helps

            Comment


              #7
              i just made one lol and thanks guys for help!

              gumslone i have same toplist as you hope dont mind bro

              http://top.top-z.net
              Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
              Visit: WapMasterz Coming Back Soon!
              _______
              SCRIPTS FOR SALE BY SUBZERO
              Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
              FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
              _______
              Info & Tips
              php.net
              w3schools.com

              Comment


                #8
                I will too make one just wait.

                Comment


                  #9
                  ok yet see lol

                  lol i made it into html
                  Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
                  Visit: WapMasterz Coming Back Soon!
                  _______
                  SCRIPTS FOR SALE BY SUBZERO
                  Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
                  FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
                  _______
                  Info & Tips
                  php.net
                  w3schools.com

                  Comment

                  Working...
                  X