<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel rdf:about="http://permalink.gmane.org/gmane.comp.php.general">
    <title>gmane.comp.php.general</title>
    <link>http://permalink.gmane.org/gmane.comp.php.general</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.php.general/229460"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.php.general/229459"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.php.general/229458"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.php.general/229457"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.php.general/229456"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.php.general/229455"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.php.general/229454"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.php.general/229453"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.php.general/229452"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.php.general/229451"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.php.general/229450"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.php.general/229449"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.php.general/229448"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.php.general/229447"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.php.general/229446"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.php.general/229445"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.php.general/229444"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.php.general/229443"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.php.general/229442"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.php.general/229441"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.php.general/229460">
    <title>Re: Hoping nobody notices it isn't Friday.</title>
    <link>http://permalink.gmane.org/gmane.comp.php.general/229460</link>
    <description>&lt;pre&gt;
    I'd say that I'd make an exception, but since it appears to only
be available for you Redcoats, I'll remind you that today is Tuesday,
and admonish you for making the week feel that much longer for all of
us.

&lt;/pre&gt;</description>
    <dc:creator>Daniel Brown</dc:creator>
    <dc:date>2013-06-18T17:52:19</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.php.general/229459">
    <title>Hoping nobody notices it isn't Friday.</title>
    <link>http://permalink.gmane.org/gmane.comp.php.general/229459</link>
    <description>&lt;pre&gt;Hi.

We've all been told that 'free software' is to be thought of as 'free
speech', not 'free beer'.

Well, I hope to muddy the waters with this link.

https://www.facebook.com/TheFreeBeerApp

Enjoy!

Richard.

P.S. It's Friday!

&lt;/pre&gt;</description>
    <dc:creator>Richard Quadling</dc:creator>
    <dc:date>2013-06-18T17:36:38</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.php.general/229458">
    <title>Austin Caudill</title>
    <link>http://permalink.gmane.org/gmane.comp.php.general/229458</link>
    <description>&lt;pre&gt; http://www.fashionmarkets.ru/xp/svp/cjnr/fmzs/hymsed/vxep.html
  Austin Caudill
 suyoy/div&amp;gt;&lt;/pre&gt;</description>
    <dc:creator>Austin Caudill</dc:creator>
    <dc:date>2013-06-17T18:21:41</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.php.general/229457">
    <title>Re: newbie PDO query display question</title>
    <link>http://permalink.gmane.org/gmane.comp.php.general/229457</link>
    <description>&lt;pre&gt;
returned. In this case,
echo $results[0]["First"];
echo $results[0]["Last];
echo $results[0]["id"];

will do what you want.

&amp;lt;snip&amp;gt;
&lt;/pre&gt;</description>
    <dc:creator>jomali</dc:creator>
    <dc:date>2013-06-17T15:00:55</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.php.general/229456">
    <title>Re: newbie PDO query display question</title>
    <link>http://permalink.gmane.org/gmane.comp.php.general/229456</link>
    <description>&lt;pre&gt;
Thanks very much for your help Stephen - I will try this asap!




--
Thanks,
Dave - DealTek
dealtek&amp;lt; at &amp;gt;gmail.com
[db-3]

&lt;/pre&gt;</description>
    <dc:creator>dealTek</dc:creator>
    <dc:date>2013-06-17T03:14:52</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.php.general/229455">
    <title>Re: newbie PDO query display question</title>
    <link>http://permalink.gmane.org/gmane.comp.php.general/229455</link>
    <description>&lt;pre&gt;

dealTek &amp;lt;dealtek&amp;lt; at &amp;gt;gmail.com&amp;gt; wrote:


Have you tried chaining the the fetch() method on as in:

$pdo_object-&amp;gt;query()-&amp;gt;fetch();
Thanks,
Ash

&lt;/pre&gt;</description>
    <dc:creator>Ashley Sheridan</dc:creator>
    <dc:date>2013-06-17T00:59:30</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.php.general/229454">
    <title>Re: newbie PDO query display question</title>
    <link>http://permalink.gmane.org/gmane.comp.php.general/229454</link>
    <description>&lt;pre&gt;
On Jun 16, 2013, at 3:37 PM, Stephen &amp;lt;stephen-d&amp;lt; at &amp;gt;rogers.com&amp;gt; wrote:



Thanks Stephen,

Nice code!

you mentioned ... - to avoid your code assuming that you will just get one record back

But what about the case where you are deliberately just showing one record as in ---- FIND ONE PERSON like---- where ID = 101 ?

do you still need to loop through when you just selected/displayed 1 ITEM? 

Q: How do I display the columns without a loop in this 1 record case...?


these fail - so what will work?

echo $results["First"];
echo $results["First"][0]; ???
echo $results["First"][1]; ???











--
Thanks,
Dave - DealTek
dealtek&amp;lt; at &amp;gt;gmail.com
[db-3]

&lt;/pre&gt;</description>
    <dc:creator>dealTek</dc:creator>
    <dc:date>2013-06-17T00:43:40</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.php.general/229453">
    <title>Re: LightBox click detection</title>
    <link>http://permalink.gmane.org/gmane.comp.php.general/229453</link>
    <description>&lt;pre&gt;
If you're using Google Analytics, you can use click tracking:

&amp;lt;https://developers.google.com/analytics/devguides/collection/gajs/eventTrackerGuide&amp;gt;

I recently setup click tracking on lightbox open, close and various
other modal window bits/pieces for a metered pay wall system.

For example, within the lightbox/modal window "open" method:

[code]

// Track this lightbox instance:
window._gaq.push([
    '_trackEvent',                      // Method.
    'Paymeter Lightbox',                // Group.
    'Lightbox OPEN group ' + count_txt, // Append count to "action" text.
    count_txt + ' OPEN event'           // Prepend count to "label" text.
]);

[/code]

The advantage to using a common tool like analytics is that it's got a
ton of powerful ways to analyze the data.

Not sure the goal of your project, but I thought I would mention.

Cheers,
M

&lt;/pre&gt;</description>
    <dc:creator>Micky Hulse</dc:creator>
    <dc:date>2013-06-16T22:48:37</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.php.general/229452">
    <title>newbie PDO query display question</title>
    <link>http://permalink.gmane.org/gmane.comp.php.general/229452</link>
    <description>&lt;pre&gt;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-&amp;gt;fetchAll(PDO::FETCH_ASSOC);

---

so my query is like...

$results = $db-&amp;gt;select("mytable", "id = 201"); //just 1 exact record)

then I can loop like......
foreach ($results as $result) {
   .... 
?&amp;gt;

  &amp;lt;tr&amp;gt;
    &amp;lt;td&amp;gt;&amp;lt;?php echo $result["First"]; ?&amp;gt;&amp;lt;/td&amp;gt;
    &amp;lt;td&amp;gt;&amp;lt;?php echo $result["Last"]; ?&amp;gt;&amp;lt;/td&amp;gt;
    &amp;lt;td&amp;gt;&amp;lt;?php echo $result["id"]; ?&amp;gt;&amp;lt;/td&amp;gt;

  &amp;lt;/tr&amp;gt;

This all works fine.....

---&amp;gt; But since I only have 1 exact record - I don't need to LOOP anything - so...

Q: How do I display the columns without a loop


these fail - so what will work

echo $results["First"];
echo $results["First"][0]; ???
echo $results["First"][1]; ???





--
Thanks,
Dave
rev&amp;lt; at &amp;gt;musenet.com
[db-3]




--
Thanks,
Dave - DealTek
dealtek&amp;lt; at &amp;gt;gmail.com
[db-3]

&lt;/pre&gt;</description>
    <dc:creator>dealTek</dc:creator>
    <dc:date>2013-06-16T22:29:41</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.php.general/229451">
    <title>Re: LightBox click detection</title>
    <link>http://permalink.gmane.org/gmane.comp.php.general/229451</link>
    <description>&lt;pre&gt;Sorry 'bout the top post.

That's how I do it. Capture the click event with jquery and Ajax that back to the server

Bastien Koert

On 2013-06-15, at 2:07 PM, Tamara Temple &amp;lt;tamouse.lists&amp;lt; at &amp;gt;gmail.com&amp;gt; wrote:


&lt;/pre&gt;</description>
    <dc:creator>Bastien</dc:creator>
    <dc:date>2013-06-15T18:23:07</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.php.general/229450">
    <title>Re: LightBox click detection</title>
    <link>http://permalink.gmane.org/gmane.comp.php.general/229450</link>
    <description>&lt;pre&gt;They do, afaik...

Am 15.06.2013, 20:11 Uhr, schrieb Tamara Temple &amp;lt;tamouse.lists&amp;lt; at &amp;gt;gmail.com&amp;gt;:


&lt;/pre&gt;</description>
    <dc:creator>Julian Wanke</dc:creator>
    <dc:date>2013-06-15T18:14:25</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.php.general/229449">
    <title>Re: LightBox click detection</title>
    <link>http://permalink.gmane.org/gmane.comp.php.general/229449</link>
    <description>&lt;pre&gt;
Do javascript DOM events stack? If they do, this is definitely the
simplest way to go. If they don't, you need to capture the previous
click handler and call it.



&lt;/pre&gt;</description>
    <dc:creator>Tamara Temple</dc:creator>
    <dc:date>2013-06-15T18:11:51</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.php.general/229448">
    <title>Re: LightBox click detection</title>
    <link>http://permalink.gmane.org/gmane.comp.php.general/229448</link>
    <description>&lt;pre&gt;
W00T! Friday!


First off, do you have the javascript code available in an unsquished
form? That would mean I could read it.

Not knowing whether your JS code or Lightbox has any hooks that you can
take advantage of, I'd steal the onclick event from those images that
start lightbox, fire off an AJAX request and ignore the return, then
fire the lightbox event handler.

&lt;/pre&gt;</description>
    <dc:creator>Tamara Temple</dc:creator>
    <dc:date>2013-06-15T18:07:43</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.php.general/229447">
    <title>Re: AW: AW: PHP is Zero</title>
    <link>http://permalink.gmane.org/gmane.comp.php.general/229447</link>
    <description>&lt;pre&gt;
If you've been using PHP since 2000, you probably well know all the
rants there are about how terrible PHP is as a language; this is one of
the big ones people always mention.

An analog to your statement above is "This screwdriver is absolute
*bollux* at pounding in nails! Maybe we should change that!?". (In point
of fact, PHP can be seen as a screwdriver that is *astoundingly* capable
of pounding in nails, so the analogy is in kind only, not in fact. In
real fact, PHP is a programmer's wealthy toolkit; not complete by any
means, but tools that will work for most things, *when you know how to
use them*.)

I don't know the reasons why; it's moot to me. The designers of PHP
chose to go that route, it's up to me as a developer to know how the
language works. If I'm insufficiently able to use it without throwing
errors, or without realizing my code is throwing errors, perhaps it
isn't the language's fault, but mine to learn to adapt to it's
quirks. If I am sufficiently fed up with having to adapt to it's quirk&lt;/pre&gt;</description>
    <dc:creator>Tamara Temple</dc:creator>
    <dc:date>2013-06-15T14:46:44</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.php.general/229446">
    <title>Re: Detect and Redirect Mobile Users</title>
    <link>http://permalink.gmane.org/gmane.comp.php.general/229446</link>
    <description>&lt;pre&gt;
Mike's remarks below notwithstanding, I think something fell off here.


Tell us how you really feel, Mike. :))


The only time I'd be looking at whether content of $somearray['somekey']
== TRUE is when it's possible that it may contain something other than
TRUE or FALSE, and somehow my code *cares* whether it does. In this
case, we do not, your rant holds.


This is most egregious.


This would even be a case where I'd opt for:

    $isMobile = &amp;lt; at &amp;gt;$browser['ismobiledevice'];

since if it *isn't* set, it's still falsy, with the rather strong caveat
of don't use &amp;lt; at &amp;gt; indiscriminantly.


Cheers!

&lt;/pre&gt;</description>
    <dc:creator>Tamara Temple</dc:creator>
    <dc:date>2013-06-15T14:19:16</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.php.general/229445">
    <title>RE: Detect and Redirect Mobile Users</title>
    <link>http://permalink.gmane.org/gmane.comp.php.general/229445</link>
    <description>&lt;pre&gt;
Argh!, Argh!, Argh! -- two of my pet hates in one snippet!

Comparing something ==TRUE is almost always unnecessary, and absolutely always when it's used as an element of a Boolean expression: if x evaluates to TRUE, x==TRUE is also TRUE, and if it evaluates to FALSE x==TRUE is also FALSE, so the comparison is unnecessary, redundant and wasteful. Just use x.

And why use an if test on a Boolean value to see if it's TRUE or FALSE, just so you can assign TRUE or FALSE?? Since the thing you're testing has the value you want in the first place, just flipping assign it!

  $isMobile = isset($browser['ismobiledevice']) &amp;amp;&amp;amp; $browser['ismobiledevice'];

&amp;lt;/rant&amp;gt;

Cheers!

Mike

&lt;/pre&gt;</description>
    <dc:creator>Ford, Mike</dc:creator>
    <dc:date>2013-06-14T16:13:20</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.php.general/229444">
    <title>Re: LightBox click detection</title>
    <link>http://permalink.gmane.org/gmane.comp.php.general/229444</link>
    <description>&lt;pre&gt;Also, the docs and functionality for that particular plugin seem a bit
weak.  Maybe there's another one that has a "doneLoadingLightbox"
event that you could hook into and call your ajax script inside of...


On 14 June 2013 10:02, Marc Guay &amp;lt;marc.guay&amp;lt; at &amp;gt;gmail.com&amp;gt; wrote:

&lt;/pre&gt;</description>
    <dc:creator>Marc Guay</dc:creator>
    <dc:date>2013-06-14T15:03:55</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.php.general/229443">
    <title>Re: LightBox click detection</title>
    <link>http://permalink.gmane.org/gmane.comp.php.general/229443</link>
    <description>&lt;pre&gt;$('.lightbox-image-class').click(function(){
    $.post('ajax.php', {click: true});
});

and do your DB work in ajax.php

http://api.jquery.com/jQuery.post/

On 14 June 2013 09:52, Tedd Sperling &amp;lt;tedd&amp;lt; at &amp;gt;sperling.com&amp;gt; wrote:

&lt;/pre&gt;</description>
    <dc:creator>Marc Guay</dc:creator>
    <dc:date>2013-06-14T15:02:50</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.php.general/229442">
    <title>LightBox click detection</title>
    <link>http://permalink.gmane.org/gmane.comp.php.general/229442</link>
    <description>&lt;pre&gt;Hi gang:

It's Friday so I am allowed to ask odd questions.

Here's the problem --  I need to count the number of times a user activates a LightBox -- how do you do that?

Here's a LightBox Example:

   http://www.webbytedd.com/c2/lightbox/

All the javascript is there (jQuery et al).

Ideally, I would like to have a php/javascript combination that would:

1. Detect when a user clicked the LightBox;
2. Pass that value to PHP so I can keep count.

Any ideas?

Cheers,

tedd

_____________________
tedd&amp;lt; at &amp;gt;sperling.com
http://sperling.com
&lt;/pre&gt;</description>
    <dc:creator>Tedd Sperling</dc:creator>
    <dc:date>2013-06-14T14:52:53</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.php.general/229441">
    <title>Re: Detect and Redirect Mobile Users</title>
    <link>http://permalink.gmane.org/gmane.comp.php.general/229441</link>
    <description>&lt;pre&gt;http://www.answershat.com/questions/352/How-to-get-rid-of-spam-mail-in-my-mailbox

On 14 June 2013 09:28, Chirag Vekariya &amp;lt;chirag.vekariya212&amp;lt; at &amp;gt;gmail.com&amp;gt; wrote:

&lt;/pre&gt;</description>
    <dc:creator>Marc Guay</dc:creator>
    <dc:date>2013-06-14T14:35:11</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.php.general/229440">
    <title>Re: Detect and Redirect Mobile Users</title>
    <link>http://permalink.gmane.org/gmane.comp.php.general/229440</link>
    <description>&lt;pre&gt;Hi,
Post your question to http://answershat.com

On Thu, Jun 13, 2013 at 4:49 AM, dealTek &amp;lt;dealtek&amp;lt; at &amp;gt;gmail.com&amp;gt; wrote:



&lt;/pre&gt;</description>
    <dc:creator>Chirag Vekariya</dc:creator>
    <dc:date>2013-06-14T14:28:42</dc:date>
  </item>
  <textinput rdf:about="http://search.gmane.org/?group=$group=gmane.comp.php.general">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.comp.php.general</link>
  </textinput>
</rdf:RDF>
