Jump to content

Benan

Members
  • Posts

    12
  • Joined

  • Last visited

    Never

Posts posted by Benan

  1. I will be using C++ for application programming, but I was thinking that I should learn PHP to get a kick start, I always did want to use PHP, because i usually need lots of scripts and some times i can't find. So if i learnt PHP I could code my own.
  2. Umm, Im using Windows..

    Configure? I havnt tried configuring, i installed it and trie to use it..

    but the steps i did to install
    pretty much click next, until i had to enter some info.. which was: domain server name: localhost, domainname:localhost, email:Benan7@hotmail.com then next installed..
  3. Hi,

    I installed Apache, used localhost for my domain name serrver and website, installed it etc.. then went to http://localhost in my browser and it said "it works" so I made a folder called "examples" in the htdocs directory, saved my script to it with is a basic script

    [code]<?
    echo "hello";
    ?>[/code]

    and I saved it to exmaples folder as hello.php and when i went to http://localhost/Examples/hello.php it didnt come up as hello it come up as the code, i think this might be a problem with the apache installation i made because the code is pefectly fine from what I can see.
  4. Done that and i get this now:

    Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/freddy/public_html/acp/submitted.php on line 83

    Page: Error: Table 'freddy_ddl.guestsubmit' doesn't exist with query SELECT * from guestsubmit order by id DESC
  5. hi,

    Im running a script called 0day DB, and im just confgiruing everything..When I went to "Submitted downloads" page in my Admin Control Panel, I got an SQL error saying:

    [quote]Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/freddy/public_html/acp/submitted.php on line 81

    Page:
    Warning: mysql_numrows(): supplied argument is not a valid MySQL result resource in /home/freddy/public_html/acp/submitted.php on line 67[/quote]

    Here is the code to that page:
    [code]
    <? require('access.php'); ?>
    <link rel="stylesheet" type="text/css" href="images/0daydb.css" />
    <title>0DayDB Admin Control Panel</title>
    <style type="text/css">
    <!--
    .style3 {font-size: 12px;
    color: #000000;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    }
    .style4 {font-size: 10px}
    .style7 {font-family: Verdana, Arial, Helvetica, sans-serif}
    .style8 {color: #000000}
    -->
    </style>
    <div align="center">
      <table class="border" width="81%">
        <tr>
          <td width="20%" valign="top" align="left">
         
       
          <div class="border">
      <div class="title">:: Navigation</div>
      <div class="sex">
      <div align="left"><strong>&raquo; Main</strong><br>
      ยป <a href="../index.php">Site Home</a><br>
      &raquo; <a href="admin.php">Admin Home</a><br>
      &raquo; <a href="http://d0xscripts.com/viewforum.php?f=12">Support</a><br>
        <br>
        <strong>&raquo; Downloads</strong><br>
      &raquo; <a href="submit.php">Submit Downloads</a><br>
      &raquo; <a href="remove.php">Remove Downloads</a><br>
      &raquo; <a href="submitted.php">Submitted Downloads </a><br>
        <br>
        <strong>&raquo; Tools</strong><br>
      &raquo; <a href="auto.php">AutoSubmitter</a><br>
      &raquo; <a href="ban.php">Ban IPs</a><br>
      &raquo; <a href="stats.php">Site Stats</a><br>
        &raquo; <a href="multiup.php">Multi Upload</a><br>
        <br>
        <strong>&raquo; News</strong><br>
      &raquo; <a href="addnews.php">Add News</a><br>
      &raquo; <a href="removenews.php">Remove News</a></div>
      </div>
      </div>
     
        </td>
          <td width="80%" valign="top">    <div class="border">
            <div class="title">:: Submitted</div>
            <div class="sex">
              <div align="justify">these are the downloads that guests have submitted to your site! you must cllck the download and find the file info of the item that has been added. enjoy!<br>
                  <br>
                  Notice: for the next version we will make it so you can just submit them strate into your download list from here. <br>
              </div>
            </div>
          </div>
            <div class="border">
              <div class="title">:: Submitted Downloads </div>
              <div class="sex">
                <?
    include("../dbconnect.php");

    if(!$_GET[page]) $_GET[page]=1;
    $start = ($_GET[page]-1)*$limit;

    function pagelinks($ispage=1,$getme = "order by id DESC"){
    global $limit;
    $indb = mysql_numrows(mysql_query("SELECT * FROM guestsubmit $getme"));
    $pagenumber = $indb / $limit;
    $pagenumber++;
    $pagecnt=1;
    while($pagecnt <= $pagenumber)
    {
    if($pagecnt == $ispage){echo "[ $pagecnt ] ";}
    else{echo "<a href=\"submitted.php?page=$pagecnt\" target=_self>$pagecnt</a>\n ";}
    $pagecnt++;
    }
    }

    $result = mysql_query("select * from guestsubmit order by id DESC limit $start,$limit");

    while($r=mysql_fetch_array($result))
    {
     
      $id=$r["id"];
      $title=$r["title"];
      $date=$r["date"];
      $description=$r["description"];
      $link=$r["link"];
     
      //display the row
    echo ("<a href='dl.php?id=$id'>$title</a><br>");
    }

    echo"<br>Page: \n";
    pagelinks($_GET[page]);

    ?>
              </div>
          </div></td>
        </tr>
      </table>
      Powered By <strong><a href="http://www.d0xscripts.com">0DayDB v2.3</a></strong></div>[/code]

    [b]while($r=mysql_fetch_array($result))[/b] [i][b]<- Page 81[/b][/i]

    [b]$indb = mysql_numrows(mysql_query("SELECT * FROM guestsubmit $getme"));[/b] [i][b]<- Page 67[/b][/i]

    Can some one please help me out here?



  6. hello,

    I need help and advice in coding a Download Management system.. Similar too.. www.ddl2.renegade-inc.net well very much alike. I am coding in dreamweaver, and need help some stuff.. Basically, I will have a link on index.php too downloads.php which will be a different layout. and then I want it soo after a certain ammount of downloads are added it makes a new page, i have been told I should use PHP include. I want it when epople clikc the name of the file on my site.. it takes them too a new page which a picture. the link(s) etc. I also would like if people were able to submit they're own links and it gets automatically added.

    Thanks
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.