dopetalk does not endorse any advertised product nor does it accept any liability for it's use or misuse


Our Discord Notification Server invitation link is https://discord.gg/jB2qmRrxyD

Author Topic: Unload ALL your Posts by request  (Read 41 times)

Offline Chip (OP)

  • Server Admin
  • Hero Member
  • *****
  • Administrator
  • *****
  • Join Date: Dec 2014
  • Location: Australia
  • Posts: 7345
  • Reputation Power: 0
  • Chip has hidden their reputation power
  • Gender: Male
  • Last Login:Today at 06:12:26 AM
  • Deeply Confused Learner
  • Profession: IT Engineer now retired
Unload ALL your Posts by request
« on: September 27, 2016, 04:42:37 PM »
ref. at: http://www.simplemachines.org/community/index.php?topic=548761

if you want me to email you a copy of all your posts (and only your posts -- think of the Opiophile fiasco) then i will do so - just reply to this, email or PM me. Here is the SQL/php code i wrote for you, should you want or need it:

Code: [Select]
<?php
$servername 
"localhost";
$username "root";
$password "xxxx"// <- modify
$dbname "smf209";

// Create connection
$conn = new mysqli($servername$username$password$dbname);
// Check connection
if ($conn->connect_error) {
    die(
"Connection failed: " $conn->connect_error);
}

$sql "SELECT *
        FROM  `smf209_messages` WHERE poster_name =  'uuuu' ORDER BY id_topic, poster_time"
// <-modify poster_name
$result $conn->query($sql);

if (
$result->num_rows 0) {
    
// output data of each row
    
while($row $result->fetch_assoc()) {
        print 
"<strong>".$row['subject']."</strong> by "$row['poster_name']. "<br/>";
        echo 
"Dated: "date("d/m/Y H:i:s"$row['poster_time']);
        echo 
" "PHP_EOL"<br/>";
        echo 
$row['body']. PHP_EOL"<br/>";
        echo 
" "PHP_EOL"<br/>";
    }
} else {
        echo 
"0 results";
}
$conn->close();
?>


the output looks like this:

Re: Cut in Methamphet. Causes Small Necrotic Spot by uuuu
Dated: 15/12/2014 18:55:41
... that eventually almost fully healed. immune system must be ok, yeah ?

Re: IV use almost all used up. ~ Very Limited Venous Real Estate by uuuu
Dated: 15/12/2014 18:54:45
stopped shooting ... the smart thing to do.

Re: logo by uuuu
Dated: 22/12/2014 19:50:47
i added a logo today, your critique is sought ...

Re: logo by uuuu
Dated: 23/12/2014 02:17:41
i will be getting around to different Themes a bit later, i would like colour changes too.

etc. etc. etc.
« Last Edit: September 27, 2016, 10:27:33 PM by chipper »
friendly
0
funny
0
informative
0
agree
0
disagree
0
like
0
dislike
0
No reactions
No reactions
No reactions
No reactions
No reactions
No reactions
No reactions
Our Discord Server invitation link is https://discord.gg/jB2qmRrxyD

Offline Chip (OP)

  • Server Admin
  • Hero Member
  • *****
  • Administrator
  • *****
  • Join Date: Dec 2014
  • Location: Australia
  • Posts: 7345
  • Reputation Power: 0
  • Chip has hidden their reputation power
  • Gender: Male
  • Last Login:Today at 06:12:26 AM
  • Deeply Confused Learner
  • Profession: IT Engineer now retired
Re: Unload ALL your Posts by request
« Reply #1 on: January 20, 2017, 04:49:36 PM »
*bump*
friendly
0
funny
0
informative
0
agree
0
disagree
0
like
0
dislike
0
No reactions
No reactions
No reactions
No reactions
No reactions
No reactions
No reactions
Our Discord Server invitation link is https://discord.gg/jB2qmRrxyD

Tags:
 


dopetalk does not endorse any advertised product nor does it accept any liability for it's use or misuse





TERMS AND CONDITIONS

In no event will d&u or any person involved in creating, producing, or distributing site information be liable for any direct, indirect, incidental, punitive, special or consequential damages arising out of the use of or inability to use d&u. You agree to indemnify and hold harmless d&u, its domain founders, sponsors, maintainers, server administrators, volunteers and contributors from and against all liability, claims, damages, costs and expenses, including legal fees, that arise directly or indirectly from the use of any part of the d&u site.


TO USE THIS WEBSITE YOU MUST AGREE TO THE TERMS AND CONDITIONS ABOVE


Founded December 2014
SimplePortal 2.3.6 © 2008-2014, SimplePortal