Posts

Simple Calculator in Java

Image
Here's the screenshot below: It can only perform one operation at a time. import java.lang.*; import java.awt.*; import java.awt.event.*; public class calculator extends Frame implements ActionListener { Button btn1 = new Button("1"); Button btn2 = new Button("2"); Button btn3 = new Button("3"); Button plus = new Button("+"); Button btn4 = new Button("4"); Button btn5 = new Button("5"); Button btn6 = new Button("6"); Button minus = new Button("-"); Button btn7 = new Button("7"); Button btn8 = new Button("8"); Button btn9 = new Button("9"); Button times = new Button("*"); Button btn_clr = new Button("C"); Button btn0 = new Button("0"); Button divide = new Button("/"); Button ekwals = new Button("="); TextField txt = new Text...

Show Search Results in a Pop-up Div

Image
It uses MySQL as the database. Basically, the search results will pop up. Here's the code below:

Can't get enough of Attack on Titans?

Image
JAPAN!!! Levi's driving it!! LOL SOURCE

Load MySQL Data using JQuery

Image
Of course, you won't be redirected to another page to see the result. That's the best thing about JQuery , although AJAX can also do it. Anyway, here's the code snippet for the user's side.. <input id="datepicker" maxlength="20" type="text" /> <div id="refresh_img">Select Date to Load images..</div> <script type="text/javascript"> $(document).ready(function(){ $('#datepicker').change(function(){ var variable = document.getElementById('datepicker').value; $('#refresh_img').load('query/getprojimg.php',{"variable": variable}).fadeIn("slow"); }); }); </script> And for the server side.

Love Of My Life

Image
I got bored, t'was brownout and with just a candle on the table. Here it goes... I love sad songs, makes me think that I'm not the saddest person on Earth but the one who wrote it. I love romantic movies, 'cause I may learn from it. I love cute people, who doesn't? I love shades of black. I'm neutral, just a little bit of anything, that's me. I love writing, especially when I don't need to use my brain. I love thinking right before I sleep. I also love sleeping. The idea of closing our eyes and possibly travel anywhere is just great. I love girls. Once, twice, thrice...is too much. I don't invest my feelings that much. It's like my defense mechanism. I love talking, not in public but to the people who listens and responds. and lastly You, whoever you are. hahahaha! :D

Simple Log-in/Logout and Registration with Session and Blowfish Encryption

Image
This simple login and logout PHP script uses Blowfish Encryption for its password security here's the screenshot: Download Source Code Database Name: dblogin

Create A Simple Timestamp in PHP, MySQL

Image
Well, here's the screenshot 'coz I'm too lazy to explain it. Here's the code for reference: index.php <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Time Ago</title> <style> #stamp{ background-color:#CCCCCC; } </style> </head> <body> <p>Create a Database by clicking the button below then sign-up the form.</p> <form method="post" id="createdb" action="createdbandtables.php"> <input type="submit" class="submitdb" value="Create DB" /><br/> </form> <form action="reguser.php" method="post" name="userreg"> <table...