+ Reply to Thread
Results 1 to 4 of 4

Thread: Think I posted in wrong place. Pls Help?

  1. #1
    unlikely's Avatar
    unlikely is offline x10Hosting Member unlikely is an unknown quantity at this point
    Join Date
    Apr 2008
    Location
    Houston, TX, USA
    Posts
    25

    Question Think I posted in wrong place. Pls Help?

    As far as I can tell, I have everything done right. X_x

    I set the chmod of entries.db to 666, even to 777. Everything LOOKS fine.. but it isn't functioning fine.

    Anyone know why this isn't working? @_@

    http://unlikely.exofire.net/tag/

    I believe the problem is in here, am I wrong? But I can't find it to fix it.
    Code:
    <?
    $config = "config.php";
    include $config;
    ?>
    <html><title></title><head><link rel="stylesheet" href="http://unlikely.exofire.net/style.css">
    <meta http-equiv="refresh" content="<? echo "$refresh"; ?>"></head>
    <body topmargin="1" leftmargin="2">
    <table width="100%" border="0" cellspacing="2" cellpadding="2">
      <tr>
        <td>
          <?
    if ($show == "limit") {
    $limits = $limit-1;
    if ($max) {} else { $max="$limits"; }
    if ($min) {} else { $min="0"; }
    $tag = file ("entries.db");
    $count = "0"; while (list ($key, $val) = each ($tag)) { 
    if ($key >= $min && $key <= $max) {
    
    $old = fopen ("entries.db", "r");
    $old2 = fread ($old, filesize ("entries.db"));
    fclose ($old);
    
    $tosplit = "|"; 
    $contarr = explode($tosplit,$val); 
    $name = $contarr[0]; 
    $comment = $contarr[1];
    $website = $contarr[2];
    $date = $contarr[3]; 
    $ip = $contarr[4];
    
    if ($website == "http://" || $website == "") {
    echo "$name$spacer $comment<br>";
    }
    else {
    echo "<a href=\"$website\" target=\"_blank\">$name</a>$spacer $comment<br>";
    }
    }
    
    $count++;
    } 
    if ($min > 0) { 
    $n_max = $max - 10;
    $n_min = $min - 10;
    }
    
    if ($count > $max) { 
    $n_max = $max + 10;
    $n_min = $min + 10;
    }
    }
    
    if ($show == "all") {
    $limits = $limit-1;
    if ($max) {} else { $max="$limits"; }
    if ($min) {} else { $min="0"; }
    $tag = file ("entries.db");
    $count = "0"; while (list ($key, $val) = each ($tag)) { 
    if ($key >= $min && $key <= $max) {
    
    $old = fopen ("entries.db", "r");
    $old2 = fread ($old, filesize ("entries.db"));
    fclose ($old);
    
    $tosplit = "|"; 
    $contarr = explode($tosplit,$val); 
    $name = $contarr[0]; 
    $comment = $contarr[1];
    $website = $contarr[2];
    $date = $contarr[3]; 
    $ip = $contarr[4];
    
    if ($website == "http://" || $website == "") {
    echo "$name$spacer $comment<br>";
    }
    else {
    echo "<a href=\"$website\" target=\"_blank\">$name</a>$spacer $comment<br>";
    }
    }
    
    $count++;
    } 
    
    echo "<center>";
    
    if ($count == "0") {
    echo "<center>there is 0 entries in total";
    }
    
    if ($count == "1") {
    echo "<center>there is 1 entry in total";
    }
    
    if ($count >= "2") {
    echo "<center>there is $count entries in total<br><br>";
    }
    if ($min > 0) { 
    $n_max = $max - $limit;
    $n_min = $min - $limit;
    echo "<a href=\"tags.php?show=all&max=$n_max&min=$n_min\"><b>back</b></a> ";
    }
    
    if ($count > $max) { 
    $n_max = $max + $limit;
    $n_min = $min + $limit;
    echo "<a href=\"tags.php?show=all&max=$n_max&min=$n_min\"><b>more</b></a>";
    }
    echo "<br><a href=\"index.html\" target=\"blank\">back</a></center>";
    }
    ?>
        </td>
      </tr></table></body></html>
    Last edited by unlikely; 11-21-2008 at 09:44 AM. Reason: Added code


    Ubi eets ur fayse.

  2. #2
    sybregunne is offline x10Hosting Member sybregunne is an unknown quantity at this point
    Join Date
    Feb 2008
    Posts
    54

    Re: Think I posted in wrong place. Pls Help?

    How should it be working though? what exactly is the problem?

  3. #3
    unlikely's Avatar
    unlikely is offline x10Hosting Member unlikely is an unknown quantity at this point
    Join Date
    Apr 2008
    Location
    Houston, TX, USA
    Posts
    25

    Re: Think I posted in wrong place. Pls Help?

    I apologize. Its a tagboard script. This particular page I believe is tags.php.

    Everything LOOKS great. But it isn't functioning.


    Ubi eets ur fayse.

  4. #4
    themasterrocker Guest

    Re: Think I posted in wrong place. Pls Help?

    this is the right place

+ Reply to Thread

Similar Threads

  1. Replies: 3
    Last Post: 07-08-2008, 11:18 AM
  2. What is wrong?
    By VeggieBoy in forum Off Topic
    Replies: 10
    Last Post: 03-08-2008, 05:44 AM
  3. Wrong Disk Usage Reading
    By 818Papi in forum Free Hosting
    Replies: 4
    Last Post: 01-29-2008, 09:06 PM
  4. still pointing to the wrong place
    By markud in forum Free Hosting
    Replies: 6
    Last Post: 06-02-2005, 09:31 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers