Archive for December, 2008

PHP MySQL Connect to a Database

December 28, 2008

Create a Connection to a MySQL Database

Before you can access data in a database, you must create a connection to the database.

In PHP, this is done with the mysql_connect() function.

Syntax

mysql_connect(servername,username,password);

Example

In the following example we store the connection in a variable ($con) for later use in the script. The “die” part will be executed if the connection fails:

<?php
$con = mysql_connect("localhost","peter","abc123");
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }
// some code
?>

Closing a Connection

The connection will be closed automatically when the script ends. To close the connection before, use the mysql_close() function:

<?php
$con = mysql_connect("localhost","peter","abc123");
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }
// some code
mysql_close($con);
?>

Friendster Hacking Method

December 28, 2008

The previous post about hacking friendster are not working anymore.I,ll update it very soon.

Microsoft Windows XP SP3 Blacklizard’s Edition v2 reloaded

December 28, 2008

I will be releasing the reloaded edition of this XP soon..

New updated consist of major driver update, post SP3 update until December 2008, included SATA drivers(major;Intel), essential appz and fully customized Windows UI(part of windows 7)

So wait for the release..