PHP Classes

links gone

Recommend this page to a friend!

      Generic Pager  >  All threads  >  links gone  >  (Un) Subscribe thread alerts  
Subject:links gone
Summary:after changing db values, links gone
Messages:2
Author:Brad Traversy
Date:2012-06-24 20:24:52
Update:2012-06-24 20:52:18
 

  1. links gone   Reply   Report abuse  
Picture of Brad Traversy Brad Traversy - 2012-06-24 20:24:52
I downloaded your new files. I just changed it to work with my db but when I do, the bottom links vanish. Here is EXACTLY WHAT I CHANGED

line 7 PDO connect - changed dbname
$dbh = new PDO('mysql:host=localhost;dbname=test', 'root', '');

line9 sql count - changed table name from "data" to "users"
$countStmt = 'SELECT count(*) as cnt FROM users';

line22 page statement - changed fields
$pageStmt = 'SELECT first_name, last_name, email, phone FROM users LIMIT '

Database and tables are in tact

Any ideas? is there something else I should change?

thanks for your help

  2. Re: links gone   Reply   Report abuse  
Picture of Mark Rolich Mark Rolich - 2012-06-24 20:52:18 - In reply to message 1 from Brad Traversy
I can't replicate the problem you described.
Could you print $totalCount value (line 15)?