July 4, 2013
Hi all, Why do we do password salting/hashing? Just because we need our admin or user panel be protected even if you break into the database you cant find it, even with md5 decoder it won’t work . Now am going to do this with md5() function in php, when a user registers i mix […]
June 22, 2013
Hi all, Last time, a friend of mine needed me to remove his Avira Antivirus from his system, now on Uninstalling it, i got a bad alert that the system will restart, i tried it the second time after restarting, but still the same thing…..Now i decided to enter the safe mode, thinking i’ll use […]
June 20, 2013
Hi all, Now introducing an Android Suite for PC Moborobo Moborobo is an Android Suite for PC just like Nokia PC Suite for Nokia for managing your Android in PC Features:Transfer Contacts Between Android & iPhoneMoborobo is one of the first cross platform software that supports transfer of contacts of both the Android and iOS […]
June 19, 2013
free download typing tutor Mavis Beacon Teaches Typing V. 20 full version is one of the best typing tutor of the world. The most comprehensive typing instruction system now includes updated learning tools, an improved user interface and even more features to guarantee typing improvements in just 2 weeks. Whether you want to learn essential […]
June 19, 2013
Hi all, As we all know Whatsapp is not available for PC but it will if we use emulator, using Java Emulator can’t suite coz Whatsapp java app is more secured and varies from phone to phone, now using Android Emulator gonna work! Using the Youwave Android Emulator PROCEDURES ON INSTALLING AND RUNNING WHATSAPP ON […]
June 16, 2013
Hi all, Am dropping this coz some are having problem with it, all procedures on how to do it is in the code, read well and edit well! 🙂
|
<?php <br /> //connect to your database, fillup the database details <br /> $dbhost = "";// Your database hostname <br /> $dbuser = "";// your database username <br /> $dbname = "";//Your database name <br /> $dbpwd = "";//Your database password, leave empty if your database don't have password <br /> $connect = mysql_connect($dbhost,$dbuser,$dbpwd); <br /> if(!$connect) <br /> { <br /> die('Could not connect to database due to the following reasons: '.mysql_error()); <br /> } <br /> mysql_select_db($dbname); <br /> ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <br /> <html xmlns="http://www.w3.org/1999/xhtml"> <br /> <head> <br /> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <br /> <title>Untitled Document</title> <br /> </head> <br /> <body> <br /> <?php <br /> //checking if comment has been made <br /> if(isset($_POST['comment'])) <br /> { <br /> $comment = mysql_real_escape_string(trim($_POST['comment'])); <br /> if(!$comment) <br /> { <br /> die('Enter Comment'); <br /> } <br /> /*inserting comment into database, with the following columns in the table <br /> *id = which the comment id which will auto increase when ever comment is made <br /> *topic_id = Every comment must have a topic it is commenting for, so that the topic id from another table you created, you can hold it with a session or hidden form <br /> *reply = this is the main body of the reply message <br /> *uid = It must be a user that should made the comment and so from your users table you get the id column and hold it with a session, cookie or hidden form <br /> *date = Surely, it must have a date*/ <br /> //now inserting into database, using example of topic id = 1 and <br /> $date = date('d/m/Y'); <br /> mysql_query("insert into comment(topic_id,reply,uid,date)values('1','$comment','1','$date')") or die('Could not insert comment into database due to the following reasons: '.mysql_error()); <br /> } <br /> //show comment for a particular topic, assumming the topic id is 1 and user id is also 1 <br /> $query = mysql_query("select * from comment where topic_id='1'"); <br /> if(!$query) <br /> { <br /> die(mysql_error()); <br /> } <br /> while($row = mysql_fetch_array($query)) <br /> { <br /> $topic_id = $row['topic_id']; <br /> $uid = $row['uid']; <br /> $reply = $row['reply']; <br /> $date = $row['date']; <br /> ?><a href="">user<?=$uid?></a>: <?=$reply?><br/><?=$date?><br/> <br /> <?php } <br /> ?> <br /> <form action="" method="post"> <br /> <textarea placeholder="Reply" name="comment"></textarea> <br /> <input type="submit" value="Comment" /> <br /> </form> <br /> Created by <a href="http://2netlodge.com">2netlodge</a> <br /> </body> <br /> </html> <br /> |
Hope it helps!
June 15, 2013
This method involves the use of an antivirus. So before we start the process… , make sure u delete any installed antivirus in your phone. After the this you can install it back. 1. Download the 2netlodge h*ck tools from the attached 2. After download, open the zip file with xplore, you will see 2 […]
June 15, 2013
Hi all, You need to get an image height and width in PHP? which normally use in passport or profile pictures…now try this code am going to give you.
|
<head> <br /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <br /> <title>PHP Get Image Dimensions</title> <br /> </head> <br /> <body> <br /> <?php <br /> list($width, $height) = getimagesize("images/banner.png"); <br /> echo "Width: " .$width." Height: " .$height; <br /> ?> <br /> </body> <br /> </html> <br /> |
Hope it works
June 14, 2013
The difference between cookies and sessions is that cookies are stored in the user’s browser, and sessions are not. This difference determines what each is best used for.A cookie can keep information in the user’s browser until deleted. If a person has a login and password, this can be set as a cookie in their […]
June 14, 2013
I jst got this trick lst nytNOW LETS STARTin your logout link put it lyk dz
|
<?php <br /> echo"<a href='logout.php?url=".$_SERVER[PHP_SELF]." '>Logout</a>"; <br /> ?> <br /> |
NOW IN UR logout.php
|
<?php <br /> //assigning $_GET to variable <br /> $url = $_GET[url]; <br /> //checkin if $_GET comes wit a link <br /> if(isset($url)) <br /> { <br /> session_destroy(); <br /> //afta destroyin d session, it redirects back to d link coming with $_GET <br /> header('location: '.$url.''); <br /> die(); <br /> } <br /> //if $_GET does not cum wit a link <br /> if(!$url) <br /> { <br /> session_destroy(); <br /> header('location: index.php'); <br /> die(); <br /> } <br /> ?> <br /> |