Boolean Island !

Archive for July 2008

Book Review – I

Posted by: ranacse05 on: July 27, 2008

Few days ago I got “Learning Facebook Application Development” from packt publication. This is an awesome book if you want to develop Facebook Application using PHP and MySQL
If you are new in PHP and MySQL you also can use this book. From the beginning to the end this book covers every ting. There are some [...]

Get the Row Number in PDO

Posted by: ranacse05 on: July 8, 2008

I was working on PHP Data Object (PDO) . But i saw that PDOstatement::rowCount()  does not return row number for mysql when u use the SELECT command . Then i found this function to get the row number after a SELECT query .
<?
function getRowCount($sql)
{
$sql = trim($sql);
$sql = preg_replace(‘~^SELECT\s.*\sFROM~s’, ‘SELECT COUNT(*) FROM’,
$sql);
$sql = preg_replace(‘~ORDER\s+BY.*?$~sD’, ”, $sql);
$stmt [...]


My blog worth


My site is worth $3431.
How much is yours worth?

My Twittes

FireFox

Firefox 3

My Facebook

this is Raquibul's profile

View Raquibul Islam's profile on LinkedIn

My fav

 

July 2008
S M T W T F S
« Jun   Aug »
 12345
6789101112
13141516171819
20212223242526
2728293031  

Flickr Photos

Moon !

Moon !

Leevio

Leevio

Leevio

Tea !

History

me

More Photos

My Bookmarks

Dynamic Malloc

Blog Stats

  • 46,705 hits