<?xml version="1.0" encoding="utf-8"?>
<!--	Generated by Google Yahoo MSN Sitemaps and RSS v1.2.0RC4 - (C) 2006 dcz - http://www.phpbb-seo.com/ -->
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>Php and MySQL - Digest</title>
		<link>http://www.frihost.com/forums/vf-14.html</link>
		<description>Scripting : Php and MySQL &lt;hr/&gt; Everything related to Php and mySQL. &lt;hr/&gt;&lt;br/&gt; &lt;u&gt;Stats :&lt;/u&gt; 3676 Topics || 21438 Posts</description>
		<language>en</language>
		<copyright>Frihost</copyright>
		<lastBuildDate>Mon, 23 Nov 2009 16:11:33 GMT</lastBuildDate>
		<image>
			<title>Php and MySQL - Digest</title>
			<url>http://www.frihost.com/forums/mx_ggsitemaps/images/rss_forum_big.gif</url>
			<link>http://www.frihost.com/forums/vf-14.html</link>
		</image>
		<docs>http://blogs.law.harvard.edu/tech/rss</docs>
		<generator>Ultimate Google Sitemaps and RSS v1.2.0RC4 www.phpBB-SEO.com</generator>
		<ttl>2</ttl>
		<item>
			<title>Storing Images</title>
			<link>http://www.frihost.com/forums/vt-111884.html</link>
			<pubDate>Mon, 23 Nov 2009 16:11:33 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : Storing Images &lt;/div&gt; &lt;hr/&gt; What is the best way to store images? Is it best to store images all in one folder and have a database filled with the URLs, or is it possible to directly store images in a database?
&lt;br/&gt;

&lt;br/&gt;
Thanks,
&lt;br/&gt;

&lt;br/&gt;
-Nick &lt;img src=&quot;http://www.frihost.com/forums/http://www.frihost.com/forums/images/smiles/icon_smile.gif&quot; alt=&quot;Smile&quot; border=&quot;0&quot; /&gt; &lt;img src=&quot;http://www.frihost.com/forums/http://www.frihost.com/forums/images/smiles/icon_smile.gif&quot; alt=&quot;Smile&quot; border=&quot;0&quot; /&gt; &lt;img src=&quot;http://www.frihost.com/forums/http://www.frihost.com/forums/images/smiles/icon_smile.gif&quot; alt=&quot;Smile&quot; border=&quot;0&quot; /&gt;&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://www.frihost.com/forums/vt-111884.html&quot; title=&quot;Storing Images&quot;&gt;&lt;b&gt;More ...&lt;/b&gt;&lt;/a&gt; &lt;hr/&gt; &lt;br/&gt; &lt;u&gt;Stats :&lt;/u&gt; 6 Replies</description>
			<source url="http://www.frihost.com/rss/forum-rss14-m.xml">Php and MySQL</source>
			<guid isPermaLink="true">http://www.frihost.com/forums/vt-111884.html</guid>
		</item>
		<item>
			<title>How to save facebook user IDs?</title>
			<link>http://www.frihost.com/forums/vt-111802.html</link>
			<pubDate>Mon, 23 Nov 2009 16:09:11 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : How to save facebook user IDs? &lt;/div&gt; &lt;hr/&gt; Hey everyone, 
&lt;br/&gt;

&lt;br/&gt;
I am trying to fix a website to save the facebook user ID is someone is linked to the website from facebook.
&lt;br/&gt;

&lt;br/&gt;
Does anyone know how that can be done?&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://www.frihost.com/forums/vt-111802.html&quot; title=&quot;How to save facebook user IDs?&quot;&gt;&lt;b&gt;More ...&lt;/b&gt;&lt;/a&gt; &lt;hr/&gt; &lt;br/&gt; &lt;u&gt;Stats :&lt;/u&gt; 4 Replies</description>
			<source url="http://www.frihost.com/rss/forum-rss14-m.xml">Php and MySQL</source>
			<guid isPermaLink="true">http://www.frihost.com/forums/vt-111802.html</guid>
		</item>
		<item>
			<title>PHP Includes Problem</title>
			<link>http://www.frihost.com/forums/vt-112020.html</link>
			<pubDate>Mon, 23 Nov 2009 13:25:27 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : PHP Includes Problem &lt;/div&gt; &lt;hr/&gt; I'm quite surprised to be the first person to mention this on the forum (Am I the only one noobish enough to encounter this error on here?) or at least the search function didn't yield any relevant topics. So here it is:
&lt;br/&gt;

&lt;br/&gt;
I'm building a site with dynamic content and when I try to include a file which contains a php include() function in itself, it wont work. After some checking I narrowed down the problem: the include() function is being included along with the rest of the file, but it is not recognized as php code, it just appears as php code in page that isn't being evaluated.
&lt;br/&gt;

&lt;br/&gt;
I did some quick research and there seems to be a major problem with multimple include php statements. Another site said it will work fine if you include the proper php tags. I &lt;div class=&quot;detail&quot; style=&quot;font-weight: bold&quot;&gt;did&lt;/div class=&quot;detail&quot;&gt; that of course, and no joy.
&lt;br/&gt;

&lt;br/&gt;
Help is appreciated greatly!&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://www.frihost.com/forums/vt-112020.html&quot; title=&quot;PHP Includes Problem&quot;&gt;&lt;b&gt;More ...&lt;/b&gt;&lt;/a&gt; &lt;hr/&gt; &lt;br/&gt; &lt;u&gt;Stats :&lt;/u&gt; 8 Replies</description>
			<source url="http://www.frihost.com/rss/forum-rss14-m.xml">Php and MySQL</source>
			<guid isPermaLink="true">http://www.frihost.com/forums/vt-112020.html</guid>
		</item>
		<item>
			<title>portable php+mysql</title>
			<link>http://www.frihost.com/forums/vt-110042.html</link>
			<pubDate>Sun, 22 Nov 2009 21:45:30 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : portable php+mysql &lt;/div&gt; &lt;hr/&gt; &lt;div class=&quot;detail&quot; style=&quot;font-size: 18px; line-height: normal&quot;&gt;&lt;div class=&quot;detail&quot; style=&quot;color: violet&quot;&gt;&lt;div class=&quot;detail&quot; style=&quot;font-weight: bold&quot;&gt;Is there any portable package of php + MySQL?&lt;/div class=&quot;detail&quot;&gt; &lt;/div class=&quot;detail&quot;&gt;&lt;/div class=&quot;detail&quot;&gt;
&lt;br/&gt;

&lt;br/&gt;
Does anybody knows if there is any portable package avaible which contains php and my sql.
&lt;br/&gt;
Even for local PC (I mean that could be used for local environment -- simulation at least).
&lt;br/&gt;

&lt;br/&gt;
This can help us to learn php+mySQL anywhere if we had it on our usb.
&lt;br/&gt;

&lt;br/&gt;
-- Thanks in Advance&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://www.frihost.com/forums/vt-110042.html&quot; title=&quot;Is there any portable package of php + MySQL?&quot;&gt;&lt;b&gt;More ...&lt;/b&gt;&lt;/a&gt; &lt;hr/&gt; &lt;br/&gt; &lt;u&gt;Stats :&lt;/u&gt; 9 Replies</description>
			<source url="http://www.frihost.com/rss/forum-rss14-m.xml">Php and MySQL</source>
			<guid isPermaLink="true">http://www.frihost.com/forums/vt-110042.html</guid>
		</item>
		<item>
			<title>FriHost PHP login problem</title>
			<link>http://www.frihost.com/forums/vt-111887.html</link>
			<pubDate>Sat, 21 Nov 2009 15:16:50 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : FriHost PHP login problem &lt;/div&gt; &lt;hr/&gt; i am trying to access my &lt;a href=&quot;http://www.frihost.org/phpmyadmin/&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot; class=&quot;postlink&quot;&gt;http://www.frihost.org/phpmyadmin/&lt;/a&gt; link it is asking for usernsme and password
&lt;br/&gt;

&lt;br/&gt;
when i am trying to login with my forum username and password it says authorisation failed try again
&lt;br/&gt;

&lt;br/&gt;
any help plzzzzzz&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://www.frihost.com/forums/vt-111887.html&quot; title=&quot;FriHost PHP login problem&quot;&gt;&lt;b&gt;More ...&lt;/b&gt;&lt;/a&gt; &lt;hr/&gt; &lt;br/&gt; &lt;u&gt;Stats :&lt;/u&gt; 11 Replies</description>
			<source url="http://www.frihost.com/rss/forum-rss14-m.xml">Php and MySQL</source>
			<guid isPermaLink="true">http://www.frihost.com/forums/vt-111887.html</guid>
		</item>
		<item>
			<title>Storing Massive Amounts of Data</title>
			<link>http://www.frihost.com/forums/vt-111880.html</link>
			<pubDate>Thu, 19 Nov 2009 10:48:27 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : Storing Massive Amounts of Data &lt;/div&gt; &lt;hr/&gt; Currently, I am looking at ways to store massive amounts of data, and I have some questions.
&lt;br/&gt;

&lt;br/&gt;
Let's look at Facebook for example.
&lt;br/&gt;

&lt;br/&gt;
Dozens of comments can be posted on every status, fan page update, photo, video, link, post etc. How would this information be stored?
&lt;br/&gt;

&lt;br/&gt;
Would it be efficient to have one insanely massive table that stores a comment id, user id, the id of what it was posted on, and the comment text in a row for every single comment? Would it be more efficient to have a table for each post type (photos, statuses, etc.) And post the same information to there? Is there another method that I am not considering?
&lt;br/&gt;

&lt;br/&gt;
Thank you very much,
&lt;br/&gt;

&lt;br/&gt;
-Nick &lt;img src=&quot;http://www.frihost.com/forums/http://www.frihost.com/forums/images/smiles/icon_smile.gif&quot; alt=&quot;Smile&quot; border=&quot;0&quot; /&gt;&lt;img src=&quot;http://www.frihost.com/forums/http://www.frihost.com/forums/images/smiles/icon_smile.gif&quot; alt=&quot;Smile&quot; border=&quot;0&quot; /&gt;&lt;img src=&quot;http://www.frihost.com/forums/http://www.frihost.com/forums/images/smiles/icon_smile.gif&quot; alt=&quot;Smile&quot; border=&quot;0&quot; /&gt;&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://www.frihost.com/forums/vt-111880.html&quot; title=&quot;Storing Massive Amounts of Data&quot;&gt;&lt;b&gt;More ...&lt;/b&gt;&lt;/a&gt; &lt;hr/&gt; &lt;br/&gt; &lt;u&gt;Stats :&lt;/u&gt; 6 Replies</description>
			<source url="http://www.frihost.com/rss/forum-rss14-m.xml">Php and MySQL</source>
			<guid isPermaLink="true">http://www.frihost.com/forums/vt-111880.html</guid>
		</item>
		<item>
			<title>Web and Application Layers</title>
			<link>http://www.frihost.com/forums/vt-111883.html</link>
			<pubDate>Wed, 18 Nov 2009 00:08:58 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : Web and Application Layers &lt;/div&gt; &lt;hr/&gt; Now, I am currently looking at various managed dedicated server services and a lot of them are talking about servers for a web layer, an application layer, and a database layer and then a development/management server.
&lt;br/&gt;

&lt;br/&gt;
Does that mean that there is a set of servers to store and process the front end HTML, CSS, JavaScript, etc., a set of servers to store back end PHP, Java, etc., a database server to store MySQL databases and a development/management server to manage all the other servers?
&lt;br/&gt;

&lt;br/&gt;
Do you know of any resources that I can look at to learn about creating applications using this system?
&lt;br/&gt;

&lt;br/&gt;
Thanks,
&lt;br/&gt;

&lt;br/&gt;
Nick &lt;img src=&quot;http://www.frihost.com/forums/http://www.frihost.com/forums/images/smiles/icon_smile.gif&quot; alt=&quot;Smile&quot; border=&quot;0&quot; /&gt; &lt;img src=&quot;http://www.frihost.com/forums/http://www.frihost.com/forums/images/smiles/icon_smile.gif&quot; alt=&quot;Smile&quot; border=&quot;0&quot; /&gt; &lt;img src=&quot;http://www.frihost.com/forums/http://www.frihost.com/forums/images/smiles/icon_smile.gif&quot; alt=&quot;Smile&quot; border=&quot;0&quot; /&gt;&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://www.frihost.com/forums/vt-111883.html&quot; title=&quot;Web and Application Layers&quot;&gt;&lt;b&gt;More ...&lt;/b&gt;&lt;/a&gt; &lt;hr/&gt; &lt;br/&gt; &lt;u&gt;Stats :&lt;/u&gt; 2 Replies</description>
			<source url="http://www.frihost.com/rss/forum-rss14-m.xml">Php and MySQL</source>
			<guid isPermaLink="true">http://www.frihost.com/forums/vt-111883.html</guid>
		</item>
		<item>
			<title>[Official] Best PHP Editor</title>
			<link>http://www.frihost.com/forums/vt-7995.html</link>
			<pubDate>Mon, 16 Nov 2009 08:35:00 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : [Official] Best PHP Editor &lt;/div&gt; &lt;hr/&gt; Can someone name a good php editor..?&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://www.frihost.com/forums/vt-7995.html&quot; title=&quot;[Official] Best PHP Editor&quot;&gt;&lt;b&gt;More ...&lt;/b&gt;&lt;/a&gt; &lt;hr/&gt; &lt;br/&gt; &lt;u&gt;Stats :&lt;/u&gt; 249 Replies</description>
			<source url="http://www.frihost.com/rss/forum-rss14-m.xml">Php and MySQL</source>
			<guid isPermaLink="true">http://www.frihost.com/forums/vt-7995.html</guid>
		</item>
		<item>
			<title>Storing data to previous pages</title>
			<link>http://www.frihost.com/forums/vt-111607.html</link>
			<pubDate>Fri, 13 Nov 2009 16:34:25 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : Storing data to previous pages &lt;/div&gt; &lt;hr/&gt; OKay, maybe the headline is bit wrong but what i want to do is this:
&lt;br/&gt;

&lt;br/&gt;
I have textbox which sends data to my databases, you can also view what people have entered etc. What i want to do is this. Lets say i have fixed table height about 1000px. I don't want that script stores more, iwanted to old ones move to page 2 etc. example is here &lt;a href=&quot;http://tre.ee/?plk=1&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot; class=&quot;postlink&quot;&gt;http://tre.ee/?plk=1&lt;/a&gt; , My site planet.frihost.org . Thanks for helping.
&lt;br/&gt;

&lt;br/&gt;
PS the textbox need 10 or more chars to post and name 4 or more&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://www.frihost.com/forums/vt-111607.html&quot; title=&quot;Storing data to previous pages&quot;&gt;&lt;b&gt;More ...&lt;/b&gt;&lt;/a&gt; &lt;hr/&gt; &lt;br/&gt; &lt;u&gt;Stats :&lt;/u&gt; 9 Replies</description>
			<source url="http://www.frihost.com/rss/forum-rss14-m.xml">Php and MySQL</source>
			<guid isPermaLink="true">http://www.frihost.com/forums/vt-111607.html</guid>
		</item>
		<item>
			<title>Access Denied for user ODBC@localhost</title>
			<link>http://www.frihost.com/forums/vt-110652.html</link>
			<pubDate>Thu, 12 Nov 2009 18:58:36 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : Access Denied for user ODBC@localhost &lt;/div&gt; &lt;hr/&gt; Why is it when I call this function twice, on the second time it says access denied for user ODBC@localhost. 
&lt;br/&gt;
&lt;a href=&quot;http://pastebin.com/m6fb095c5&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot; class=&quot;postlink&quot;&gt;http://pastebin.com/m6fb095c5&lt;/a&gt;
&lt;br/&gt;

&lt;br/&gt;
It's telling me
&lt;br/&gt;
&lt;a href=&quot;http://pastebin.com/m6900f71c&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot; class=&quot;postlink&quot;&gt;http://pastebin.com/m6900f71c&lt;/a&gt;
&lt;br/&gt;

&lt;br/&gt;
But it has to be defined because I required it!&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://www.frihost.com/forums/vt-110652.html&quot; title=&quot;Access Denied for user ODBC@localhost&quot;&gt;&lt;b&gt;More ...&lt;/b&gt;&lt;/a&gt; &lt;hr/&gt; &lt;br/&gt; &lt;u&gt;Stats :&lt;/u&gt; 6 Replies</description>
			<source url="http://www.frihost.com/rss/forum-rss14-m.xml">Php and MySQL</source>
			<guid isPermaLink="true">http://www.frihost.com/forums/vt-110652.html</guid>
		</item>
		<item>
			<title>How can I run PHP on IIS?</title>
			<link>http://www.frihost.com/forums/vt-111154.html</link>
			<pubDate>Thu, 12 Nov 2009 18:20:01 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : How can I run PHP on IIS? &lt;/div&gt; &lt;hr/&gt; I have installed PHP many years ago on IIS, and now would like to do it again on my new notebook.
&lt;br/&gt;

&lt;br/&gt;
Can anyone direct me to the latest and most reliable source to install PHP on my IIS server?
&lt;br/&gt;

&lt;br/&gt;
Can PHP work well with Microsoft SQL server? Or must I also install MySQL - which I find it not so useful for triggers programming.
&lt;br/&gt;

&lt;br/&gt;
Help appreciated. Thanks.&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://www.frihost.com/forums/vt-111154.html&quot; title=&quot;How can I run PHP on IIS?&quot;&gt;&lt;b&gt;More ...&lt;/b&gt;&lt;/a&gt; &lt;hr/&gt; &lt;br/&gt; &lt;u&gt;Stats :&lt;/u&gt; 9 Replies</description>
			<source url="http://www.frihost.com/rss/forum-rss14-m.xml">Php and MySQL</source>
			<guid isPermaLink="true">http://www.frihost.com/forums/vt-111154.html</guid>
		</item>
		<item>
			<title>PHP vs ASP</title>
			<link>http://www.frihost.com/forums/vt-109740.html</link>
			<pubDate>Thu, 12 Nov 2009 18:18:04 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : PHP vs ASP &lt;/div&gt; &lt;hr/&gt; So I keep on hearing about this language called ASP, and I did a little digging and it looks basically like PHP but with different syntax. What is it this ASP thing, and is there any reason to use it instead of PHP? As in, are there certain things that it can do better that PHP can't?&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://www.frihost.com/forums/vt-109740.html&quot; title=&quot;PHP vs ASP&quot;&gt;&lt;b&gt;More ...&lt;/b&gt;&lt;/a&gt; &lt;hr/&gt; &lt;br/&gt; &lt;u&gt;Stats :&lt;/u&gt; 10 Replies</description>
			<source url="http://www.frihost.com/rss/forum-rss14-m.xml">Php and MySQL</source>
			<guid isPermaLink="true">http://www.frihost.com/forums/vt-109740.html</guid>
		</item>
		<item>
			<title>PHP Comment Script</title>
			<link>http://www.frihost.com/forums/vt-111670.html</link>
			<pubDate>Wed, 11 Nov 2009 12:42:42 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : PHP Comment Script &lt;/div&gt; &lt;hr/&gt; I have a test page: &lt;a href=&quot;http://www.techcorner.pcriot.com/test/reviews.php&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot; class=&quot;postlink&quot;&gt;http://www.techcorner.pcriot.com/test/reviews.php&lt;/a&gt;
&lt;br/&gt;

&lt;br/&gt;
The gray box area thing isn't centered in the page and I am wondering how to do that.
&lt;br/&gt;

&lt;br/&gt;
This isn't the full code because it's long and this is where it would be if anything.
&lt;br/&gt;

&lt;br/&gt;
&lt;/div class=&quot;detail&quot;&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;div class=&quot;detail&quot; class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/div class=&quot;detail&quot;&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;&amp;lt;style&amp;gt;
&lt;br/&gt;
/*COMMENTS
&lt;br/&gt;
*------------------------------------*/
&lt;br/&gt;

&lt;br/&gt;
.postedby &amp;#123;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;text-align&amp;#58; Center;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;#125;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;
&lt;br/&gt;
h3.formtitle &amp;#123;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;margin &amp;#58; 0px 0px 0px 12px;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;border-bottom&amp;#58; 1px dotted #ccc;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;padding-bottom&amp;#58; 8px;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;#125;
&lt;br/&gt;

&lt;br/&gt;
.commentbody &amp;#123;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;border-top&amp;#58; 1px dotted #ccc;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;#125;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;
&lt;br/&gt;
/*gray box*/
&lt;br/&gt;
.submitcomment, #submitcomment, #currentcomments, #rating, .textad &amp;#123;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;background-color&amp;#58; #F5F5F5;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;border&amp;#58; 1px dotted #ccc;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;width&amp;#58; 550px;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;#125;
&lt;br/&gt;

&lt;br/&gt;

&lt;br/&gt;
/*FORMS
&lt;br/&gt;
*------------------------------------*/
&lt;br/&gt;

&lt;br/&gt;
.form &amp;#123;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;font-size&amp;#58; 100%;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;background-color&amp;#58; #FAFAFA;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;border&amp;#58; solid 1px #C6C6C6;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;padding&amp;#58; 2px;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;#125;
&lt;br/&gt;

&lt;br/&gt;
.formtext &amp;#123;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;background-color&amp;#58; #FAFAFA;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;border&amp;#58; solid 1px #C6C6C6;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;padding&amp;#58; 2px;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;border-bottom&amp;#58; 1px dotted #ccc
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;#125;
&lt;br/&gt;

&lt;br/&gt;
.form&amp;#58;hover, .formtext&amp;#58;hover &amp;#123;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;background&amp;#58; white;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;#125;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;
&lt;br/&gt;
.form&amp;#58;focus, .formtext&amp;#58;focus &amp;#123;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;background&amp;#58; white;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;border&amp;#58; solid 1px #000000;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;#125;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;
&lt;br/&gt;
.submit &amp;#123;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;background-color&amp;#58; #D3D3D3;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;border&amp;#58; solid 1px #C6C6C6;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;border-right&amp;#58; solid 1px #9A9A9A;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;border-bottom&amp;#58; solid 1px #9A9A9A;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;#125;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;
&lt;br/&gt;
.submit&amp;#58;hover, .submit&amp;#58;focus &amp;#123;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;background&amp;#58; #EDEDED;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;#125;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;lt;/style&amp;gt;
&lt;br/&gt;

&lt;br/&gt;
&amp;nbsp; &amp;nbsp;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;quot;;
&lt;br/&gt;
//fetch all comments from database where the tutorial number is the one you are asking for
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;$commentquery = mysql_query&amp;#40;&amp;quot;SELECT * FROM comments WHERE tutorialid='$tutid' ORDER BY date DESC&amp;quot;&amp;#41; or die&amp;#40;mysql_error&amp;#40;&amp;#41;&amp;#41;;
&lt;br/&gt;
//find the number of comments
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;$commentNum = mysql_num_rows&amp;#40;$commentquery&amp;#41;;
&lt;br/&gt;
//create a headline
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;echo &amp;quot;&amp;lt;div id=\&amp;quot;currentcomments\&amp;quot; class=\&amp;quot;submitcomment\&amp;quot;&amp;gt;&amp;lt;h3 class=\&amp;quot;formtitle\&amp;quot;&amp;gt;Current Comments&amp;lt;/h3&amp;gt;\n&amp;quot;;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;echo $commentNum . &amp;quot; comments so far &amp;#40;&amp;lt;a href=\&amp;quot;#post\&amp;quot;&amp;gt;post your own&amp;lt;/a&amp;gt;&amp;#41;\n&amp;quot;;
&lt;br/&gt;
//for each comment in the database in the right category number...
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;while&amp;#40;$commentrow = mysql_fetch_row&amp;#40;$commentquery&amp;#41;&amp;#41;&amp;#123;
&lt;br/&gt;
//for security, parse through the bbcode script
&lt;br/&gt;
//the number corresponds to the column &amp;#40;the message is always stored in column 4
&lt;br/&gt;
//COUTING STARTS at 0!!!
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;$commentbb = BBCode&amp;#40;$commentrow&amp;#91;4&amp;#93;&amp;#41;;
&lt;br/&gt;
//create the right date format
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;$commentDate = formatDate&amp;#40;$commentrow&amp;#91;6&amp;#93;&amp;#41;;
&lt;br/&gt;

&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;echo &amp;quot;&amp;lt;div class=\&amp;quot;commentbody\&amp;quot; id=\&amp;quot;$commentrow&amp;#91;0&amp;#93;\&amp;quot;&amp;gt;\n
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;p&amp;gt;$commentbb&amp;lt;/p&amp;gt;\n
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;p class=\&amp;quot;postedby\&amp;quot;&amp;gt;Posted by &amp;quot;;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;if&amp;#40;$commentrow&amp;#91;3&amp;#93;&amp;#41;&amp;#123;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;echo &amp;quot;&amp;lt;a href=\&amp;quot;$commentrow&amp;#91;3&amp;#93;\&amp;quot;&amp;gt;$commentrow&amp;#91;2&amp;#93;&amp;lt;/a&amp;gt; &amp;quot;;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;#125; else &amp;#123;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;echo &amp;quot;$commentrow&amp;#91;2&amp;#93; &amp;quot;;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;#125;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;echo &amp;quot;on $commentDate | #$commentrow&amp;#91;0&amp;#93;&amp;lt;/p&amp;gt;\n
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;\n&amp;lt;/div&amp;gt;&amp;quot;;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;#125;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;echo &amp;quot;&amp;lt;/div&amp;gt;&amp;quot;;
&lt;br/&gt;
&amp;#125;
&lt;br/&gt;

&lt;br/&gt;
function submitComments&amp;#40;$tutid2,$tuturl&amp;#41;&amp;#123;
&lt;br/&gt;
//a javascript script to make sure all the required fields are filled in
&lt;br/&gt;
?&amp;gt;
&lt;br/&gt;
&amp;lt;script language=&amp;quot;javascript&amp;quot;&amp;gt;
&lt;br/&gt;

&lt;br/&gt;
function form_Validator&amp;#40;form&amp;#41;
&lt;br/&gt;
&amp;#123;
&lt;br/&gt;

&lt;br/&gt;
&amp;nbsp;if &amp;#40;form.name.value == &amp;quot;&amp;quot;&amp;#41;
&lt;br/&gt;
&amp;nbsp;&amp;#123;
&lt;br/&gt;
&amp;nbsp;alert&amp;#40;&amp;quot;Please enter your name.&amp;quot;&amp;#41;;
&lt;br/&gt;
&amp;nbsp;form.name.focus&amp;#40;&amp;#41;;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;return &amp;#40;false&amp;#41;;
&lt;br/&gt;
&amp;nbsp;&amp;#125;
&lt;br/&gt;

&lt;br/&gt;
&amp;nbsp;if &amp;#40;form.message.value == &amp;quot;&amp;quot;&amp;#41;
&lt;br/&gt;
&amp;nbsp;&amp;#123;
&lt;br/&gt;
&amp;nbsp;alert&amp;#40;&amp;quot;Please enter your message.&amp;quot;&amp;#41;;
&lt;br/&gt;
&amp;nbsp;form.message.focus&amp;#40;&amp;#41;;
&lt;br/&gt;
&amp;nbsp;return &amp;#40;false&amp;#41;;
&lt;br/&gt;
&amp;nbsp;&amp;#125;
&lt;br/&gt;
&amp;nbsp;
&lt;br/&gt;
&amp;nbsp;return &amp;#40;true&amp;#41;;
&lt;br/&gt;
&amp;nbsp;&amp;#125;
&lt;br/&gt;
&amp;nbsp;//--&amp;gt;
&lt;br/&gt;
&amp;nbsp;&amp;lt;/script&amp;gt;
&lt;br/&gt;
&amp;lt;?php
&lt;br/&gt;
//create the form to submit comments
&lt;br/&gt;
//you can add more fields, but make sure you add them to the db table and the page, submitcomment.php
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;echo &amp;quot;
&lt;br/&gt;
&amp;lt;a name=\&amp;quot;post\&amp;quot;&amp;gt;
&lt;br/&gt;
&amp;lt;div id=\&amp;quot;submitcomment\&amp;quot; class=\&amp;quot;submitcomment\&amp;quot;&amp;gt;
&lt;br/&gt;
&amp;lt;form name=\&amp;quot;submitcomment\&amp;quot; method=\&amp;quot;post\&amp;quot; action=\&amp;quot;submitcomment.php\&amp;quot; onSubmit=\&amp;quot; return form_Validator&amp;#40;this&amp;#41;\&amp;quot;&amp;gt;
&lt;br/&gt;
&amp;lt;table width=\&amp;quot;20%\&amp;quot;&amp;gt;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;tr&amp;gt;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;th coldiv class=&quot;detail&quot;=\&amp;quot;2\&amp;quot;&amp;gt;&amp;lt;h3 class=\&amp;quot;formtitle\&amp;quot;&amp;gt;Leave your comment&amp;#58;&amp;lt;/h3&amp;gt;&amp;lt;/th&amp;gt;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;/tr&amp;gt;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;tr&amp;gt;
&lt;br/&gt;

&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;th scope=\&amp;quot;row\&amp;quot;&amp;gt;&amp;lt;p class=\&amp;quot;req\&amp;quot;&amp;gt;Name&amp;#58;&amp;lt;/p&amp;gt;&amp;lt;/th&amp;gt;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;td&amp;gt;&amp;lt;input class=\&amp;quot;form\&amp;quot; tabindex=\&amp;quot;1\&amp;quot; id=\&amp;quot;name\&amp;quot; name=\&amp;quot;name\&amp;quot; /&amp;gt;&amp;lt;/td&amp;gt;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;/tr&amp;gt;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;tr&amp;gt;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;th scope=\&amp;quot;row\&amp;quot;&amp;gt;&amp;lt;p class=\&amp;quot;opt\&amp;quot;&amp;gt;Email&amp;#58;&amp;lt;/p&amp;gt;&amp;lt;/th&amp;gt;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;td&amp;gt;&amp;lt;input class=\&amp;quot;form\&amp;quot; tabindex=\&amp;quot;2\&amp;quot; id=\&amp;quot;email\&amp;quot; name=\&amp;quot;email\&amp;quot; /&amp;gt;&amp;lt;/td&amp;gt;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;/tr&amp;gt;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;tr&amp;gt;
&lt;br/&gt;

&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;th scope=\&amp;quot;row\&amp;quot;&amp;gt;&amp;lt;p class=\&amp;quot;opt\&amp;quot;&amp;gt;URL&amp;#58;&amp;lt;/p&amp;gt;&amp;lt;/th&amp;gt;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;td&amp;gt;&amp;lt;input class=\&amp;quot;form\&amp;quot; tabindex=\&amp;quot;3\&amp;quot; id=\&amp;quot;url\&amp;quot; name=\&amp;quot;url\&amp;quot; /&amp;gt;&amp;lt;/td&amp;gt;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;/tr&amp;gt;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;tr valign=\&amp;quot;top\&amp;quot;&amp;gt;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;th scope=\&amp;quot;row\&amp;quot;&amp;gt;&amp;lt;p class=\&amp;quot;req\&amp;quot;&amp;gt;Comments&amp;#58;&amp;lt;/p&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;/th&amp;gt;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;td&amp;gt;&amp;lt;textarea class=\&amp;quot;formtext\&amp;quot; tabindex=\&amp;quot;4\&amp;quot; id=\&amp;quot;message\&amp;quot; name=\&amp;quot;message\&amp;quot; rows=\&amp;quot;5\&amp;quot; cols=\&amp;quot;50\&amp;quot;&amp;gt;&amp;lt;/textarea&amp;gt;&amp;lt;/td&amp;gt;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;/tr&amp;gt;
&lt;br/&gt;

&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;tr&amp;gt;&amp;nbsp; &amp;nbsp;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;td&amp;gt;&amp;amp;nbsp;&amp;lt;/td&amp;gt;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;td&amp;gt;&amp;lt;input type=\&amp;quot;submit\&amp;quot; name=\&amp;quot;post\&amp;quot; class=\&amp;quot;submit\&amp;quot; value=\&amp;quot;Submit Comment\&amp;quot; /&amp;gt;&amp;lt;br /&amp;gt;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;p&amp;gt;Note&amp;#58; Emails will not be visible or used in any way, and are not required. Please keep comments relevant. Any content deemed inappropriate or offensive may be edited and/or deleted. &amp;lt;/p&amp;gt;
&lt;br/&gt;

&lt;br/&gt;
&amp;lt;p&amp;gt;No HTML code is allowed. Line breaks will be converted automatically. URLs will be auto-linked. Please use BBCode to format your text.&amp;lt;/p&amp;gt;
&lt;br/&gt;

&lt;br/&gt;
&amp;lt;/td&amp;gt;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;/tr&amp;gt;
&lt;br/&gt;
&amp;lt;/table&amp;gt;
&lt;br/&gt;
&amp;lt;input type=\&amp;quot;hidden\&amp;quot; name=\&amp;quot;tuturl\&amp;quot; value=\&amp;quot;$tuturl\&amp;quot; /&amp;gt;
&lt;br/&gt;
&amp;lt;input type=\&amp;quot;hidden\&amp;quot; name=\&amp;quot;tutid2\&amp;quot; value=\&amp;quot;$tutid2\&amp;quot; /&amp;gt;
&lt;br/&gt;
&amp;lt;/form&amp;gt;
&lt;br/&gt;

&lt;br/&gt;

&lt;br/&gt;
&amp;lt;/div&amp;gt;
&lt;br/&gt;
&amp;quot;;
&lt;br/&gt;
&amp;#125;
&lt;br/&gt;
?&amp;gt;&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;div class=&quot;detail&quot; class=&quot;postbody&quot;&gt;&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://www.frihost.com/forums/vt-111670.html&quot; title=&quot;PHP Comment Script&quot;&gt;&lt;b&gt;More ...&lt;/b&gt;&lt;/a&gt; &lt;hr/&gt; &lt;br/&gt; &lt;u&gt;Stats :&lt;/u&gt; 2 Replies</description>
			<source url="http://www.frihost.com/rss/forum-rss14-m.xml">Php and MySQL</source>
			<guid isPermaLink="true">http://www.frihost.com/forums/vt-111670.html</guid>
		</item>
		<item>
			<title>Frih$ Points</title>
			<link>http://www.frihost.com/forums/vt-86403.html</link>
			<pubDate>Sat, 07 Nov 2009 08:48:41 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : Frih$ Points &lt;/div&gt; &lt;hr/&gt; Hi
&lt;br/&gt;

&lt;br/&gt;
For a different purpose I would like to duplicate the FriHost point system where one user can give another a measurable value. In the case of Frihost this would be Frih$. 
&lt;br/&gt;

&lt;br/&gt;
How to I do this. Is it a standard part of phpBB
&lt;br/&gt;

&lt;br/&gt;
Cheers Possum..&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://www.frihost.com/forums/vt-86403.html&quot; title=&quot;Frih$ Points&quot;&gt;&lt;b&gt;More ...&lt;/b&gt;&lt;/a&gt; &lt;hr/&gt; &lt;br/&gt; &lt;u&gt;Stats :&lt;/u&gt; 6 Replies</description>
			<source url="http://www.frihost.com/rss/forum-rss14-m.xml">Php and MySQL</source>
			<guid isPermaLink="true">http://www.frihost.com/forums/vt-86403.html</guid>
		</item>
		<item>
			<title>Help With Simple PHP Code Snipit</title>
			<link>http://www.frihost.com/forums/vt-111587.html</link>
			<pubDate>Fri, 06 Nov 2009 12:48:45 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : Help With Simple PHP Code Snipit &lt;/div&gt; &lt;hr/&gt; OK, on a form, I'm checking three text-boxes to make sure ALL have (numerical) entries, or NONE have entries. If only one or two boxes have entries, I want to prompt the page viewer that he has made an incomplete data entry. If none of the three have entries, then nothing should happen.
&lt;br/&gt;

&lt;br/&gt;
Here's my PHP code.
&lt;br/&gt;

&lt;br/&gt;
&lt;/div class=&quot;detail&quot;&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;div class=&quot;detail&quot; class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/div class=&quot;detail&quot;&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;IF &amp;#40;isset&amp;#40;$csizeqty1&amp;#41; || isset&amp;#40;$csizeh1&amp;#41; || isset&amp;#40;$csizew1&amp;#41;&amp;#41;
&lt;br/&gt;
&amp;#123;IF &amp;#40;!isset&amp;#40;$csizeqty1&amp;#41; || !isset&amp;#40;$csizeh1&amp;#41; || !isset&amp;#40;$csizew1&amp;#41;&amp;#41;
&lt;br/&gt;
&amp;#123;echo &amp;quot;Custom size 1 input is incomplete&amp;quot;;
&lt;br/&gt;
&amp;#125;&amp;#125;&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;div class=&quot;detail&quot; class=&quot;postbody&quot;&gt;
&lt;br/&gt;

&lt;br/&gt;
This does NOT catch incomplete entries for &amp;quot;csize1&amp;quot;.
&lt;br/&gt;

&lt;br/&gt;
Can someone please help me out?&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://www.frihost.com/forums/vt-111587.html&quot; title=&quot;Help With Simple PHP Code Snipit&quot;&gt;&lt;b&gt;More ...&lt;/b&gt;&lt;/a&gt; &lt;hr/&gt; &lt;br/&gt; &lt;u&gt;Stats :&lt;/u&gt; 8 Replies</description>
			<source url="http://www.frihost.com/rss/forum-rss14-m.xml">Php and MySQL</source>
			<guid isPermaLink="true">http://www.frihost.com/forums/vt-111587.html</guid>
		</item>
		<item>
			<title>Need help With editing a mysql setting</title>
			<link>http://www.frihost.com/forums/vt-111492.html</link>
			<pubDate>Thu, 05 Nov 2009 15:07:40 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : Need help With editing a mysql setting &lt;/div&gt; &lt;hr/&gt; Well, im trying to work on my admin control panel on my website, and basicly i want it all it be ran on php and mysql, and i want to make a editing box that edits what the mian page says through mysql, instead of what i have now is a text box to edit a certain filke that i have setup that i required on the mian page. So does anyone have a good explination opn how to make a text box editor to edit a certain setting in a database?&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://www.frihost.com/forums/vt-111492.html&quot; title=&quot;Need help With editing a mysql setting&quot;&gt;&lt;b&gt;More ...&lt;/b&gt;&lt;/a&gt; &lt;hr/&gt; &lt;br/&gt; &lt;u&gt;Stats :&lt;/u&gt; 2 Replies</description>
			<source url="http://www.frihost.com/rss/forum-rss14-m.xml">Php and MySQL</source>
			<guid isPermaLink="true">http://www.frihost.com/forums/vt-111492.html</guid>
		</item>
		<item>
			<title>post stories</title>
			<link>http://www.frihost.com/forums/vt-111583.html</link>
			<pubDate>Thu, 05 Nov 2009 15:03:34 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : post stories &lt;/div&gt; &lt;hr/&gt; i wanna make a script so that people can post thier storys to me help please&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://www.frihost.com/forums/vt-111583.html&quot; title=&quot;me to&quot;&gt;&lt;b&gt;More ...&lt;/b&gt;&lt;/a&gt; &lt;hr/&gt; &lt;br/&gt; &lt;u&gt;Stats :&lt;/u&gt; 2 Replies</description>
			<source url="http://www.frihost.com/rss/forum-rss14-m.xml">Php and MySQL</source>
			<guid isPermaLink="true">http://www.frihost.com/forums/vt-111583.html</guid>
		</item>
		<item>
			<title>What is the problem with this function</title>
			<link>http://www.frihost.com/forums/vt-111349.html</link>
			<pubDate>Thu, 05 Nov 2009 00:27:40 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : What is the problem with this function &lt;/div&gt; &lt;hr/&gt; &lt;/div class=&quot;detail&quot;&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;div class=&quot;detail&quot; class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/div class=&quot;detail&quot;&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;function dec2any&amp;#40; $num, $base=62, $index=false &amp;#41;
&lt;br/&gt;
&amp;#123;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;if &amp;#40;! $base &amp;#41;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;#123;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;$base = strlen&amp;#40; $index &amp;#41;;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;#125;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;else if &amp;#40;! $index &amp;#41;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;#123;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;$index = substr&amp;#40; &amp;quot;0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ&amp;quot; ,0 ,$base &amp;#41;;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;#125;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;$out = &amp;quot;&amp;quot;;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;for &amp;#40; $t = floor&amp;#40; log10&amp;#40; $num &amp;#41; / log10&amp;#40; $base &amp;#41; &amp;#41;; $t &amp;gt;= 0; $t-- &amp;#41;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;#123;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;$a = floor&amp;#40; $num / pow&amp;#40; $base, $t &amp;#41; &amp;#41;;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;$out = $out . substr&amp;#40; $index, $a, 1 &amp;#41;;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;$num = $num - &amp;#40; $a * pow&amp;#40; $base, $t &amp;#41; &amp;#41;;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;#125;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;return $out;
&lt;br/&gt;
&amp;#125;&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;div class=&quot;detail&quot; class=&quot;postbody&quot;&gt;
&lt;br/&gt;

&lt;br/&gt;
the following returns &lt;div class=&quot;detail&quot; style=&quot;font-weight: bold&quot;&gt;00&lt;/div class=&quot;detail&quot;&gt; while it should return &lt;div class=&quot;detail&quot; style=&quot;font-weight: bold&quot;&gt;1000&lt;/div class=&quot;detail&quot;&gt;
&lt;br/&gt;

&lt;br/&gt;
&lt;/div class=&quot;detail&quot;&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;div class=&quot;detail&quot; class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/div class=&quot;detail&quot;&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;dec2any&amp;#40;46656 , 36&amp;#41;;&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;div class=&quot;detail&quot; class=&quot;postbody&quot;&gt;
&lt;br/&gt;

&lt;br/&gt;
(i dont want to use base_convert because of its certain limitation, and this is the best what i got on the web. if you have better alternative or solution in mind, please suggest me).&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://www.frihost.com/forums/vt-111349.html&quot; title=&quot;What is the problem with this function&quot;&gt;&lt;b&gt;More ...&lt;/b&gt;&lt;/a&gt; &lt;hr/&gt; &lt;br/&gt; &lt;u&gt;Stats :&lt;/u&gt; 9 Replies</description>
			<source url="http://www.frihost.com/rss/forum-rss14-m.xml">Php and MySQL</source>
			<guid isPermaLink="true">http://www.frihost.com/forums/vt-111349.html</guid>
		</item>
		<item>
			<title>How to code a simple blog using PHP</title>
			<link>http://www.frihost.com/forums/vt-111321.html</link>
			<pubDate>Tue, 03 Nov 2009 15:25:16 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : How to code a simple blog using PHP &lt;/div&gt; &lt;hr/&gt; Hello. 
&lt;br/&gt;

&lt;br/&gt;
After several years I've finally decided that I &lt;div class=&quot;detail&quot; style=&quot;font-style: italic&quot;&gt;should&lt;/div class=&quot;detail&quot;&gt; learn how to code a simple blog using PHP. I just want the most basic things: REGISTER, POST, DISPLAY, ARCHIVE (and probably COMMENT). 
&lt;br/&gt;

&lt;br/&gt;
Can anyone help me? 
&lt;br/&gt;

&lt;br/&gt;
Thanks.&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://www.frihost.com/forums/vt-111321.html&quot; title=&quot;How to code a simple blog using PHP&quot;&gt;&lt;b&gt;More ...&lt;/b&gt;&lt;/a&gt; &lt;hr/&gt; &lt;br/&gt; &lt;u&gt;Stats :&lt;/u&gt; 9 Replies</description>
			<source url="http://www.frihost.com/rss/forum-rss14-m.xml">Php and MySQL</source>
			<guid isPermaLink="true">http://www.frihost.com/forums/vt-111321.html</guid>
		</item>
		<item>
			<title>PHP, AJAX and setInterval. Can't make a stopwatch</title>
			<link>http://www.frihost.com/forums/vt-111348.html</link>
			<pubDate>Thu, 29 Oct 2009 07:57:16 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : PHP, AJAX and setInterval. Can't make a stopwatch &lt;/div&gt; &lt;hr/&gt; We are trying to build an online testing system. Which has a lot of feature.
&lt;br/&gt;
There is a student part and there is a teacher part.
&lt;br/&gt;
A Student can login and do the test while teacher authorizes the test.
&lt;br/&gt;
There is a countdown timer in the test.
&lt;br/&gt;
We are using a session variable , AJAX and setinterval to countdown the timer. But the other thing is that we should also put a function into the teacher side that they can pause a test and resume a test.
&lt;br/&gt;
Well at first I thought I could make it pause by using the AJAX. But actually it does not work I don't know what is the problem. Either the setinterval or the SESSION variable.
&lt;br/&gt;

&lt;br/&gt;
&lt;/div class=&quot;detail&quot;&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;div class=&quot;detail&quot; class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/div class=&quot;detail&quot;&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;
&lt;br/&gt;
session_start&amp;#40;&amp;#41;;
&lt;br/&gt;
&amp;#40;.....Get Time Limit From Database&amp;#41;
&lt;br/&gt;
$TimeLimit = $Duration;
&lt;br/&gt;
if&amp;#40;!isset&amp;#40;$_SESSION&amp;#91;&amp;quot;startTime&amp;quot;&amp;#93;&amp;#41;&amp;#41;&amp;#123;$_SESSION&amp;#91;&amp;quot;startTime&amp;quot;&amp;#93; = mktime&amp;#40;date&amp;#40;G&amp;#41;,date&amp;#40;i&amp;#41;,date&amp;#40;s&amp;#41;,date&amp;#40;m&amp;#41;,date&amp;#40;d&amp;#41;,date&amp;#40;Y&amp;#41;&amp;#41; + $TimeLimit + 1;&amp;#125; 
&lt;br/&gt;
?&amp;gt;
&lt;br/&gt;

&lt;br/&gt;
&amp;lt;script&amp;gt;
&lt;br/&gt;
var ct = setInterval&amp;#40;&amp;quot;calculate_time&amp;#40;&amp;#41;&amp;quot;,100&amp;#41;; // Start clock.
&lt;br/&gt;
function calculate_time&amp;#40;&amp;#41;
&lt;br/&gt;
&amp;#123;
&lt;br/&gt;
&amp;nbsp;var active = ajaxFunction&amp;#40;&amp;#41;;
&lt;br/&gt;
&amp;nbsp;if &amp;#40;active == 0&amp;#41; &amp;#123;&amp;nbsp; &amp;nbsp;clearInterval&amp;#40;ct&amp;#41;;&amp;nbsp; &amp;nbsp;return false; &amp;#125;
&lt;br/&gt;
&amp;nbsp;
&lt;br/&gt;
&amp;nbsp;if &amp;#40;active == 1&amp;#41; &amp;#123;
&lt;br/&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; ct = setInterval&amp;#40;this,100&amp;#41;;
&lt;br/&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; var end_time = &amp;quot;&amp;lt;?php echo $_SESSION&amp;#91;startTime&amp;#93; ; ?&amp;gt;&amp;quot;;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp; var dt = new Date&amp;#40;&amp;#41;;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; 
&lt;br/&gt;
&amp;nbsp; &amp;nbsp; var time_stamp = dt.getTime&amp;#40;&amp;#41;/1000; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp; var total_time = end_time - Math.round&amp;#40;time_stamp&amp;#41;; &amp;nbsp; &amp;nbsp;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp; var mins = Math.floor&amp;#40;total_time / 60&amp;#41;; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp; var secs = total_time - &amp;#40;mins * 60&amp;#41;; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp; if&amp;#40;secs &amp;lt; 10&amp;#41;&amp;#123;secs = &amp;quot;0&amp;quot; + secs;&amp;#125; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;
&lt;br/&gt;
&amp;#125;
&lt;br/&gt;
&amp;nbsp;document.getElementById&amp;#40;&amp;quot;txt&amp;quot;&amp;#41;.value = mins + &amp;quot;&amp;#58;&amp;quot; + secs; 
&lt;br/&gt;
&amp;nbsp;&amp;#40;..........&amp;#41; 
&lt;br/&gt;
&amp;#125; 
&lt;br/&gt;
&amp;nbsp;function ajaxFunction&amp;#40;url&amp;#41;
&lt;br/&gt;
&amp;#123;...............;xmlhttp.open&amp;#40;&amp;quot;GET&amp;quot;,&amp;quot;checkpause.php&amp;quot;,true&amp;#41;;xmlhttp.send&amp;#40;null&amp;#41;;return a;&amp;#125;
&lt;br/&gt;
&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;div class=&quot;detail&quot; class=&quot;postbody&quot;&gt;
&lt;br/&gt;
Could Not get the whole code in maybe this would be ok&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://www.frihost.com/forums/vt-111348.html&quot; title=&quot;PHP, AJAX and setInterval. Can't make a stopwatch&quot;&gt;&lt;b&gt;More ...&lt;/b&gt;&lt;/a&gt; &lt;hr/&gt; &lt;br/&gt; &lt;u&gt;Stats :&lt;/u&gt; 2 Replies</description>
			<source url="http://www.frihost.com/rss/forum-rss14-m.xml">Php and MySQL</source>
			<guid isPermaLink="true">http://www.frihost.com/forums/vt-111348.html</guid>
		</item>
		<item>
			<title>including javascript in php file</title>
			<link>http://www.frihost.com/forums/vt-109752.html</link>
			<pubDate>Thu, 29 Oct 2009 04:05:56 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : including javascript in php file &lt;/div&gt; &lt;hr/&gt; Is there a way to include javascript code in a PHP file?
&lt;br/&gt;

&lt;br/&gt;
I have the following code I want to embed in a php file, which was originally an HTML file :-
&lt;br/&gt;

&lt;br/&gt;
&amp;lt;script language=&amp;quot;JavaScript&amp;quot; type=&amp;quot;text/javascript&amp;quot;&amp;gt;
&lt;br/&gt;
&amp;lt;!--
&lt;br/&gt;
function checkform ( form )
&lt;br/&gt;
{
&lt;br/&gt;

&lt;br/&gt;
if (form.fname.value == &amp;quot;&amp;quot;) {
&lt;br/&gt;
 alert( &amp;quot;Please enter your Name. &amp;#1575;&amp;#1604;&amp;#1585;&amp;#1580;&amp;#1575;&amp;#1569; &amp;#1573;&amp;#1583;&amp;#1582;&amp;#1575;&amp;#1604; &amp;#1575;&amp;#1604;&amp;#1573;&amp;#1587;&amp;#1605;&amp;quot; );
&lt;br/&gt;
 form.fname.focus();
&lt;br/&gt;
 return false ;
&lt;br/&gt;
}
&lt;br/&gt;
else if (form.civilid.value == &amp;quot;&amp;quot;) {
&lt;br/&gt;
 alert( &amp;quot;Please enter your Civil id. &amp;#1575;&amp;#1604;&amp;#1585;&amp;#1580;&amp;#1575;&amp;#1569; &amp;#1573;&amp;#1583;&amp;#1582;&amp;#1575;&amp;#1604; &amp;#1575;&amp;#1604;&amp;#1585;&amp;#1602;&amp;#1605; &amp;#1575;&amp;#1604;&amp;#1605;&amp;#1583;&amp;#1606;&amp;#1610; &amp;quot; );
&lt;br/&gt;
 form.civilid.focus();
&lt;br/&gt;
 return false ;
&lt;br/&gt;
}
&lt;br/&gt;

&lt;br/&gt;
----end----of---code---
&lt;br/&gt;
if anybody knows, please do respond.&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://www.frihost.com/forums/vt-109752.html&quot; title=&quot;including javascript in php file&quot;&gt;&lt;b&gt;More ...&lt;/b&gt;&lt;/a&gt; &lt;hr/&gt; &lt;br/&gt; &lt;u&gt;Stats :&lt;/u&gt; 7 Replies</description>
			<source url="http://www.frihost.com/rss/forum-rss14-m.xml">Php and MySQL</source>
			<guid isPermaLink="true">http://www.frihost.com/forums/vt-109752.html</guid>
		</item>
		<item>
			<title>Stat Trackers</title>
			<link>http://www.frihost.com/forums/vt-111198.html</link>
			<pubDate>Tue, 27 Oct 2009 18:35:37 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : Stat Trackers &lt;/div&gt; &lt;hr/&gt; How do website stat trackers that collect data like visitor's IP, referrer, etc. work without putting a snippet of code on each page?
&lt;br/&gt;

&lt;br/&gt;
Thanks,
&lt;br/&gt;

&lt;br/&gt;
-Nick &lt;img src=&quot;http://www.frihost.com/forums/http://www.frihost.com/forums/images/smiles/icon_smile.gif&quot; alt=&quot;Smile&quot; border=&quot;0&quot; /&gt; &lt;img src=&quot;http://www.frihost.com/forums/http://www.frihost.com/forums/images/smiles/icon_smile.gif&quot; alt=&quot;Smile&quot; border=&quot;0&quot; /&gt; &lt;img src=&quot;http://www.frihost.com/forums/http://www.frihost.com/forums/images/smiles/icon_smile.gif&quot; alt=&quot;Smile&quot; border=&quot;0&quot; /&gt;&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://www.frihost.com/forums/vt-111198.html&quot; title=&quot;Stat Trackers&quot;&gt;&lt;b&gt;More ...&lt;/b&gt;&lt;/a&gt; &lt;hr/&gt; &lt;br/&gt; &lt;u&gt;Stats :&lt;/u&gt; 8 Replies</description>
			<source url="http://www.frihost.com/rss/forum-rss14-m.xml">Php and MySQL</source>
			<guid isPermaLink="true">http://www.frihost.com/forums/vt-111198.html</guid>
		</item>
		<item>
			<title>Looking for a php IDE and Debugger tool</title>
			<link>http://www.frihost.com/forums/vt-111254.html</link>
			<pubDate>Tue, 27 Oct 2009 11:20:08 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : Looking for a php IDE and Debugger tool &lt;/div&gt; &lt;hr/&gt; Hi
&lt;br/&gt;

&lt;br/&gt;
I use Delphi to write applications. Delphi has a step thru debugger that enables you to spot errors in your code. Is there a free debugger for php..?
&lt;br/&gt;

&lt;br/&gt;
I seem to remember a free IDE with a debugger but I've lost track of its name.. 
&lt;br/&gt;

&lt;br/&gt;
Anyway if you know of a tool that will help me write php please let me know..
&lt;br/&gt;

&lt;br/&gt;
Thank you..&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://www.frihost.com/forums/vt-111254.html&quot; title=&quot;Looking for a php IDE and Debugger tool&quot;&gt;&lt;b&gt;More ...&lt;/b&gt;&lt;/a&gt; &lt;hr/&gt; &lt;br/&gt; &lt;u&gt;Stats :&lt;/u&gt; 4 Replies</description>
			<source url="http://www.frihost.com/rss/forum-rss14-m.xml">Php and MySQL</source>
			<guid isPermaLink="true">http://www.frihost.com/forums/vt-111254.html</guid>
		</item>
		<item>
			<title>Question about safe input from text boxes</title>
			<link>http://www.frihost.com/forums/vt-111120.html</link>
			<pubDate>Mon, 26 Oct 2009 18:19:23 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : Question about safe input from text boxes &lt;/div&gt; &lt;hr/&gt; Just trying to make a guestbook kind of interface for a website and I came to the idea of making a function to make sure the string is safe so it will not kill off the site. I managed to find this online and added a little bit to it and was wondering if anyone had something better or any ideas?
&lt;br/&gt;

&lt;br/&gt;

&lt;br/&gt;
if(get_magic_quotes_gpc()) 
&lt;br/&gt;
 {
&lt;br/&gt;
 $string = stripslashes($string);
&lt;br/&gt;
 }
&lt;br/&gt;
 if (phpversion() &amp;gt;= '4.3.0')
&lt;br/&gt;
 {
&lt;br/&gt;
 $string = mysql_real_escape_string($string);
&lt;br/&gt;
 }
&lt;br/&gt;
 else
&lt;br/&gt;
 {
&lt;br/&gt;
 $string = mysql_escape_string($string);
&lt;br/&gt;
 }
&lt;br/&gt;
 $badWords = //This is just swear words and SQL terms
&lt;br/&gt;
 $string = eregi_replace($badWords, &amp;quot;&amp;quot;, $string);
&lt;br/&gt;
 $string = htmlentities($string, ENT_QUOTES);&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://www.frihost.com/forums/vt-111120.html&quot; title=&quot;Question about safe input from text boxes&quot;&gt;&lt;b&gt;More ...&lt;/b&gt;&lt;/a&gt; &lt;hr/&gt; &lt;br/&gt; &lt;u&gt;Stats :&lt;/u&gt; 13 Replies</description>
			<source url="http://www.frihost.com/rss/forum-rss14-m.xml">Php and MySQL</source>
			<guid isPermaLink="true">http://www.frihost.com/forums/vt-111120.html</guid>
		</item>
		<item>
			<title>Warcraft III Roster Parse</title>
			<link>http://www.frihost.com/forums/vt-111262.html</link>
			<pubDate>Mon, 26 Oct 2009 15:47:14 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : Warcraft III Roster Parse &lt;/div&gt;&lt;hr/&gt; I have been working on pulling data from warcraft III clan rosters, and now that I have a functioning module. I'd like some help cleaning it up. &lt;img src=&quot;http://www.frihost.com/forums/http://www.frihost.com/forums/images/smiles/icon_smile.gif&quot; alt=&quot;Smile&quot; border=&quot;0&quot; /&gt;
&lt;br/&gt;
&lt;a href=&quot;http://classic.battle.net/war3/ladder/w3xp-clan-profile.aspx?ClanTag=THA&amp;amp;Gateway=Azeroth&amp;amp;SortField=rank&amp;amp;SortDir=Desc&amp;amp;PageNo=1&quot; target=&quot;_blank&quot; class=&quot;postlink&quot; rel=&quot;nofollow&quot;&gt;The Source&lt;/a&gt;
&lt;br/&gt;
&lt;a href=&quot;http://clanhunter.frih.net/drafts/wc3.phps&quot; target=&quot;_blank&quot; class=&quot;postlink&quot; rel=&quot;nofollow&quot;&gt;The Script&lt;/a&gt;
&lt;br/&gt;
&lt;a href=&quot;http://clanhunter.frih.net/drafts/wc3.php&quot; target=&quot;_blank&quot; class=&quot;postlink&quot; rel=&quot;nofollow&quot;&gt;The Output&lt;/a&gt;
&lt;br/&gt;
The html source ended up being a lot more messy than I would have hoped, but I can't do much about that. What I can do is try to clean up this script a bit, if you guys see anything that could be made more efficient let me know. (I'm sure there is plenty.)
&lt;br/&gt;

&lt;br/&gt;
Currently I have no plans to cache the data. To my knowledge battle.net does not have the same limitations on it as wowarmory.com. This means it *shouldn't* hurt me to pull live data. If it turns out I need to write a cache I have a system for xml cacheing right now, html can't be much harder to store. I'm hopeing to get this script cleaned up so I can spread it around the warcraft III community, I'm sure someone is going to find it useful.&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://www.frihost.com/forums/vt-111262.html&quot; title=&quot;Warcraft III Roster Parse&quot;&gt;&lt;b&gt;More ...&lt;/b&gt;&lt;/a&gt; &lt;hr/&gt; &lt;br/&gt; &lt;u&gt;Stats :&lt;/u&gt; 1 Post</description>
			<source url="http://www.frihost.com/rss/forum-rss14-m.xml">Php and MySQL</source>
			<guid isPermaLink="true">http://www.frihost.com/forums/vt-111262.html</guid>
		</item>
		<item>
			<title>Mysql</title>
			<link>http://www.frihost.com/forums/vt-111130.html</link>
			<pubDate>Sat, 24 Oct 2009 11:31:50 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : Mysql &lt;/div&gt; &lt;hr/&gt; How to select and show all data from a mysql table in php?&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://www.frihost.com/forums/vt-111130.html&quot; title=&quot;Mysql&quot;&gt;&lt;b&gt;More ...&lt;/b&gt;&lt;/a&gt; &lt;hr/&gt; &lt;br/&gt; &lt;u&gt;Stats :&lt;/u&gt; 11 Replies</description>
			<source url="http://www.frihost.com/rss/forum-rss14-m.xml">Php and MySQL</source>
			<guid isPermaLink="true">http://www.frihost.com/forums/vt-111130.html</guid>
		</item>
		<item>
			<title>Cron Jobs dir path</title>
			<link>http://www.frihost.com/forums/vt-110631.html</link>
			<pubDate>Wed, 21 Oct 2009 23:03:59 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : Cron Jobs dir path &lt;/div&gt; &lt;hr/&gt; Hi,
&lt;br/&gt;

&lt;br/&gt;
I have two scripts i made for my sites that run fine when i run them directly (going to the url)
&lt;br/&gt;

&lt;br/&gt;
but when i get cron to run them they dont work.
&lt;br/&gt;

&lt;br/&gt;
Here is one of the scripts..
&lt;br/&gt;

&lt;br/&gt;
[code]&amp;lt;?php
&lt;br/&gt;
include&amp;#40;&amp;quot;connection.php&amp;quot;&amp;#41;;
&lt;br/&gt;

&lt;br/&gt;
$game = mysql_fetch_array&amp;#40;mysql_query&amp;#40;&amp;quot;SELECT * FROM `games` WHERE `id` &amp;gt; '355' AND `status` = '0' ORDER BY `id` ASC LIMIT 1&amp;quot;&amp;#41;&amp;#41;;
&lt;br/&gt;

&lt;br/&gt;
$imgfilename = $_SERVER&amp;#91;&amp;quot;DOCUMENT_ROOT&amp;quot;&amp;#93; . &amp;quot;/games/flash/&amp;quot; . $game&amp;#91;id&amp;#93; . &amp;quot;/img.gif&amp;quot;;
&lt;br/&gt;
$flashfilename = $_SERVER&amp;#91;&amp;quot;DOCUMENT_ROOT&amp;quot;&amp;#93; . &amp;quot;/games/flash/&amp;quot; . $game&amp;#91;id&amp;#93; . &amp;quot;/game.&amp;quot; . $game&amp;#91;codebase&amp;#93;;
&lt;br/&gt;

&lt;br/&gt;
if&amp;#40;&amp;#40;$game&amp;#91;category_id&amp;#93; != &amp;quot;0&amp;quot;&amp;#41; &amp;amp;&amp;amp; &amp;#40;&amp;#40;file_exists&amp;#40;$imgfilename&amp;#41;&amp;#41; &amp;amp;&amp;amp; &amp;#40;file_exists&amp;#40;$flashfilename&amp;#41;&amp;#41;&amp;#41; &amp;amp;&amp;amp; &amp;#40;&amp;#40;$game&amp;#91;width&amp;#93; != &amp;quot;0&amp;quot;&amp;#41; &amp;amp;&amp;amp; &amp;#40;$game&amp;#91;height&amp;#93; != &amp;quot;0&amp;quot;&amp;#41;&amp;#41;&amp;#41; &amp;#123;
&lt;br/&gt;
	$date_added = date&amp;#40;&amp;quot;j/n/Y&amp;quot;&amp;#41;;
&lt;br/&gt;
	$release_game = mysql_query&amp;#40;&amp;quot;UPDATE `games` SET `status` = '1', `date_added` = '&amp;quot; . $date_added . &amp;quot;' WHERE `id` = '&amp;quot; . ...&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://www.frihost.com/forums/vt-110631.html&quot; title=&quot;Cron Jobs dir path&quot;&gt;&lt;b&gt;More ...&lt;/b&gt;&lt;/a&gt; &lt;hr/&gt; &lt;br/&gt; &lt;u&gt;Stats :&lt;/u&gt; 4 Replies</description>
			<source url="http://www.frihost.com/rss/forum-rss14-m.xml">Php and MySQL</source>
			<guid isPermaLink="true">http://www.frihost.com/forums/vt-110631.html</guid>
		</item>
		<item>
			<title>did my sql is unlimited</title>
			<link>http://www.frihost.com/forums/vt-109656.html</link>
			<pubDate>Wed, 21 Oct 2009 10:37:16 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : did my sql is unlimited &lt;/div&gt; &lt;hr/&gt; &lt;div class=&quot;detail&quot; style=&quot;font-weight: bold&quot;&gt;did my sql is unlimited ?&lt;/div class=&quot;detail&quot;&gt;[/b]&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://www.frihost.com/forums/vt-109656.html&quot; title=&quot;did my sql is unlimited&quot;&gt;&lt;b&gt;More ...&lt;/b&gt;&lt;/a&gt; &lt;hr/&gt; &lt;br/&gt; &lt;u&gt;Stats :&lt;/u&gt; 6 Replies</description>
			<source url="http://www.frihost.com/rss/forum-rss14-m.xml">Php and MySQL</source>
			<guid isPermaLink="true">http://www.frihost.com/forums/vt-109656.html</guid>
		</item>
		<item>
			<title>Simple Calendar script</title>
			<link>http://www.frihost.com/forums/vt-110001.html</link>
			<pubDate>Tue, 20 Oct 2009 14:52:12 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : Simple Calendar script &lt;/div&gt; &lt;hr/&gt; Hello,
&lt;br/&gt;

&lt;br/&gt;
I am looking for a simple calendar I can add to my site. I went to do some googling, but most of the calendars out there are WAY too advanced for my use.
&lt;br/&gt;

&lt;br/&gt;
What I basicly need is a calendar (monthly calendar) that lists all the days of the month. I should be able to add events, that will make the date look colored on the calendar. If people would click on the date, they would be redirected to a page I costumly made.
&lt;br/&gt;

&lt;br/&gt;
If anyone got any suggestions of websites with scripts/what would the best way to do it, please let me know!&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://www.frihost.com/forums/vt-110001.html&quot; title=&quot;Simple Calendar script&quot;&gt;&lt;b&gt;More ...&lt;/b&gt;&lt;/a&gt; &lt;hr/&gt; &lt;br/&gt; &lt;u&gt;Stats :&lt;/u&gt; 5 Replies</description>
			<source url="http://www.frihost.com/rss/forum-rss14-m.xml">Php and MySQL</source>
			<guid isPermaLink="true">http://www.frihost.com/forums/vt-110001.html</guid>
		</item>
		<item>
			<title>Replacing a string of text with str_replace</title>
			<link>http://www.frihost.com/forums/vt-110983.html</link>
			<pubDate>Tue, 20 Oct 2009 05:18:23 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : Replacing a string of text with str_replace &lt;/div&gt; &lt;hr/&gt; I want to replace a text like this:
&lt;br/&gt;

&lt;br/&gt;
&lt;/div class=&quot;detail&quot;&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;div class=&quot;detail&quot; class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/div class=&quot;detail&quot;&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;&amp;#91;url link=&amp;quot;http&amp;#58;//google.com&amp;quot; target=&amp;quot;_blank&amp;quot;&amp;#93;Google&amp;#91;/url&amp;#93;&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;div class=&quot;detail&quot; class=&quot;postbody&quot;&gt;
&lt;br/&gt;

&lt;br/&gt;
With the standard HTML one:
&lt;br/&gt;

&lt;br/&gt;
&lt;/div class=&quot;detail&quot;&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;div class=&quot;detail&quot; class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/div class=&quot;detail&quot;&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;&amp;lt;a href=&amp;quot;http&amp;#58;//google.com&amp;quot; target=&amp;quot;_blank&amp;quot;&amp;gt;Google&amp;lt;/a&amp;gt;&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;div class=&quot;detail&quot; class=&quot;postbody&quot;&gt;
&lt;br/&gt;

&lt;br/&gt;
How can I do that with str_replace and regex?
&lt;br/&gt;

&lt;br/&gt;
Please help...&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://www.frihost.com/forums/vt-110983.html&quot; title=&quot;Replacing a string of text with str_replace&quot;&gt;&lt;b&gt;More ...&lt;/b&gt;&lt;/a&gt; &lt;hr/&gt; &lt;br/&gt; &lt;u&gt;Stats :&lt;/u&gt; 9 Replies</description>
			<source url="http://www.frihost.com/rss/forum-rss14-m.xml">Php and MySQL</source>
			<guid isPermaLink="true">http://www.frihost.com/forums/vt-110983.html</guid>
		</item>
		<item>
			<title>Does Xampp come with a mail server?</title>
			<link>http://www.frihost.com/forums/vt-111061.html</link>
			<pubDate>Sun, 18 Oct 2009 23:30:04 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : Does Xampp come with a mail server? &lt;/div&gt; &lt;hr/&gt; I was just wondering, does xampp have a built in mail server?
&lt;br/&gt;

&lt;br/&gt;
If not does anyone know how i could get one?&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://www.frihost.com/forums/vt-111061.html&quot; title=&quot;Does Xampp come with a mail server?&quot;&gt;&lt;b&gt;More ...&lt;/b&gt;&lt;/a&gt; &lt;hr/&gt; &lt;br/&gt; &lt;u&gt;Stats :&lt;/u&gt; 2 Replies</description>
			<source url="http://www.frihost.com/rss/forum-rss14-m.xml">Php and MySQL</source>
			<guid isPermaLink="true">http://www.frihost.com/forums/vt-111061.html</guid>
		</item>
		<item>
			<title>Problem with my script....</title>
			<link>http://www.frihost.com/forums/vt-111021.html</link>
			<pubDate>Sun, 18 Oct 2009 20:26:49 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : Problem with my script.... &lt;/div&gt; &lt;hr/&gt; Hi 
&lt;br/&gt;
I am trying to make a script that updates a hidden feild with a week number of a date wich I type in a textfield, and submits to the database.
&lt;br/&gt;

&lt;br/&gt;
I keep getting the error message: Warning: mktime() expects parameter 4 to be long
&lt;br/&gt;

&lt;br/&gt;
The script looks like this:
&lt;br/&gt;

&lt;br/&gt;
&lt;/div class=&quot;detail&quot;&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;div class=&quot;detail&quot; class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/div class=&quot;detail&quot;&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;&amp;lt;form action=&amp;quot;&amp;lt;?php echo $editFormAction; ?&amp;gt;&amp;quot; method=&amp;quot;post&amp;quot; name=&amp;quot;form1&amp;quot; id=&amp;quot;form1&amp;quot;&amp;gt;
&lt;br/&gt;
&amp;nbsp;&amp;lt;table align=&amp;quot;left&amp;quot;&amp;gt;
&lt;br/&gt;
&amp;nbsp;&amp;lt;tr valign=&amp;quot;baseline&amp;quot;&amp;gt;
&lt;br/&gt;
&amp;nbsp;&amp;lt;td nowrap=&amp;quot;nowrap&amp;quot; align=&amp;quot;right&amp;quot;&amp;gt;Fooddate&amp;#58;&amp;lt;/td&amp;gt;
&lt;br/&gt;
&amp;nbsp;&amp;lt;td&amp;gt;&amp;lt;input type=&amp;quot;text&amp;quot; name=&amp;quot;Fooddate&amp;quot; value=&amp;quot;&amp;lt;?php echo date&amp;#40;'m-d-Y'&amp;#41;; ?&amp;gt;&amp;quot; size=&amp;quot;32&amp;quot; /&amp;gt;&amp;lt;/td&amp;gt;
&lt;br/&gt;
&amp;nbsp;&amp;lt;/tr&amp;gt;
&lt;br/&gt;
&amp;nbsp;&amp;lt;tr valign=&amp;quot;baseline&amp;quot;&amp;gt;
&lt;br/&gt;
&amp;nbsp;&amp;lt;td nowrap=&amp;quot;nowrap&amp;quot; align=&amp;quot;right&amp;quot;&amp;gt;Meal&amp;#58;&amp;lt;/td&amp;gt;
&lt;br/&gt;
&amp;nbsp;&amp;lt;td&amp;gt;&amp;lt;input type=&amp;quot;text&amp;quot; name=&amp;quot;Meal&amp;quot; value=&amp;quot;&amp;quot; size=&amp;quot;32&amp;quot; /&amp;gt;&amp;lt;/td&amp;gt;
&lt;br/&gt;
&amp;nbsp;&amp;lt;/tr&amp;gt;
&lt;br/&gt;
&amp;nbsp;&amp;lt;tr valign=&amp;quot;baseline&amp;quot;&amp;gt;
&lt;br/&gt;
&amp;nbsp;&amp;lt;td nowrap=&amp;quot;nowrap&amp;quot; align=&amp;quot;right&amp;quot;&amp;gt;&amp;amp;nbsp;&amp;lt;/td&amp;gt;
&lt;br/&gt;
&amp;nbsp;&amp;lt;td&amp;gt;&amp;lt;input type=&amp;quot;submit&amp;quot; value=&amp;quot;Insert record&amp;quot; /&amp;gt;&amp;lt;/td&amp;gt;
&lt;br/&gt;
&amp;nbsp;&amp;lt;/tr&amp;gt;
&lt;br/&gt;
&amp;nbsp;&amp;lt;/table&amp;gt;
&lt;br/&gt;
&amp;nbsp;&amp;lt;input type=&amp;quot;hidden&amp;quot; name=&amp;quot;Transact_ID&amp;quot; value=&amp;quot;&amp;quot; /&amp;gt;
&lt;br/&gt;
&amp;nbsp;&amp;lt;input type=&amp;quot;hidden&amp;quot; name=&amp;quot;Emp_no&amp;quot; value=&amp;quot;&amp;lt;?php echo $row_employee&amp;#91;'no'&amp;#93;; ?&amp;gt;&amp;quot; /&amp;gt;
&lt;br/&gt;
&amp;nbsp;&amp;lt;input type=&amp;quot;hidden&amp;quot; name=&amp;quot;C_Date&amp;quot; value=&amp;quot;&amp;lt;?php echo date&amp;#40;'m-d-Y'&amp;#41;; ?&amp;gt;&amp;quot; /&amp;gt;
&lt;br/&gt;
&amp;nbsp;&amp;lt;input type=&amp;quot;hidden&amp;quot; name=&amp;quot;U_Date&amp;quot; value=&amp;quot;&amp;quot; /&amp;gt;
&lt;br/&gt;
&amp;nbsp;&amp;lt;input type=&amp;quot;hidden&amp;quot; name=&amp;quot;U_User&amp;quot; value=&amp;quot;&amp;quot; /&amp;gt;
&lt;br/&gt;
&amp;nbsp;&amp;lt;input type=&amp;quot;hidden&amp;quot; name=&amp;quot;Company&amp;quot; value=&amp;quot;&amp;lt;?php echo $row_employee&amp;#91;'company'&amp;#93;; ?&amp;gt;&amp;quot; /&amp;gt;
&lt;br/&gt;
&amp;nbsp;&amp;lt;input type=&amp;quot;hidden&amp;quot; name=&amp;quot;Week&amp;quot; value=&amp;quot;&amp;lt;?php echo $testvecka; ?&amp;gt;&amp;quot; /&amp;gt;
&lt;br/&gt;
&amp;nbsp;&amp;lt;input type=&amp;quot;hidden&amp;quot; name=&amp;quot;MM_insert&amp;quot; value=&amp;quot;form1&amp;quot; /&amp;gt;
&lt;br/&gt;
&amp;nbsp;&amp;lt;?php 
&lt;br/&gt;
$date = $_POST&amp;#91;'Fooddate'&amp;#93;;
&lt;br/&gt;
list&amp;#40;$month, $day, $year&amp;#41; = split&amp;#40;'&amp;#91;/.-&amp;#93;', $date&amp;#41;;
&lt;br/&gt;
$testvecka = date&amp;#40;'W', mktime&amp;#40;0, 0, 0, date&amp;#40;$month&amp;#41; , date&amp;#40;$day&amp;#41; , date&amp;#40;$year&amp;#41;&amp;#41;&amp;#41;;
&lt;br/&gt;
?&amp;gt;
&lt;br/&gt;
&amp;lt;/form&amp;gt;
&lt;br/&gt;
&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;div class=&quot;detail&quot; class=&quot;postbody&quot;&gt;
&lt;br/&gt;
The point with it is that I don't want to have a static date, I want it to be dynamic and that has turn my hair grey &lt;img src=&quot;http://www.frihost.com/forums/http://www.frihost.com/forums/images/smiles/icon_biggrin.gif&quot; alt=&quot;Very Happy&quot; border=&quot;0&quot; /&gt;
&lt;br/&gt;

&lt;br/&gt;
Can some one please help me?
&lt;br/&gt;
Best Regards
&lt;br/&gt;
Jimmy&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://www.frihost.com/forums/vt-111021.html&quot; title=&quot;Problem with my script....&quot;&gt;&lt;b&gt;More ...&lt;/b&gt;&lt;/a&gt; &lt;hr/&gt; &lt;br/&gt; &lt;u&gt;Stats :&lt;/u&gt; 5 Replies</description>
			<source url="http://www.frihost.com/rss/forum-rss14-m.xml">Php and MySQL</source>
			<guid isPermaLink="true">http://www.frihost.com/forums/vt-111021.html</guid>
		</item>
		<item>
			<title>Link back to page where I came From</title>
			<link>http://www.frihost.com/forums/vt-110845.html</link>
			<pubDate>Sun, 11 Oct 2009 19:50:38 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : Link back to page where I came From &lt;/div&gt; &lt;hr/&gt; Hi
&lt;br/&gt;

&lt;br/&gt;
I want to link to a series of pages that all have the same picture on them. The user can arrive at these series of pages from many different pages. When they want to return back to the first link that got them to these series of pages I want them to be able to click this pic.
&lt;br/&gt;

&lt;br/&gt;
How can I give this page that link. 
&lt;br/&gt;

&lt;br/&gt;
I hope I have explained my self..
&lt;br/&gt;

&lt;br/&gt;
Thank you&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://www.frihost.com/forums/vt-110845.html&quot; title=&quot;Link back to page where I came From&quot;&gt;&lt;b&gt;More ...&lt;/b&gt;&lt;/a&gt; &lt;hr/&gt; &lt;br/&gt; &lt;u&gt;Stats :&lt;/u&gt; 8 Replies</description>
			<source url="http://www.frihost.com/rss/forum-rss14-m.xml">Php and MySQL</source>
			<guid isPermaLink="true">http://www.frihost.com/forums/vt-110845.html</guid>
		</item>
		<item>
			<title>PHP can be run on Microsoft Windows IIS ???</title>
			<link>http://www.frihost.com/forums/vt-108888.html</link>
			<pubDate>Thu, 08 Oct 2009 22:40:21 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : PHP can be run on Microsoft Windows IIS ??? &lt;/div&gt; &lt;hr/&gt; Can PHP be run on Microsoft Windows IIS?? If yes how to make it possible?&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://www.frihost.com/forums/vt-108888.html&quot; title=&quot;PHP can be run on Microsoft Windows IIS ???&quot;&gt;&lt;b&gt;More ...&lt;/b&gt;&lt;/a&gt; &lt;hr/&gt; &lt;br/&gt; &lt;u&gt;Stats :&lt;/u&gt; 22 Replies</description>
			<source url="http://www.frihost.com/rss/forum-rss14-m.xml">Php and MySQL</source>
			<guid isPermaLink="true">http://www.frihost.com/forums/vt-108888.html</guid>
		</item>
		<item>
			<title>I want to output an img url from a random image script</title>
			<link>http://www.frihost.com/forums/vt-110829.html</link>
			<pubDate>Thu, 08 Oct 2009 22:38:32 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : I want to output an img url from a random image script &lt;/div&gt; &lt;hr/&gt; I've been googling this for literally two hours, and finding nothing that is exactly what I need. Forgive me , but I'm unfamiliar with PHP, so there's just no way I can do this myself. If you know of a tutorial that explains what I need, please point me in that direction, if you don't want to explain it to me yourself.
&lt;br/&gt;

&lt;br/&gt;
What I need is this: I want to generate an image url that I can display on any webpage that will display a random image from a directory. I've found numerous scripts on how to create the random image, and I've done that, but I don't know where to go from here, or if I'm even in the right direction at all. 
&lt;br/&gt;

&lt;br/&gt;
Please help!&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://www.frihost.com/forums/vt-110829.html&quot; title=&quot;I want to output an img url from a random image script&quot;&gt;&lt;b&gt;More ...&lt;/b&gt;&lt;/a&gt; &lt;hr/&gt; &lt;br/&gt; &lt;u&gt;Stats :&lt;/u&gt; 5 Replies</description>
			<source url="http://www.frihost.com/rss/forum-rss14-m.xml">Php and MySQL</source>
			<guid isPermaLink="true">http://www.frihost.com/forums/vt-110829.html</guid>
		</item>
		<item>
			<title>Email Using PHP</title>
			<link>http://www.frihost.com/forums/vt-110193.html</link>
			<pubDate>Wed, 07 Oct 2009 19:46:45 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : Email Using PHP &lt;/div&gt; &lt;hr/&gt; How do I email using PHP? I've never had any formal PHP lessons though I've researched some to get my codes working, so please be easy on the technical terms. &lt;img src=&quot;http://www.frihost.com/forums/http://www.frihost.com/forums/images/smiles/icon_biggrin.gif&quot; alt=&quot;Very Happy&quot; border=&quot;0&quot; /&gt;
&lt;br/&gt;

&lt;br/&gt;
I've tried using some snippet I found online, but using the localhost, it seems impossible. Any tips on this?&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://www.frihost.com/forums/vt-110193.html&quot; title=&quot;Email Using PHP&quot;&gt;&lt;b&gt;More ...&lt;/b&gt;&lt;/a&gt; &lt;hr/&gt; &lt;br/&gt; &lt;u&gt;Stats :&lt;/u&gt; 9 Replies</description>
			<source url="http://www.frihost.com/rss/forum-rss14-m.xml">Php and MySQL</source>
			<guid isPermaLink="true">http://www.frihost.com/forums/vt-110193.html</guid>
		</item>
		<item>
			<title>Auto updating/refreshing</title>
			<link>http://www.frihost.com/forums/vt-110452.html</link>
			<pubDate>Tue, 06 Oct 2009 08:43:23 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : Auto updating/refreshing &lt;/div&gt; &lt;hr/&gt; I want to find a way to auto update a page to the newest content as change happens. For instance, like in an instant messenger conversation you see what the other person sends you without having to refresh anything.
&lt;br/&gt;

&lt;br/&gt;
I've ran into this problem before and basically implemented an AJAX script that fetched data from the server every half a second. This worked, but it was an incredible bandwidth hog. I need find a way to do this by using as little bandwidth as possible yet still make things seamless and smooth.
&lt;br/&gt;

&lt;br/&gt;
Any ideas?&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://www.frihost.com/forums/vt-110452.html&quot; title=&quot;Auto updating/refreshing&quot;&gt;&lt;b&gt;More ...&lt;/b&gt;&lt;/a&gt; &lt;hr/&gt; &lt;br/&gt; &lt;u&gt;Stats :&lt;/u&gt; 12 Replies</description>
			<source url="http://www.frihost.com/rss/forum-rss14-m.xml">Php and MySQL</source>
			<guid isPermaLink="true">http://www.frihost.com/forums/vt-110452.html</guid>
		</item>
		<item>
			<title>PHP Image crop</title>
			<link>http://www.frihost.com/forums/vt-110562.html</link>
			<pubDate>Mon, 28 Sep 2009 17:07:51 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : PHP Image crop &lt;/div&gt; &lt;hr/&gt; Hi
&lt;br/&gt;

&lt;br/&gt;
I need a script that can open a gif file from the server (100x100px) and resize it 10 100x75px.
&lt;br/&gt;

&lt;br/&gt;
I only need it to work with gif files.
&lt;br/&gt;

&lt;br/&gt;

&lt;br/&gt;
Also is there a way to add a 1 px solid black border around the edge?
&lt;br/&gt;

&lt;br/&gt;
Thanks
&lt;br/&gt;

&lt;br/&gt;
Daniel&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://www.frihost.com/forums/vt-110562.html&quot; title=&quot;PHP Image crop&quot;&gt;&lt;b&gt;More ...&lt;/b&gt;&lt;/a&gt; &lt;hr/&gt; &lt;br/&gt; &lt;u&gt;Stats :&lt;/u&gt; 5 Replies</description>
			<source url="http://www.frihost.com/rss/forum-rss14-m.xml">Php and MySQL</source>
			<guid isPermaLink="true">http://www.frihost.com/forums/vt-110562.html</guid>
		</item>
		<item>
			<title>php tutorial</title>
			<link>http://www.frihost.com/forums/vt-110490.html</link>
			<pubDate>Sun, 27 Sep 2009 00:41:40 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : php tutorial &lt;/div&gt; &lt;hr/&gt; where can i find a good php tutorial? I've got plenty of experience in IT (20 years) and have been developing mainly in ms tools.
&lt;br/&gt;
However, i've got to dive into existing php-code to make changes. Collegue has left the company i'm working.
&lt;br/&gt;
Were can i get a quick intro?&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://www.frihost.com/forums/vt-110490.html&quot; title=&quot;php tutorial&quot;&gt;&lt;b&gt;More ...&lt;/b&gt;&lt;/a&gt; &lt;hr/&gt; &lt;br/&gt; &lt;u&gt;Stats :&lt;/u&gt; 5 Replies</description>
			<source url="http://www.frihost.com/rss/forum-rss14-m.xml">Php and MySQL</source>
			<guid isPermaLink="true">http://www.frihost.com/forums/vt-110490.html</guid>
		</item>
		<item>
			<title>Php No Spam Mass Mailing Script</title>
			<link>http://www.frihost.com/forums/vt-108490.html</link>
			<pubDate>Fri, 25 Sep 2009 13:49:45 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : Php No Spam Mass Mailing Script &lt;/div&gt; &lt;hr/&gt; Hello there i have made a mass mailing script for people who want to advertise or broadcast their business well for now the script cannot be placed here but check the forum reply and you will se the script.
&lt;br/&gt;

&lt;br/&gt;
This script uses the php mail function so no need to worry bout smtp and others
&lt;br/&gt;

&lt;br/&gt;
it can send mails to the amount enetered by user and also if you wanna use it to spam it wont work
&lt;br/&gt;

&lt;br/&gt;
the download link is below
&lt;br/&gt;

&lt;br/&gt;
hey there well this script was written by me cos i tried getting one on the net but couldnt find one its a mass mailing script good for people with large websites and also its a no spam script so if you wanna use it for spam sOrry you just cant..............
&lt;br/&gt;

&lt;br/&gt;

&lt;br/&gt;
instruction for use ;
&lt;br/&gt;

&lt;br/&gt;

&lt;br/&gt;
php developers ought to know but for we who are lamers here it is
&lt;br/&gt;
now goto the lin below and copy the php script there and save as massmails.php and you are good to go
&lt;br/&gt;

&lt;br/&gt;
tinypaste.com/4c264
&lt;br/&gt;

&lt;br/&gt;
for help information contact me on
&lt;br/&gt;

&lt;br/&gt;
admin(at)wadja-africa(dot)org&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://www.frihost.com/forums/vt-108490.html&quot; title=&quot;Php No Spam Mass Mailing Script&quot;&gt;&lt;b&gt;More ...&lt;/b&gt;&lt;/a&gt; &lt;hr/&gt; &lt;br/&gt; &lt;u&gt;Stats :&lt;/u&gt; 10 Replies</description>
			<source url="http://www.frihost.com/rss/forum-rss14-m.xml">Php and MySQL</source>
			<guid isPermaLink="true">http://www.frihost.com/forums/vt-108490.html</guid>
		</item>
		<item>
			<title>&lt;?php ?&gt; Tags</title>
			<link>http://www.frihost.com/forums/vt-109517.html</link>
			<pubDate>Thu, 24 Sep 2009 15:18:32 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : &lt;?php ?&gt; Tags &lt;/div&gt; &lt;hr/&gt; Is it necessary to have &lt;/div class=&quot;detail&quot;&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;div class=&quot;detail&quot; class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/div class=&quot;detail&quot;&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;&amp;lt;?php ?&amp;gt;&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;div class=&quot;detail&quot; class=&quot;postbody&quot;&gt; on a page ending with *.php and that has absolutely no markup in it?
&lt;br/&gt;

&lt;br/&gt;
Thanks,
&lt;br/&gt;

&lt;br/&gt;
-Nick &lt;img src=&quot;http://www.frihost.com/forums/http://www.frihost.com/forums/images/smiles/icon_smile.gif&quot; alt=&quot;Smile&quot; border=&quot;0&quot; /&gt; &lt;img src=&quot;http://www.frihost.com/forums/http://www.frihost.com/forums/images/smiles/icon_smile.gif&quot; alt=&quot;Smile&quot; border=&quot;0&quot; /&gt; &lt;img src=&quot;http://www.frihost.com/forums/http://www.frihost.com/forums/images/smiles/icon_smile.gif&quot; alt=&quot;Smile&quot; border=&quot;0&quot; /&gt;&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://www.frihost.com/forums/vt-109517.html&quot; title=&quot;&amp;lt;?php ?&amp;gt; Tags&quot;&gt;&lt;b&gt;More ...&lt;/b&gt;&lt;/a&gt; &lt;hr/&gt; &lt;br/&gt; &lt;u&gt;Stats :&lt;/u&gt; 14 Replies</description>
			<source url="http://www.frihost.com/rss/forum-rss14-m.xml">Php and MySQL</source>
			<guid isPermaLink="true">http://www.frihost.com/forums/vt-109517.html</guid>
		</item>
		<item>
			<title>please check my code and tell me where the error is</title>
			<link>http://www.frihost.com/forums/vt-110298.html</link>
			<pubDate>Tue, 22 Sep 2009 14:52:38 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : please check my code and tell me where the error is &lt;/div&gt; &lt;hr/&gt; hello, i got this default code:&lt;/div class=&quot;detail&quot;&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;div class=&quot;detail&quot; class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/div class=&quot;detail&quot;&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;&amp;nbsp;&amp;lt;? &amp;#125; 
&lt;br/&gt;
if&amp;#40;$user_id==&amp;quot;13&amp;quot; || $user_id==&amp;quot;5&amp;quot;&amp;#41;&amp;#123;
&lt;br/&gt;
?&amp;gt;&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;div class=&quot;detail&quot; class=&quot;postbody&quot;&gt; and i want to make it it a way that all users would be include, that is user id 1-1000. how do i modify the code becuase the modification i did gave me erro. thanks.Please i really need to know this quick&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://www.frihost.com/forums/vt-110298.html&quot; title=&quot;please check my code and tell me where the error is&quot;&gt;&lt;b&gt;More ...&lt;/b&gt;&lt;/a&gt; &lt;hr/&gt; &lt;br/&gt; &lt;u&gt;Stats :&lt;/u&gt; 5 Replies</description>
			<source url="http://www.frihost.com/rss/forum-rss14-m.xml">Php and MySQL</source>
			<guid isPermaLink="true">http://www.frihost.com/forums/vt-110298.html</guid>
		</item>
		<item>
			<title>Copy files between server.</title>
			<link>http://www.frihost.com/forums/vt-49107.html</link>
			<pubDate>Tue, 22 Sep 2009 09:02:31 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : Copy files between server. &lt;/div&gt; &lt;hr/&gt; is there a way to copy file between server using php ?
&lt;br/&gt;
but still make it a live*copy still running* when we close our browser ?
&lt;br/&gt;

&lt;br/&gt;
since i need to download some manga, but it seem the manga server running slow, and i want download the manga from my server. of course i no need to wait until my server copy manga finished.
&lt;br/&gt;

&lt;br/&gt;
thanks,&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://www.frihost.com/forums/vt-49107.html&quot; title=&quot;Copy files between server.&quot;&gt;&lt;b&gt;More ...&lt;/b&gt;&lt;/a&gt; &lt;hr/&gt; &lt;br/&gt; &lt;u&gt;Stats :&lt;/u&gt; 16 Replies</description>
			<source url="http://www.frihost.com/rss/forum-rss14-m.xml">Php and MySQL</source>
			<guid isPermaLink="true">http://www.frihost.com/forums/vt-49107.html</guid>
		</item>
		<item>
			<title>Friends RECENT activity.</title>
			<link>http://www.frihost.com/forums/vt-110375.html</link>
			<pubDate>Mon, 21 Sep 2009 19:31:24 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : Friends RECENT activity. &lt;/div&gt;&lt;hr/&gt; &lt;/div class=&quot;detail&quot;&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;div class=&quot;detail&quot; class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/div class=&quot;detail&quot;&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;
&lt;br/&gt;
&amp;lt;?
&lt;br/&gt;
$status_friend = mysql_query&amp;#40;&amp;quot;SELECT * FROM `friends` WHERE `there_id`='$logged&amp;#91;id&amp;#93;'&amp;quot;&amp;#41;;
&lt;br/&gt;
while&amp;#40;$status_friends = mysql_fetch_array&amp;#40;$status_friend&amp;#41;&amp;#41; &amp;#123;
&lt;br/&gt;

&lt;br/&gt;

&lt;br/&gt;
$select_status = mysql_query&amp;#40;&amp;quot;SELECT * FROM `moods` WHERE `uid`='$status_friends&amp;#91;my_id&amp;#93;' ORDER BY `id` DESC LIMIT 10&amp;quot;&amp;#41;;
&lt;br/&gt;
while&amp;#40;$status_select = mysql_fetch_array&amp;#40;$select_status&amp;#41;&amp;#41; &amp;#123;
&lt;br/&gt;

&lt;br/&gt;

&lt;br/&gt;
echo&amp;#40;&amp;quot;$status_select&amp;#91;uid&amp;#93; - $status_select&amp;#91;status&amp;#93;&amp;lt;br&amp;gt;&amp;quot;&amp;#41;;
&lt;br/&gt;
&amp;#125;
&lt;br/&gt;
&amp;#125;
&lt;br/&gt;
?&amp;gt;
&lt;br/&gt;
&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;div class=&quot;detail&quot; class=&quot;postbody&quot;&gt;
&lt;br/&gt;

&lt;br/&gt;
This is my bit of code what i am trying to do is to display the last 10 moods posted by the LOGGED users ID such as:
&lt;br/&gt;

&lt;br/&gt;
1 - Hola
&lt;br/&gt;
2 - im next
&lt;br/&gt;
1 - i am back again
&lt;br/&gt;

&lt;br/&gt;
But what my code is doing is arranging it by the friends ID instead of the status ID, 
&lt;br/&gt;

&lt;br/&gt;
It is displaying 
&lt;br/&gt;

&lt;br/&gt;
1 - Hola
&lt;br/&gt;
1 - i am back again
&lt;br/&gt;
2 - im next
&lt;br/&gt;

&lt;br/&gt;
If anyone can help with this would be really helpful.
&lt;br/&gt;

&lt;br/&gt;
Thanks &lt;img src=&quot;http://www.frihost.com/forums/http://www.frihost.com/forums/images/smiles/icon_smile.gif&quot; alt=&quot;Smile&quot; border=&quot;0&quot; /&gt;&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://www.frihost.com/forums/vt-110375.html&quot; title=&quot;Friends RECENT activity.&quot;&gt;&lt;b&gt;More ...&lt;/b&gt;&lt;/a&gt; &lt;hr/&gt; &lt;br/&gt; &lt;u&gt;Stats :&lt;/u&gt; 1 Post</description>
			<source url="http://www.frihost.com/rss/forum-rss14-m.xml">Php and MySQL</source>
			<guid isPermaLink="true">http://www.frihost.com/forums/vt-110375.html</guid>
		</item>
		<item>
			<title>PHP Cookies Not Working</title>
			<link>http://www.frihost.com/forums/vt-110346.html</link>
			<pubDate>Mon, 21 Sep 2009 04:38:03 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : PHP Cookies Not Working &lt;/div&gt; &lt;hr/&gt; I'll start off with the code:
&lt;br/&gt;
&lt;/div class=&quot;detail&quot;&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;div class=&quot;detail&quot; class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/div class=&quot;detail&quot;&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;
&lt;br/&gt;
&amp;lt;?php
&lt;br/&gt;

&lt;br/&gt;
session_start&amp;#40;&amp;#41;;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;
&lt;br/&gt;
$clear = $_GET&amp;#91;'clear'&amp;#93;;
&lt;br/&gt;
$act = $_GET&amp;#91;'act'&amp;#93;;&amp;nbsp; &amp;nbsp;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;
&lt;br/&gt;
if &amp;#40;$clear == &amp;quot;cookie&amp;quot;&amp;#41;
&lt;br/&gt;
&amp;#123; 
&lt;br/&gt;
setcookie&amp;#40;&amp;quot;test&amp;quot;, &amp;quot;&amp;quot;, -10000000&amp;#41;; 
&lt;br/&gt;
&amp;#125;
&lt;br/&gt;

&lt;br/&gt;
if &amp;#40;$clear == &amp;quot;session&amp;quot;&amp;#41;
&lt;br/&gt;
&amp;#123; 
&lt;br/&gt;
unset&amp;#40;$_SESSION&amp;#91;'test'&amp;#93;&amp;#41;; 
&lt;br/&gt;
&amp;#125;
&lt;br/&gt;

&lt;br/&gt;
if &amp;#40;$clear == &amp;quot;both&amp;quot;&amp;#41;
&lt;br/&gt;
&amp;#123; 
&lt;br/&gt;
unset&amp;#40;$_SESSION&amp;#91;'test'&amp;#93;&amp;#41;; 
&lt;br/&gt;
setcookie&amp;#40;&amp;quot;test&amp;quot;, &amp;quot;&amp;quot;, -10000000&amp;#41;; 
&lt;br/&gt;
&amp;#125;
&lt;br/&gt;

&lt;br/&gt;
if &amp;#40;$act == &amp;quot;cookie&amp;quot;&amp;#41;
&lt;br/&gt;
&amp;#123; 
&lt;br/&gt;
setcookie&amp;#40;&amp;quot;test&amp;quot;, &amp;quot;Tester&amp;quot;, 10000000&amp;#41;; 
&lt;br/&gt;
&amp;#125;
&lt;br/&gt;

&lt;br/&gt;
if &amp;#40;$act == &amp;quot;session&amp;quot;&amp;#41;
&lt;br/&gt;
&amp;#123; 
&lt;br/&gt;
$_SESSION&amp;#91;'test'&amp;#93; = &amp;quot;Testttt&amp;quot;; 
&lt;br/&gt;
&amp;#125;
&lt;br/&gt;

&lt;br/&gt;
if &amp;#40;$act == &amp;quot;both&amp;quot;&amp;#41;
&lt;br/&gt;
&amp;#123; 
&lt;br/&gt;
$_SESSION&amp;#91;'test'&amp;#93; = &amp;quot;Testttt&amp;quot;; 
&lt;br/&gt;
setcookie&amp;#40;&amp;quot;test&amp;quot;, &amp;quot;Tester&amp;quot;, 10000000&amp;#41;; 
&lt;br/&gt;
&amp;#125;
&lt;br/&gt;

&lt;br/&gt;
$cookie = $_COOKIE&amp;#91;'test'&amp;#93;;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;
&lt;br/&gt;
$session = $_SESSION&amp;#91;'test'&amp;#93;;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;echo &amp;quot;Cookie &amp;#40;&amp;#123;$_COOKIE&amp;#91;'test'&amp;#93;&amp;#125;&amp;#41; and session &amp;#40;&amp;#123;$_SESSION&amp;#91;'test'&amp;#93;&amp;#125;&amp;#41; testing.&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;quot;;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp; 
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;if &amp;#40;isset&amp;#40;$cookie&amp;#41;&amp;#41;&amp;#123; echo &amp;quot;&amp;lt;a href=\&amp;quot;login.php?clear=cookie\&amp;quot;&amp;gt;Clear the Cookie.&amp;lt;/a&amp;gt;&amp;lt;br /&amp;gt;&amp;quot;; &amp;#125;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;if &amp;#40;isset&amp;#40;$session&amp;#41;&amp;#41;&amp;#123; echo &amp;quot;&amp;lt;a href=\&amp;quot;login.php?clear=session\&amp;quot;&amp;gt;Clear the Session.&amp;lt;/a&amp;gt;&amp;lt;br /&amp;gt;&amp;quot;; &amp;#125;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;if &amp;#40;&amp;#40;isset&amp;#40;$session&amp;#41;&amp;#41; || &amp;#40;isset&amp;#40;$session&amp;#41;&amp;#41;&amp;#41;&amp;#123; echo &amp;quot;&amp;lt;a href=\&amp;quot;login.php?clear=both\&amp;quot;&amp;gt;Clear both.&amp;lt;/a&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;quot;; &amp;#125;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;if &amp;#40;!isset&amp;#40;$cookie&amp;#41;&amp;#41;&amp;#123; echo &amp;quot;&amp;lt;a href=\&amp;quot;login.php?act=cookie\&amp;quot;&amp;gt;Activate the Cookie.&amp;lt;/a&amp;gt;&amp;lt;br /&amp;gt;&amp;quot;; &amp;#125;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;if &amp;#40;!isset&amp;#40;$session&amp;#41;&amp;#41;&amp;#123; echo &amp;quot;&amp;lt;a href=\&amp;quot;login.php?act=session\&amp;quot;&amp;gt;Activate the Session.&amp;lt;/a&amp;gt;&amp;lt;br /&amp;gt;&amp;quot;; &amp;#125;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;if &amp;#40;&amp;#40;!isset&amp;#40;$session&amp;#41;&amp;#41; || &amp;#40;!isset&amp;#40;$session&amp;#41;&amp;#41;&amp;#41;&amp;#123; echo &amp;quot;&amp;lt;a href=\&amp;quot;login.php?act=both\&amp;quot;&amp;gt;Activate both.&amp;lt;/a&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;quot;; &amp;#125;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;
&lt;br/&gt;
?&amp;gt;
&lt;br/&gt;
&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;div class=&quot;detail&quot; class=&quot;postbody&quot;&gt;
&lt;br/&gt;

&lt;br/&gt;
Long, sorry, but I wanted to get precise. I am a noob when it comes to PHP cookies, but I've learned enough to at least start.. or so I thought. For some reason, after many attempts, I am unable to get the cookie to work. The session works completely fine, but I'm not sure if it's 'hurting' the cookie.
&lt;br/&gt;

&lt;br/&gt;
I'm also sure that just because of the size of this simple script, there's more than just cookie errors &lt;img src=&quot;http://www.frihost.com/forums/http://www.frihost.com/forums/images/smiles/icon_rolleyes.gif&quot; alt=&quot;Rolling Eyes&quot; border=&quot;0&quot; /&gt;. Yes, I do clear my cookies before every test. I've tried this in both IE and Google Chrome and the result is the same: The cookie never seems to be listed.
&lt;br/&gt;

&lt;br/&gt;
Any help is appreciated. Just note that the above script was made for testing, so no comments on how bad it is &lt;img src=&quot;http://www.frihost.com/forums/http://www.frihost.com/forums/images/smiles/icon_evil.gif&quot; alt=&quot;Evil or Very Mad&quot; border=&quot;0&quot; /&gt;&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://www.frihost.com/forums/vt-110346.html&quot; title=&quot;PHP Cookies Not Working&quot;&gt;&lt;b&gt;More ...&lt;/b&gt;&lt;/a&gt; &lt;hr/&gt; &lt;br/&gt; &lt;u&gt;Stats :&lt;/u&gt; 5 Replies</description>
			<source url="http://www.frihost.com/rss/forum-rss14-m.xml">Php and MySQL</source>
			<guid isPermaLink="true">http://www.frihost.com/forums/vt-110346.html</guid>
		</item>
		<item>
			<title>Which one is better email pattern</title>
			<link>http://www.frihost.com/forums/vt-110322.html</link>
			<pubDate>Sun, 20 Sep 2009 10:55:01 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : Which one is better email pattern &lt;/div&gt; &lt;hr/&gt; I am almost NILL in REGEX, and i always look for help when it comes to regular expressions. Few months ago, i saw the following email pattern:
&lt;br/&gt;

&lt;br/&gt;
&lt;/div class=&quot;detail&quot;&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;div class=&quot;detail&quot; class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/div class=&quot;detail&quot;&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;/^&amp;#91;^@\s&amp;#93;+@&amp;#40;&amp;#91;-a-z0-9&amp;#93;+\.&amp;#41;+&amp;#91;a-z&amp;#93;&amp;#123;2,&amp;#125;$/i&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;div class=&quot;detail&quot; class=&quot;postbody&quot;&gt;
&lt;br/&gt;

&lt;br/&gt;
but today, at php security website (http://phpsec.org/projects/guide/1.html#1.4.3) i saw the following one:
&lt;br/&gt;

&lt;br/&gt;
&lt;/div class=&quot;detail&quot;&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;div class=&quot;detail&quot; class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/div class=&quot;detail&quot;&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;/^&amp;#91;^@\s&amp;lt;&amp;amp;&amp;gt;&amp;#93;+@&amp;#40;&amp;#91;-a-z0-9&amp;#93;+\.&amp;#41;+&amp;#91;a-z&amp;#93;&amp;#123;2,&amp;#125;$/i&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;div class=&quot;detail&quot; class=&quot;postbody&quot;&gt;
&lt;br/&gt;

&lt;br/&gt;
Can you please tell me which one better describes Email Addresses, and whats the difference in the above 2!&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://www.frihost.com/forums/vt-110322.html&quot; title=&quot;Which one is better email pattern&quot;&gt;&lt;b&gt;More ...&lt;/b&gt;&lt;/a&gt; &lt;hr/&gt; &lt;br/&gt; &lt;u&gt;Stats :&lt;/u&gt; 6 Replies</description>
			<source url="http://www.frihost.com/rss/forum-rss14-m.xml">Php and MySQL</source>
			<guid isPermaLink="true">http://www.frihost.com/forums/vt-110322.html</guid>
		</item>
		<item>
			<title>Favorite PHP Classes and Scripts</title>
			<link>http://www.frihost.com/forums/vt-110296.html</link>
			<pubDate>Sat, 19 Sep 2009 01:54:01 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : Favorite PHP Classes and Scripts &lt;/div&gt; &lt;hr/&gt; Hi Friends!
&lt;br/&gt;

&lt;br/&gt;
Please Share your Favorite PHP Classes and Scripts.
&lt;br/&gt;
Whenever i tried to find a readymade solution, i got many alternatives, and going through the code i found that most of those were not reliable. This took a lot of my time. So now i decided to get help about useful and reliable scripts from other PHP developers who have been using such readymade code.
&lt;br/&gt;

&lt;br/&gt;
So please, if you have recommendations, share it with me and with others here.&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://www.frihost.com/forums/vt-110296.html&quot; title=&quot;Favorite PHP Classes and Scripts&quot;&gt;&lt;b&gt;More ...&lt;/b&gt;&lt;/a&gt; &lt;hr/&gt; &lt;br/&gt; &lt;u&gt;Stats :&lt;/u&gt; 4 Replies</description>
			<source url="http://www.frihost.com/rss/forum-rss14-m.xml">Php and MySQL</source>
			<guid isPermaLink="true">http://www.frihost.com/forums/vt-110296.html</guid>
		</item>
		<item>
			<title>Php Warning: fopen</title>
			<link>http://www.frihost.com/forums/vt-110159.html</link>
			<pubDate>Fri, 11 Sep 2009 13:29:40 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : Php Warning: fopen &lt;/div&gt; &lt;hr/&gt; Anyone have any idea whats going on here? If you need any more info just ask.
&lt;br/&gt;

&lt;br/&gt;
&lt;/div class=&quot;detail&quot;&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;div class=&quot;detail&quot; class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/div class=&quot;detail&quot;&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;Warning&amp;#58; fopen&amp;#40;/www/110mb.com/x/t/m/_/_/_/_/_/xtm/htdocs/logs/error.php&amp;#41; &amp;#91;function.fopen&amp;#93;&amp;#58; failed to open stream&amp;#58; Permission denied in /www/110mb.com/x/t/m/_/_/_/_/_/xtm/htdocs/libraries/joomla/error/log.php on line 202
&lt;br/&gt;

&lt;br/&gt;
Warning&amp;#58; Cannot modify header information - headers already sent by &amp;#40;output started at /www/110mb.com/x/t/m/_/_/_/_/_/xtm/htdocs/libraries/joomla/error/log.php&amp;#58;202&amp;#41; in /www/110mb.com/x/t/m/_/_/_/_/_/xtm/htdocs/plugins/system/remember.php on line 72&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;div class=&quot;detail&quot; class=&quot;postbody&quot;&gt;&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://www.frihost.com/forums/vt-110159.html&quot; title=&quot;Php Warning: fopen&quot;&gt;&lt;b&gt;More ...&lt;/b&gt;&lt;/a&gt; &lt;hr/&gt; &lt;br/&gt; &lt;u&gt;Stats :&lt;/u&gt; 5 Replies</description>
			<source url="http://www.frihost.com/rss/forum-rss14-m.xml">Php and MySQL</source>
			<guid isPermaLink="true">http://www.frihost.com/forums/vt-110159.html</guid>
		</item>
		<item>
			<title>Possible to reduce minutes from PHP?</title>
			<link>http://www.frihost.com/forums/vt-109826.html</link>
			<pubDate>Wed, 09 Sep 2009 05:01:17 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : Possible to reduce minutes from PHP? &lt;/div&gt; &lt;hr/&gt; I am making a PHP script that checks who's online and who's not. Anyways, I am using this code:
&lt;br/&gt;

&lt;br/&gt;
&lt;/div class=&quot;detail&quot;&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;div class=&quot;detail&quot; class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/div class=&quot;detail&quot;&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;&amp;lt;?php
&lt;br/&gt;
$date = date&amp;#40;&amp;quot;Gi&amp;quot;&amp;#41;;
&lt;br/&gt;
$tdate = $date - 60;
&lt;br/&gt;
echo $tdate;
&lt;br/&gt;
?&amp;gt;&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;div class=&quot;detail&quot; class=&quot;postbody&quot;&gt;
&lt;br/&gt;

&lt;br/&gt;
Let's say the time is currently 17:51 (24 hour time) and I wanted to remove 60 minutes (making it 16:51) with the code above it just makes it 1691. So, I was wondering if there was a script or function that keeps it in the time format? So I wanna take 17:51, minus 60 minutes making it 16:51. I'm pretty sure it's doable, just unsure on how to do it.
&lt;br/&gt;

&lt;br/&gt;
Thanks!&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://www.frihost.com/forums/vt-109826.html&quot; title=&quot;Possible to reduce minutes from PHP?&quot;&gt;&lt;b&gt;More ...&lt;/b&gt;&lt;/a&gt; &lt;hr/&gt; &lt;br/&gt; &lt;u&gt;Stats :&lt;/u&gt; 10 Replies</description>
			<source url="http://www.frihost.com/rss/forum-rss14-m.xml">Php and MySQL</source>
			<guid isPermaLink="true">http://www.frihost.com/forums/vt-109826.html</guid>
		</item>
		<item>
			<title>php  and  ajax</title>
			<link>http://www.frihost.com/forums/vt-110055.html</link>
			<pubDate>Tue, 08 Sep 2009 20:09:14 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : php  and  ajax &lt;/div&gt; &lt;hr/&gt; Do you have examples of that? &amp;lt;php and ajax&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://www.frihost.com/forums/vt-110055.html&quot; title=&quot;php  and  ajax&quot;&gt;&lt;b&gt;More ...&lt;/b&gt;&lt;/a&gt; &lt;hr/&gt; &lt;br/&gt; &lt;u&gt;Stats :&lt;/u&gt; 2 Replies</description>
			<source url="http://www.frihost.com/rss/forum-rss14-m.xml">Php and MySQL</source>
			<guid isPermaLink="true">http://www.frihost.com/forums/vt-110055.html</guid>
		</item>
	</channel>
</rss>
<!-- URL list generated in  0.22855 s ( Mem Usage : 222.18 Kb ) - 12 sql - 51 URLs listed -->