Results 1 to 5 of 5
-
3rd Feb 2012, 12:24 AM #1OPBannedWebsite's:
WarezRelease.org ThatHosting.coEdit 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
-
3rd Feb 2012, 12:47 AM #2MemberWebsite's:
tehMoviez.com 0Senes.com GeekFaceGames.comtry to dump $site
PHP Code:var_dump($site);
PHP Code:if (isset($_POST['esub'])) {
$site = $_POST['site'];
JokerHacker Blog
JokerHacker PHP coding Service // back again!
CurlAxel PHP Download Accelerator
hardly remembering the milk :p
-
3rd Feb 2012, 01:15 AM #3OPBannedWebsite's:
WarezRelease.org ThatHosting.cowot u mean?
replace $site...........;?
Srry i iz a noob.
-
4th Feb 2012, 02:32 PM #4MemberWebsite's:
Elite.SO Defendos.com Motionite.comThis 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 />';
}
-
6th Feb 2012, 05:38 PM #5Respected Member
try changing this code:
Code:like '".mysql_real_escape_string($site)."'"
Code:like '%".mysql_real_escape_string($site)."%'"
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
(vB 4.1.3) (Edit Required) Edit from code box
By champ_007_bond in forum vBulletinReplies: 0Last Post: 15th Dec 2011, 08:20 PM -
can u edit this ?
By Mars in forum WordpressReplies: 1Last Post: 27th Sep 2011, 10:36 PM -
how to edit this????
By raj1126 in forum vBulletinReplies: 1Last Post: 27th Nov 2010, 09:17 AM -
URL edit
By FancyPants in forum phpBBReplies: 3Last Post: 25th Feb 2010, 03:21 AM -
how can i edit this ?
By Chief-Editor in forum vBulletinReplies: 27Last Post: 27th Sep 2009, 11:27 AM
themaRegister - register to forums...
Version 3.55 released. Open older version (or...