php-general Digest 16 Jun 2013 22:29:48 -0000 Issue 8267

2013-06-16 Thread php-general-digest-help
php-general Digest 16 Jun 2013 22:29:48 - Issue 8267 Topics (messages 321410 through 321415): Re: PHP is Zero 321410 by: Tamara Temple Re: LightBox click detection 321411 by: Tamara Temple 321412 by: Tamara Temple 321413 by: Julian Wanke 321414 by:

[PHP] newbie PDO query display question

2013-06-16 Thread dealTek
Hi all, newbie PDO question... I think (hard to tell - buried in a wrapper class) I am doing a select query using - PDO::FETCH_ASSOC like... wrapper -- return $pdostmt-fetchAll(PDO::FETCH_ASSOC); --- so my query is like... $results = $db-select(mytable, id = 201); //just 1 exact

Re: [PHP] LightBox click detection

2013-06-16 Thread Micky Hulse
On Fri, Jun 14, 2013 at 8:52 AM, Tedd Sperling t...@sperling.com wrote: Here's the problem -- I need to count the number of times a user activates a LightBox -- how do you do that? If you're using Google Analytics, you can use click tracking:

Re: [PHP] newbie PDO query display question

2013-06-16 Thread dealTek
On Jun 16, 2013, at 3:37 PM, Stephen stephe...@rogers.com wrote: Here is a sample from my code: $photo_category_list = ; $SQL = SELECT category_id, category_name FROM gallery_category ORDER by category_order; try { $stmt = $dbh-prepare($SQL); $stmt-execute();

Re: [PHP] newbie PDO query display question

2013-06-16 Thread Ashley Sheridan
dealTek deal...@gmail.com wrote: On Jun 16, 2013, at 3:37 PM, Stephen stephe...@rogers.com wrote: Here is a sample from my code: $photo_category_list = ; $SQL = SELECT category_id, category_name FROM gallery_category ORDER by category_order; try { $stmt =

Re: [PHP] newbie PDO query display question

2013-06-16 Thread dealTek
When you know there is only one row to be returned you can do this: $photo_category_list = ; $SQL = SELECT category_id, category_name FROM gallery_category ORDER by category_order; try { $stmt = $dbh-prepare($SQL); $stmt-execute(); list( $id, $name) =