• Avatar of Malad
  • Resident Lurker
  • PipPip
  • Group: Member
  • Joined: Nov 7, 2005
  • Posts: 249
So my girlfriend of 3 years out of nowhere broke up with me last Wednesday. Over the phone. I haven't talked to her for a little over a week until yesterday. I went snooping online and found her old blog that I thought she never used (completely public) and was shocked when I found she was actively talking about the problems with our relationship and taking advice/support from strangers.

Basically we are in a very short long distance relationship (2 1/2 hr drive) and were pretty happy. She has never brought up any problems with our relationship other than the occasional mistake I make. On this blog she mentioned how "he's not putting enough into this relationship" (??) and, "I don't see us having a future together", etc. I had no idea she had any of these thoughts and completely hid her emotions from me on this blog. Hell, I thought I was going to marry this girl. If I had known the extent of those feelings I would have obviously tried my best to fix it... but she made this decision on her own and didn't let me have a chance.

I was pretty shocked and immediately messaged her (she is visiting her parents so I didn't want to call her). Unfortunately they were all self deprecating things about how sorry I am that I didn't pick up on her feelings and how I would do anything for her. I asked her to forgive me and she did. Then I sent another long series of messages that she hasn't responded to yet.

She's going to be back home tomorrow afternoon, at least I think that's what she told me two weekends ago.

Now, here's the question: should I drive up and see her tomorrow? If so, should I tell her I'm coming beforehand?
what's updog?
  • Avatar of Malad
  • Resident Lurker
  • PipPip
  • Group: Member
  • Joined: Nov 7, 2005
  • Posts: 249
Yo dudes

I'm working on a pretty complex file uploading system for shits, giggles and practice.

I've got a basic login system completed, with two levels of membership (user and admin.) Administrators can mess with basic settings on the site concerning file categories and such.

Right now I'm having a bit of trouble with moving between and deleting from categories. This next bit of code will probably be disgustingly sloppy seeing as I'm a newbie to PHP. I'm taking some classes right now which have taught me the basics but this is a little more specific.

<?php

    $checkbox = $_POST['checkbox'];
    $delete = $_POST['delete'];
    $move = $_POST['move'];
   
    /* Check if Delete button is pressed */
    if($delete)
    {
        if($logged_in){
            if(!isset($_POST['checkbox']))
            {
                echo "You haven't made a selection.";
            } else {
                for($i=0;$i<$count;$i++)
                    {
                        $del_id = $checkbox[$i];
                        $query = "SELECT * FROM `$tbl_name` WHERE id='$del_id'";
                        $result = mysql_query($query) or die(mysql_error());
                        $row = mysql_fetch_array($result) or die(mysql_error());
                        $fileToDel = $row['filename'];
                       
                        $sql = "DELETE FROM `$tbl_name` WHERE filename=`$fileToDel`";
                        $result = mysql_query($sql);
                       
                        chdir("uploads/$tbl_name/");
                        unlink($fileToDel);
                        chdir('../../');
 
                    }
                    if($result){
                        echo "<meta http-equiv=\"refresh\" content=\"0;URL=main.php?cat=$tbl_name&amp;sort=$sort\">"; }
                    }
        } else { echo "You must be logged in to delete a file."; }
    }
   
    /* Check if Move button is pressed */
    if($move)
    {
        if($logged_in){
            if(!isset($_POST['checkbox']))
            {
                echo "You haven't made a selection.";
            } else {
                $new = $_POST['new'];
                for($i=0;$i<$count;$i++)
                {
                    $move_id = $checkbox[$i];
                    $query = "SELECT * FROM `$tbl_name` WHERE id='$move_id'";
                    $result = mysql_query($query) or die(mysql_error());
                    $row = mysql_fetch_array($result) or die(mysql_error());
                    $fileToMove = $row['filename'];
                   
                    $sql = "INSERT INTO `$new` SELECT * FROM `$tbl_name` WHERE filename = `$fileToMove`";
                    $result = mysql_query($sql);
                   
                    $sql = "DELETE FROM `$tbl_name` WHERE filename = `$fileToMove`";
                    $result = mysql_query($sql);
                   
                    chdir("uploads/$tbl_name/");
                    rename("$fileToMove", "../$new/$fileToMove");
                    chdir('../../');
                   
                }
                if($result){ echo "<meta http-equiv=\"refresh\" content=\"0;URL=main.php?cat=$tbl_name&amp;sort=$sort\">"; }
            }
            mysql_close();
        } else { echo "You must be logged in to move a file."; }
    }
?>

Users and Administrators can select files according to their check boxes and move/delete whatever they choose. Files are deleted and moved successfully, but the MySQL database that holds the list of files is not affected at all.



What's baffling to me is that the same variables that I am using to physically move or delete the files from the server with PHP are the EXACT SAME VARIABLES that I use for the MySQL functions. I thought it might be a problem with my syntax but I haven't found any evidence of that so far.

Help! :)
what's updog?
  • Avatar of Malad
  • Resident Lurker
  • PipPip
  • Group: Member
  • Joined: Nov 7, 2005
  • Posts: 249
Westboro Baptist Church is coming to my city this month to protest against, well

gays
jews
african americans
soldiers
hispanics
asians
outsourcing

and

peanut butter and banana sandwiches

What should I do? I've been to jail before and don't plan on it again, but I will do what is necessary to screw with this slimy, vile "christian" cult. I need some ideas people! I don't want to hold up a sign unless it's creative. lol
what's updog?
  • Avatar of Malad
  • Resident Lurker
  • PipPip
  • Group: Member
  • Joined: Nov 7, 2005
  • Posts: 249
A loan officer ordered to evict an old woman from her home finds herself the recipient of a supernatural curse, which turns her life into a living hell. Desperate, she turns to a seer to try and save her soul, while evil forces work to push her to a breaking point.
(from IMDB)

I saw this movie last weekend with a few friends. Judging from the previews, we expected a typical horror flick (grudge esque) with cheap scares and maybe some blood splatters here and there.

Oh god.

This film is INCREDIBLE. It's funny, it's gross, it's over the top, it's suspenseful, it's creepy, and it's got one of the craziest endings I've ever seen in a horror film.

Watch it! 9/10
what's updog?