vendredi 31 juillet 2015

Binding Values Inside Pagination PDO

Hello I am using the Pagination Script of http://ift.tt/1GOP7GB

But have a problem with making it prepared statement and binding my values inside the PDO query.

Here is my code of it so far:

try
{
            $paginate = new pagination($page, 'SELECT * FROM database WHERE id_name LIKE :id_name ', $options);

}

Main question here is indeed how to bind the values inside it ?

Aucun commentaire:

Enregistrer un commentaire