<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Daily Counter and php 5.3"]]></title>
		<link>https://proxy2.de/forum/posts/list/3.php</link>
		<description><![CDATA[Latest messages posted in the topic "Daily Counter and php 5.3"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Daily Counter and php 5.3</title>
				<description><![CDATA[ Have been using your counter for years on many different websites. Just moved them to a new server and apparently mysql.class.php is not compatible with 5.3. <br /> <br /> I see you have it your Daily Counter working on your site. Are you using text files or do you have a fix for mysql.class.php.<br /> <br />  <img src="https://proxy2.de/forum//images/smilies/c30b4198e0907b23b8246bdd52aa1c3c.gif" /><br /> <br /> The total visitors seems to work fine, but daily ....<br /> It logs each visitor as "1" in the database and is not adding them<br /> and then fails to return a value for $visits['visits_today']<br /> <br /> thanx<br /> <br /> Actually looking at the code, the problem is in counter.class.php]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/7674/26251.php</guid>
				<link>https://proxy2.de/forum/posts/preList/7674/26251.php</link>
				<pubDate><![CDATA[Fri, 31 Aug 2012 23:53:51]]> GMT</pubDate>
				<author><![CDATA[ WeBBy]]></author>
			</item>
			<item>
				<title>Daily Counter and php 5.3</title>
				<description><![CDATA[ So have you fixed it?]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/7674/26257.php</guid>
				<link>https://proxy2.de/forum/posts/preList/7674/26257.php</link>
				<pubDate><![CDATA[Sat, 1 Sep 2012 12:14:09]]> GMT</pubDate>
				<author><![CDATA[ Carbonize]]></author>
			</item>
			<item>
				<title>Re:Daily Counter and php 5.3</title>
				<description><![CDATA[ No, it does not make sense.<br /> <br /> The function to update counter is in counter.class.php on line 70.<br />             $this-&gt;db-&gt;query("UPDATE ".$this-&gt;table['total']." set total=total+1"); seems to work<br /> <br />             $this-&gt;db-&gt;query("UPDATE ".$this-&gt;table['daily']." SET visitors=visitors+'1' WHERE day = now()"); - does not<br /> <br /> echo $visits['total']; works<br /> echo $visits['visits_today']; does not<br /> <br /> Cannot figure out why ?????]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/7674/26258.php</guid>
				<link>https://proxy2.de/forum/posts/preList/7674/26258.php</link>
				<pubDate><![CDATA[Sat, 1 Sep 2012 15:23:05]]> GMT</pubDate>
				<author><![CDATA[ WeBBy]]></author>
			</item>
			<item>
				<title>Daily Counter and php 5.3</title>
				<description><![CDATA[ As a test make it echo <br /> <br /> "UPDATE ".$this-&gt;table['daily']." SET visitors=visitors+'1' WHERE day = now()"<br /> <br /> to see what code it is creating.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/7674/26259.php</guid>
				<link>https://proxy2.de/forum/posts/preList/7674/26259.php</link>
				<pubDate><![CDATA[Sat, 1 Sep 2012 16:44:42]]> GMT</pubDate>
				<author><![CDATA[ Carbonize]]></author>
			</item>
			<item>
				<title>Re:Daily Counter and php 5.3</title>
				<description><![CDATA[ The way this class is called you cannot echo anything fromit (already tried it).<br /> <br /> This is what it is doing...<br /> <br />         $this-&gt;db-&gt;query("UPDATE ".$this-&gt;table['daily']." SET visitors=visitors+1 WHERE day = now()");<br />             if ($this-&gt;db-&gt;affected_rows() == 0) {<br /> //                $this-&gt;db-&gt;query("INSERT INTO ".$this-&gt;table['daily']." SET visitors='1', day = now()");<br /> <br /> <br /> It is running the "  if ($this-&gt;db-&gt;affected_rows() == 0)" and continuously adds a new date and entry of 1. One one site with 10,000 daily visits, I don't even want to mention the database size!<br /> <br /> If I comment it out, it stops adding new entries (tried an echo here but not displayed).<br /> <br /> The question is, why is it always seeing the "affected rows()==0" ????<br /> <br /> You would think that function affected rows was the problem in mysql.class.php but the total update works, i.e., <br /> <br />             $this-&gt;db-&gt;query("UPDATE ".$this-&gt;table['total']." set total=total+1");            <br /> <br /> 		if ($this-&gt;db-&gt;affected_rows() == 0) {<br />               $this-&gt;db-&gt;query("INSERT INTO ".$this-&gt;table['total']." SET total='1', installtime = UNIX_TIMESTAMP()");            <br /> <br /> In thsi case (total), it is executing the set "total=total+1" and NOT the affected_rows() == 0)<br /> <br /> Dont mind saying I am stumped<br /> <br /> ]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/7674/26260.php</guid>
				<link>https://proxy2.de/forum/posts/preList/7674/26260.php</link>
				<pubDate><![CDATA[Sat, 1 Sep 2012 17:18:04]]> GMT</pubDate>
				<author><![CDATA[ WeBBy]]></author>
			</item>
			<item>
				<title>Daily Counter and php 5.3</title>
				<description><![CDATA[ You must be running an old version as I just downloaded the files and the code looks different to what you are posting.<br /> <br /> [code]if ($this-&gt;db-&gt;affected_rows() == 0) {<br />                 $this-&gt;db-&gt;query("INSERT INTO ".$this-&gt;table['daily']." SET visitors='1', day = CURDATE()");[/code]]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/7674/26261.php</guid>
				<link>https://proxy2.de/forum/posts/preList/7674/26261.php</link>
				<pubDate><![CDATA[Sat, 1 Sep 2012 17:29:22]]> GMT</pubDate>
				<author><![CDATA[ Carbonize]]></author>
			</item>
			<item>
				<title>Re:Daily Counter and php 5.3</title>
				<description><![CDATA[ hmmm, website says version 1.1 so I didn't bother to download as my version is 1.1<br /> <br /> I think I am going to shoot myself if it is a new version  <img src="https://proxy2.de/forum//images/smilies/499fd50bc713bfcdf2ab5a23c00c2d62.gif" /><br /> <br /> Will let you know - ]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/7674/26262.php</guid>
				<link>https://proxy2.de/forum/posts/preList/7674/26262.php</link>
				<pubDate><![CDATA[Sat, 1 Sep 2012 17:45:36]]> GMT</pubDate>
				<author><![CDATA[ WeBBy]]></author>
			</item>
			<item>
				<title>Re:Daily Counter and php 5.3</title>
				<description><![CDATA[ It does appear that the version on the website is NOT version 1.1 but maybe 1.2?<br /> Can't now, but will try it shortly and let you know]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/7674/26263.php</guid>
				<link>https://proxy2.de/forum/posts/preList/7674/26263.php</link>
				<pubDate><![CDATA[Sat, 1 Sep 2012 17:49:33]]> GMT</pubDate>
				<author><![CDATA[ WeBBy]]></author>
			</item>
			<item>
				<title>Daily Counter and php 5.3</title>
				<description><![CDATA[ Yeah since switching to CVS he's had a nasty habit of rewriting things but not updating the version number.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/7674/26264.php</guid>
				<link>https://proxy2.de/forum/posts/preList/7674/26264.php</link>
				<pubDate><![CDATA[Sat, 1 Sep 2012 18:43:21]]> GMT</pubDate>
				<author><![CDATA[ Carbonize]]></author>
			</item>
			<item>
				<title>Re:Daily Counter and php 5.3</title>
				<description><![CDATA[ You have no idea how much time I wasted on this. Would probably still be working on it if not for you.<br /> THANK YOU  <img src="https://proxy2.de/forum//images/smilies/ed515dbff23a0ee3241dcc0a601c9ed6.gif" /><br /> I have changed the version on all the scripts to version 1.2!!!!<br /> <br /> Thank you again]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/7674/26265.php</guid>
				<link>https://proxy2.de/forum/posts/preList/7674/26265.php</link>
				<pubDate><![CDATA[Sat, 1 Sep 2012 21:31:56]]> GMT</pubDate>
				<author><![CDATA[ WeBBy]]></author>
			</item>
	</channel>
</rss>