<?xml version="1.0" encoding="iso-8859-1"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>PHP and javascript code</title>
		<link>http://mostshar.forumotion.com/php-and-javascript-code-f1/-t1.htm</link>
		<description>Working with mysql database using php code and javascript</description>
		<lastBuildDate>Wed, 12 Dec 2007 05:10:57 GMT</lastBuildDate>
		<ttl>10</ttl>
		<image>
			<title>PHP and javascript code</title>
			<url>http://i24.servimg.com/u/f24/11/78/31/11/data_s11.gif</url>
			<link>http://mostshar.forumotion.com/php-and-javascript-code-f1/-t1.htm</link>
		</image>
		<item>
			<title>Create Counter for your web site</title>
			<link>http://mostshar.forumotion.com/php-and-javascript-code-f1/create-counter-for-your-web-site-t7.htm</link>
			<dc:creator>Admin</dc:creator>
			<description>Code:

$SQL=&quot;Select * from `counter` where `the_date` = now&#40;&#41;&quot;

   $cmd = mysql_query&#40;$SQL, $cnn&#41; or die&#40;mysql_error&#40;&#41;&#41;;

   $rst = mysql_fetch_assoc&#40;$cmd&#41;;

   $rec = mysql_num_rows&#40;$cmd&#41;;

      if &#40;$rec &gt; 0 &#41; &#123;

mysql_query&#40;&quot;update `counter` set `vis_count` = &#40;`vis_count`+1&#41; where `the_date` = now&#40;&#41;&quot;,$cnn&#41;;

      ...</description>
			<category>PHP and javascript code</category>
			<pubDate>Wed, 12 Dec 2007 05:10:57 GMT</pubDate>
			<comments>http://mostshar.forumotion.com/php-and-javascript-code-f1/create-counter-for-your-web-site-t7.htm#7</comments>
			<guid>http://mostshar.forumotion.com/php-and-javascript-code-f1/create-counter-for-your-web-site-t7.htm</guid>
		</item>
	</channel>
</rss>