Dragging an old PHP program into the 21st Century!

Ever wish you’d never been lumbered with something :frowning:

Fatal error : Uncaught Error: Call to undefined function pdo_num_rows() in /var/www/vhosts/***/***/sign/index.php:52 Stack trace: #0 {main} thrown in.

Line 52 = $status_tot = pdo_num_rows($status);

I’m starting to think this is a lost cause

As this is no core function of PHP i wonder that ever worked. Function definition hasn’t changed that much over PHP versions.

I recommend that you re-read the replies in this thread and think about what is being accomplished by the suggested conversion code. You have a set of mysql_ functions that no longer exist. Someone posted the simplest possible working, secure, way of replacing them that will result in a minimum of changes to the existing code. The definition of this function was given in the same reply where the pdo_query() user written function definition was given and in the same reply where the PDO connection code was given.

Sponsor our Newsletter | Privacy Policy | Terms of Service