WmZilla - Webmaster and Marketplace

The Next Generation Webmaster and Trade Forum

Translate the MySQL command to PDO - URGENT HELP

hasteL

New member

0

0%

Status

Offline

Posts

33

Likes

0

Rep

0

Bits

175

3

Months of Service

0%
How can I convert this area to PDO format? $sql = "SELECT * FROM post ORDER BY id DESC"; if( mysql_num_rows(mysql_query($sql)) > ($page * $limit) ){ $next = ++$page; } $query = mysql_query( $sql . " LIMIT {$start}, {$limit}"); if (mysql_num_rows($query) header('HTTP/1.0 404 Not Found'); echo 'Page not found!'; exit(); }
 

249

6,622

6,642

Top