Activity Stream
48,167 MEMBERS
6823 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 5 of 5
  1.     
    #1
    Banned
    Website's:
    WarezRelease.org ThatHosting.co

    Default Edit pr?b

    hey guys,

    here is my mod: http://pastebin.com/sixSKzxx

    The problem is when i click $_post['esub']

    it shud bring that record ($site) for ediitting, however its bringing the last record up to edit...

    Any1 can help? spent the laast 8hrs trya figure.....
    Chris2k Reviewed by Chris2k on . Edit pr?b hey guys, here is my mod: http://pastebin.com/sixSKzxx The problem is when i click $_post it shud bring that record ($site) for ediitting, however its bringing the last record up to edit... Any1 can help? spent the laast 8hrs trya figure..... Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Member
    Website's:
    tehMoviez.com 0Senes.com GeekFaceGames.com
    try to dump $site
    PHP Code: 
    var_dump($site); 
    add it under
    PHP Code: 
     if (isset($_POST['esub'])) {
               
    $site $_POST['site']; 

  4.     
    #3
    Banned
    Website's:
    WarezRelease.org ThatHosting.co
    wot u mean?

    replace $site...........;?

    Srry i iz a noob.

  5.     
    #4
    Member
    Website's:
    Elite.SO Defendos.com Motionite.com
    This is what jokerhacker suggested:

    PHP Code: 
            $bwurl $_POST['bwurl'];
            
    $bwmail $_POST['bwemail'];
            
    $bwdate $_POST['bwdate'];
            
    $reason $_POST['bwreason'];
            
    $bwsub $_POST['bwsubmit'];
            
    $edit $_POST['esub'];
            
    $modifysub $_POST['save'];

            
    $html .= '<form method="post"><table width="100%">
            <tr>
            <td>Site URL</td><td>Date</td><td>Reason</td><td>Email</td><td>Remove/Edit</td></tr>
            <h1>Latest 125 Blacklisted Sites</h1>'
    ;
            
    $acpquery mysql_query("SELECT * FROM wcddl_blacklist ORDER BY dat DESC LIMIT 125");
            while (
    $row mysql_fetch_assoc($acpquery)) {
                
    $html .= '<tr>
                <td>'
    .$row['url'].'</td>
                <td>'
    .$row['dat'].'</td>
                <td>'
    .$row['reason'].'</td>
                <td>'
    .$row['email'].'</td>
                <td><input type="checkbox" name="remove[]" value="'
    .$row['url'].'"><input type="hidden" name="site" value="'.$row['url'].'">
                <button type="submit" name="esub"><img src="/modules/wcp/images/edit-icon.png" title="Edit Item" /></button>
                </td></tr>'
    ;
            }
            
    $html .= '<tr><td colspan="5" align="center"><input type="submit" value="Remove Selected URLs" name="bwsubmit"></td></tr></table>';
            
            
    $html .= '<table width="100%">
            <tr align="center">
                <td>Site URL - (Hostname Only)<br />
                <input type="text" name="bwurl" /></td>
                <td>Date - (Dont worry its Auto-added)<br /><strong>'
    $bwdate .'</strong>
                <input type="hidden" name="bwdate" value="'
    .date("Y-m-d").'" /></td>
                <td>Reason - (355 Chars Max)<br />
                <input type="text" name="bwreason" /></td>
            </tr>
            <tr align="center">
                <td colspan="2">Email<br />
                <input type="text" name="bwemail" /> <input name="del-ddls" type="checkbox" value="" /> Delete Downloads...?</td>
                <td><input type="submit" value="Blacklist This Site...." name="bwsubmit"></td>
            </tr>
            </table></form><p />'
    ;

            if (isset(
    $_POST['esub'])) { 
                
    $site $_POST['site'];
                
    var_dump($site);

                
    $html .= '<form method="post">
                <table width="98%">
                <h1 align="center">Modify...</h1>'
    ;
                
    $list mysql_query("SELECT url,dat,reason,email FROM wcddl_blacklist WHERE url like '".mysql_real_escape_string($site)."'");
                while(
    $mod mysql_fetch_assoc($list)) {
                    
    $html .= '
                    <tr><td><input name="murl" type="text" value="'
    .$mod['url'].'" /></td>
                    <input name="mdate" type="hidden" value="'
    .$mod['dat'].'" />
                    <td><input name="mbody" type="text" value="'
    .$mod['reason'].'" /></td></tr>
                    <tr align="center"><td colspan="2"><input name="memail" type="text" value="'
    .$mod['email'].'" /></td>
                    </tr>'
    ;
                }
                
    $html .= '<tr><td colspan="3"><input type="submit" value="Save" name="save"></td></tr>
                </table></form><p />'
    ;
            } 
    That should work.

    Defendos BETA3 Released! Thread - Official Website

  6.     
    #5
    Respected Member
    try changing this code:
    Code: 
    like '".mysql_real_escape_string($site)."'"
    to this code:
    Code: 
    like '%".mysql_real_escape_string($site)."%'"

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. (vB 4.1.3) (Edit Required) Edit from code box
    By champ_007_bond in forum vBulletin
    Replies: 0
    Last Post: 15th Dec 2011, 08:20 PM
  2. can u edit this ?
    By Mars in forum Wordpress
    Replies: 1
    Last Post: 27th Sep 2011, 10:36 PM
  3. how to edit this????
    By raj1126 in forum vBulletin
    Replies: 1
    Last Post: 27th Nov 2010, 09:17 AM
  4. URL edit
    By FancyPants in forum phpBB
    Replies: 3
    Last Post: 25th Feb 2010, 03:21 AM
  5. how can i edit this ?
    By Chief-Editor in forum vBulletin
    Replies: 27
    Last Post: 27th Sep 2009, 11:27 AM

Tags for this Thread

BE SOCIAL