CIPWTTKT&GC V0x0F (v15): Scoot and Deeps Drama Diaries
25,625 replies, posted
I rearranged it and it's...better. Still not completely satisfied. I keep thinking my room is bigger than it really is.
I honestly haven't used MySQL or PHP in like over 3 years or something close to that.
So meet my little piece of code, where the database connection is handled by something I found on Google.
[code]
<html>
<head>
<style type="text/css">
div {
position:fixed;
top:0px;
right:0px;
}
body { margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; }
* {font-family:arial;}
.menuitem {font-size:10pt; border:1px solid #666666; color:#666666; background-color:#FFFFFF; cursor:default;}
.menuitem_hover {font-size:10pt; border:1px solid #666666; color:#ffffff; background-color:#666666; cursor:default; }
.menuitem td {font-size:10pt; color:#666666; background-color:#FFFFFF; cursor:default;}
.menuitem_hover td {font-size:10pt; color:#ffffff; background-color:#666666; cursor:default; }
.submenu {position:absolute; top:-1000px; cursor:default; background-color:#FFFFFF; }
</style>
</head>
<body style="overflow: hidden">
<div>
<?PHP
$user_name = "nope";
$password = "doublenope";
$database = "triplenope";
$server = "127.0.0.1";
$id = $_GET["id"];
$db_handle = mysql_connect($server, $user_name, $password);
$db_found = mysql_select_db($database, $db_handle);
if ($db_found) {
$SQL = "UPDATE item SET kpl = kpl + 1 WHERE itemid = ('$id');";
$result = mysql_query($SQL);
while ($db_field = mysql_fetch_assoc($result)) {
}
mysql_close($db_handle);
}
else {
print "Database NOT Found ";
mysql_close($db_handle);
}
?>
</div>
</body>
</html>
[/code]
[editline]25th November 2011[/editline]
Now I just need to figure out how to get it to another page after it's done.
I know I can use echo "<script>window.location etc. bullshit but my brain's freezing right now and I just manage to break the page.
Would you like me to knock one together when I get in?
[QUOTE=nikomo;33429706]
[editline]25th November 2011[/editline]
Now I just need to figure out how to get it to another page after it's done.
I know I can use echo "<script>window.location etc. bullshit but my brain's freezing right now and I just manage to break the page.[/QUOTE]
Put the DB connection in a seperate file and load that with a require?
So I am going to reinstall windows.
I forgot my MSN password and can't reset it from the site. I can still log in, as it is saved but yeah, I can't remember what was the password.
[QUOTE=mobrockers2;33429778]Put the DB connection in a seperate file and load that with a require?[/QUOTE]
The amount of "fuck that, I'll do that next week and then not do it next week" is high.
Sure, it's just make new file, c-a, c-x, c-v, include but fuck it for now, I'll get out of work in 40 minutes.
[QUOTE=tratzzz;33429795]So I am going to reinstall windows.
I forgot my MSN password and can't reset it from the site. I can still log in, as it is saved but yeah, I can't remember what was the password.[/QUOTE]
why can't you change it?
[QUOTE=snowzombeh;33429987]why can't you change it?[/QUOTE]
I need to insert captcha but it always thinks they are wrong.
I tried over 20 times, seriously.
[QUOTE=tratzzz;33430123]I need to insert captcha but it always thinks they are wrong.
I tried over 20 times, seriously.[/QUOTE]
Try the audio captcha, might work better.
Just ordered this:
[url]http://cdon.se/hemelektronik/logitech_g35_gaming_headset-7039290[/url]
[QUOTE=nikomo;33429706]I honestly haven't used MySQL or PHP in like over 3 years or something close to that.
So meet my little piece of code, where the database connection is handled by something I found on Google.
[code]
<html>
<head>
<style type="text/css">
div {
position:fixed;
top:0px;
right:0px;
}
body { margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; }
* {font-family:arial;}
.menuitem {font-size:10pt; border:1px solid #666666; color:#666666; background-color:#FFFFFF; cursor:default;}
.menuitem_hover {font-size:10pt; border:1px solid #666666; color:#ffffff; background-color:#666666; cursor:default; }
.menuitem td {font-size:10pt; color:#666666; background-color:#FFFFFF; cursor:default;}
.menuitem_hover td {font-size:10pt; color:#ffffff; background-color:#666666; cursor:default; }
.submenu {position:absolute; top:-1000px; cursor:default; background-color:#FFFFFF; }
</style>
</head>
<body style="overflow: hidden">
<div>
<?PHP
$user_name = "nope";
$password = "doublenope";
$database = "triplenope";
$server = "127.0.0.1";
$id = $_GET["id"];
$db_handle = mysql_connect($server, $user_name, $password);
$db_found = mysql_select_db($database, $db_handle);
if ($db_found) {
$SQL = "UPDATE item SET kpl = kpl + 1 WHERE itemid = ('$id');";
$result = mysql_query($SQL);
while ($db_field = mysql_fetch_assoc($result)) {
}
mysql_close($db_handle);
}
else {
print "Database NOT Found ";
mysql_close($db_handle);
}
?>
</div>
</body>
</html>
[/code]
[editline]25th November 2011[/editline]
Now I just need to figure out how to get it to another page after it's done.
I know I can use echo "<script>window.location etc. bullshit but my brain's freezing right now and I just manage to break the page.[/QUOTE]
I'd highly recommend using PDO as your current code can be SQL injected.
[QUOTE=johan svensk;33430190]Just ordered this:
[url]http://cdon.se/hemelektronik/logitech_g35_gaming_headset-7039290[/url][/QUOTE]
Bought them from Komplett a month ago. Very pleased with them. Great audio and comfort
Remember to download the new drivers from Logitech instead of those from the CD though, The new ones are better
Great price too
[QUOTE=AzzyMaster;33430200]I'd highly recommend using PDO as your current code can be SQL injected.[/QUOTE]
That was literally the first thing I thought of when I was coding it.
Problem 1: It's going to be used internally on a very small network that you can't access from the Internet
2: None of users would want to do something like that
3: I hardcoded the fucking login credentials into the login manager so you just have to click login, so security isn't a big concern to start with
4: Nobody gives a shit at the business, they just want it to work
"LOGITECH G35 [B]Gaming[/B] Headset"
Yeah...
[QUOTE=1solidsnake2;33430143]Try the audio captcha, might work better.[/QUOTE]
Was able to go through captcha but now it wants to send an email to another email (No idea who is the owner of it, as I did not originallly make the user myself, my sister did) or a access from a Trusted PC, what I haven't set up.
Shit, I think I have to remember it somehow.
The PW is saved in my PC and also in my phone, in MSN Mercury.
Edit: Managed to reset the PW.
What the fuck is wrong with my PC. I restarted a few times and now I have randomly got 135GB free. I had 30GB free a few hours ago. And I did nothing.
[QUOTE=nikomo;33430220]That was literally the first thing I thought of when I was coding it.
Problem 1: It's going to be used internally on a very small network that you can't access from the Internet
2: None of users would want to do something like that
3: I hardcoded the fucking login credentials into the login manager so you just have to click login, so security isn't a big concern to start with
4: Nobody gives a shit at the business, they just want it to work[/QUOTE]
At least use mysql_real_escape_string so people can't break it by accident.
[QUOTE=BreenIsALie;33430206]Bought them from Komplett a month ago. Very pleased with them. Great audio and comfort
Remember to download the new drivers from Logitech instead of those from the CD though, The new ones are better[/QUOTE]
Of course, what do you think of me? :v:
[QUOTE=johan svensk;33430276]Of course, what do you think of me? :v:[/QUOTE]
Can't recollect seeing you around, So nothing really :v:
[QUOTE=AzzyMaster;33430273]At least use mysql_real_escape_string so people can't break it by accident.[/QUOTE]
If I remember, I'll do that on Monday.
I just accidently deleted BF3 after I just bought it.
[IMG]http://puu.sh/9iHM[/IMG]
All the kids in my College Writing class bring in their brand new Macbooks and Asus laptops to show off their huge e-peen in class so last Monday I decided to be a total bastard. I have a 1998 Compaq Armada laptop with Windows 98 running on it and I lugged the 12-pound thing to school along with 15 or so floppy disks. During class, when people were getting their rough drafts for their essays out on their laptops (or paper, some don't have/bring laptops), I pulled out my Compaq and sprawled out all the floppy disks on my desk.
Then during class, whenever we'd switch to something new, I'd switch floppy disks and you could hear the whirring of the drive from across the room. Completely worth it.
I'm thinking about what I shall buy this year. Christmas/birthday (Jan 1) + own money.
I know I will buy Ivy but don't really know what else. Thinking about trying a full watercooling loop, haven't really had anything with watercooling expect for those CPU coolers.
There is basically nothing else than watercooling that I don't have.
[QUOTE=FFStudios;33430675]All the kids in my College Writing class bring in their brand new Macbooks and Asus laptops to show off their huge e-peen in class so last Monday I decided to be a total bastard. I have a 1998 Compaq Armada laptop with Windows 98 running on it and I lugged the 12-pound thing to school along with 15 or so floppy disks. During class, when people were getting their rough drafts for their essays out on their laptops (or paper, some don't have/bring laptops), I pulled out my Compaq and sprawled out all the floppy disks on my desk.
Then during class, whenever we'd switch to something new, I'd switch floppy disks and you could hear the whirring of the drive from across the room. Completely worth it.[/QUOTE]
I had the Armada E500, god I loved that old thing!
I sold it in the end and bought a motorbike.
It still runs really really well; I have a little Ethernet to USB adapter for it with the drivers so I can e-mail myself the documents after I type them on the laptop. It's got a CD drive and a whopping 1GB hard drive. Feels good. Can run Doom.
[QUOTE=FFStudios;33430782]It still runs really really well; I have a little Ethernet to USB adapter for it with the drivers so I can e-mail myself the documents after I type them on the laptop. It's got a CD drive and a whopping 1GB hard drive. Feels good. Can run Doom.[/QUOTE]
you sir are a winner.
[QUOTE=FFStudios;33430782]It still runs really really well; I have a little Ethernet to USB adapter for it with the drivers so I can e-mail myself the documents after I type them on the laptop. It's got a CD drive and a whopping 1GB hard drive. Feels good. Can run Doom.[/QUOTE]
I barely had HL1 running on mine at 800x600, damn, now I want another one!
[editline]25th November 2011[/editline]
If I remember rightly it has a PCMCIA slot, I would grab an ethernet card for that, less to dangle out the side.
[editline]25th November 2011[/editline]
Yay, I just got an ISA Ethernet card for my IBM for £5.
It's gonna make one sexy linux terminal / text only web browser.
Garry now has to add a DOS OS icon for Facepunch :v:
[QUOTE=Fatal-Error;33431007]I barely had HL1 running on mine at 800x600, damn, now I want another one!
[editline]25th November 2011[/editline]
If I remember rightly it has a PCMCIA slot, I would grab an ethernet card for that, less to dangle out the side.[/QUOTE]
I dunno if we had the same one, but mine has two PCMCIA slots. Mine's a 1505DM. Dunno if that's a big upgrade/downgrade from the one you had.
Dell is content: [url]http://www.pcpro.co.uk/blogs/2011/11/23/dells-unhelpful-graphics-card-buying-advice/[/url]
here's a picture of it booting into DOS mode as opposed to Windows:
[img]http://a2.sphotos.ak.fbcdn.net/hphotos-ak-snc6/262607_1875296678310_1117998775_31794182_5873176_n.jpg[/img]
[editline]25th November 2011[/editline]
Pentium 2 MMX for life.
[QUOTE=FFStudios;33431128]I dunno if we had the same one, but mine has two PCMCIA slots. Mine's a 1505DM. Dunno if that's a big upgrade/downgrade from the one you had.[/QUOTE]
It's a downgrade, mine had a Pentium III @ 900Mhz.
[IMG]http://www.laptopid.ee/pildid/ArmadaE500_0.jpg[/IMG]
Sorry, you need to Log In to post a reply to this thread.