PHP code for database connection and querry

PHP code for database connection and querry:

$link = mysql_connect("localhost", "root", "pass") or die("connection error");
mysql_select_db("database",$link);


Querry code:
$vec=mysql_query("SELECT * FROM PHOTOS");
for($i=0;$i"<"mysql_num_rows($vec);$i++)

(Take the "" out)
{
mysql_data_seek($vec,$i);
$a=mysql_fetch_row($vec);
echo"$a[0] $a[1] $a[2]";
}

Where $a[0] it's the first field in the querry result.



How to hack facebook accounts

Now that you have an account that you know is one of your victems friends and you have about 20 mutual friends. Add your victim and tell him or her that this is your new Facebook Account. There will be no reason for him/her to not beleive you and he/she will add you.

Now, since you are friends with the victim you will have 100 percent complete full access to their profile on facebook. You have access to school information, employment information, videos, private photo albums and anything else she’s added to the fb account.

This is a great way to get around using the traditional hacks that require some technical knowledge to using some basic psychological principles and social engineering.

Most of the time, you are not going to face any sort of challenge like that, but it is always best to know the potential consequences of any type of hacking endeavor. The smart hacker knows that despite knowing how to get someone’s Facebook password, they can only run from hired guns for so long when those folks have a lot more manpower and technology to track down those that ‘wronged’ a company as massive as Facebook. Just to see private Facebook pictures it may be worth it to you, and if so then you want to focus on the methods. Keyloggers are a prime choice if you have access to a computer the person uses to log into the site. You can install these easily enough and they will log the keystrokes of the person so you can see the password they type. That means you can then take that password and perform a natural login. However, be aware that these programs are not your only method. Plenty of people pretend to be someone else, talk to a person and manage to weasel their password, or at least enough hints to guess it, out of them.

You will learn how to make facebook pages safer and tricks such as view others private profiles. No matter what facebook does there always seems to be a way to view users profile pictures, albums and at times their entire private facebook profile pages. Make sure you bookmark this page, as many new bugs will be released, and we will find out how to view all of these exploits. Post these links to all who think facebook profiles are truly secure or private, or to those who are wary of its security.

If you have any questions or concerns about how to see a private facebook pages and profiles or have a different view point, feel free to comment on any of the pages. If you like this site and you want to continue to get useful information on facebook tips, tricks and hacks read how you can keep this site running or Advertise with Us.

A recent patch meant that older versions would no longer work, but after some hard work, research and investigation How to Hack Facebook Password we have finally managed to fix the patch. Our Hack Facebook Password tool is once again functional!
Many of you are probably wandering how come it's possible to hack facebook password with just using this software? Well, to make you fully understand the system how this application works you would probably need around few months first to learn the basics of programming. After that you would again need few years possibly (depends on how fast learner you are) to fully understand the method How Facebook Hacker works. But briefly, Facebook Hacker is researching trough facebook database where accounts passwords are stored, and depends on your victim's email and profile ID number/ username, it decrypts the passwords using the decryptor plugin built inside. Some passwords can be hacked in few seconds only, some can take few minutes, or rarely hours. This depends on how your victim's facebook password is made. Passwords which are hard to hack are made of letters (uppercase + lowercase), numbers and special characters (. , - ! etc.). Obviously, easy facebook passwords are made just of letters, and can be hacked very fast. The crazy is, almost everyone use this easy password! And then whine about someone hacked them. Until they learn how important is to have strong password to be secure, you have the power to hack their facebook account!

PHP Switch Statement

Php Switch statement is very useful, it works like if/else statement & reduce the complication of numerous conditions in the script.

Syntax :

switch (expression)
{
case 1
code .. //execute code if expression = 1
break;
case 2
code ... //execute code if expression = 2
break;
default:
code...//execute code if expression not matched
}
Example :


<?php

$value = 6;

switch ($value)

{

case 1:

echo "Value 1";

break;

case 2:

echo "Value 2";

break;

case 3:

echo "Value 3";

break;

default:

echo "Value is " . $value . " not matched!";

}

?>



DateFormat

The DateFormat function is another really useful function. This is most helpful when using a timestamp from a database. Generally, I use the 'datetime' format from MySQL and the 'smalldatetime' format when using MSSQL. The date is returned as '2007-01-01 00:00:00'. In PHP, the best way to use dates is the Unix timestamp. The Unix timestamp is the number of seconds since the Unix Epoch (January 1 1970 00:00:00 GMT). So right now, the time is '2007-12-16 11:46:56', using Unix, the timestamp the time is '1197823616' or 1197823616 seconds since midnight January 1 1970. This function will still use the date formating as defined in the php function date(). You can check it out at php.net. One little problem with this function is that you are required to send a full date through.

The Function:
<?php
function DateFormat($date,$format)
{
$adbit = explode(" ",$date);
$bdbit = explode("-",$adbit[0]);

if(count($adbit) > 1)
{
$cdbit = explode(":",$adbit[1]);
}
else
{
$cdbit = array();
$cdbit[0] = 0;
$cdbit[1] = 0;
$cdbit[2] = 0;
}
if(strtolower($format) == "short")
{
$dformat = "m/d/Y";
$tformat = "H:i a";
}
elseif(strtolower($format) == "medium")
{
$dformat = "M d, Y";
$tformat = "H:i:s a";
}
elseif(strtolower($format) == "long")
{
$dformat = "F d, Y";
$tformat = "H:i:s a e";
}
elseif(strtolower($format) == "full")
{
$dformat = "l F d, Y";
$tformat = "H:i:s a e";
}
if(isset($dformat) && isset($tformat))
{
$date = date($dformat,mktime($cdbit[0],$cdbit[1],$cdbit[2],$bdbit[1],$bdbit[2],$bdbit[0])) . " " . date($tformat,mktime($cdbit[0],$cdbit[1],$cdbit[2],$bdbit[1],$bdbit[2],$bdbit[0]));
}
else
{
$date = date($format,mktime($cdbit[0],$cdbit[1],$cdbit[2],$bdbit[1],$bdbit[2],$bdbit[0]));
}
return $date;
}
?>


Usage:

<?php
$date = "2007-05-19 13:51:22";
// You can use either
echo DateFormat($date,"F d, Y, g:i a");
// Or you can use
echo DateFormat($date,"long");

?>

The resulting output is: May 19, 2007 1:51 pm



Real Estate Script, Real Estate Software, PHP Script for Real Estate


Real Estate Script, Real Estate Software, PHP Script for Real Estate

Real Estate Script is a complete software solution allows you to launch a real estate website in php script with rich functionalities for real estate agents to list properties.
Real Estate Portal Script Enterprise Edition is a complete power packed script with tons of powerful features that will save your money, time and effort.

For more details contact us on ready2goportals@gmail.comVisit us at www.ready2goportals.com

Assignment#2

Start to build base on Assignment#1:
File created:
1) headerINC.php, Time spent: 20 mins
2) hNavINC.php, Time spent: 10 mins
3) navINC.php, Time spent: 10 mins
4) footerINC.php, Time spent: 15 mins
5) template2.css, Time spent: 10 mins

6) index.php, Time spent: 0 mins
7) email.php, Time spent: 45 mins

Project unfinish........ continue on next days.