<?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; 3311 Topics || 18782 Posts</description>
		<language>en</language>
		<copyright>Frihost</copyright>
		<lastBuildDate>Fri, 25 Jul 2008 14:54:38 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>11</ttl>
		<item>
			<title>how to make an engine of writing articles logged on page?</title>
			<link>http://www.frihost.com/forums/vt-95809.html</link>
			<pubDate>Fri, 25 Jul 2008 14:54:38 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : how to make an engine of writing articles logged on page? &lt;/div&gt; &lt;hr/&gt; As far as i know, you can't use fopen function here? Am i right with this one? If yes, i couldn't use fwrite function, so i couldn't create a document when i'm logged in to admin panel let's say. Or is there another function which is avaible on passing through this problem?
&lt;br/&gt;

&lt;br/&gt;
In my opinion, the engine should be like this. Admin panel with text area in which you write an article with html symbols, such as &amp;lt;html&amp;gt;&amp;lt;b&amp;gt;&amp;lt;font ..&amp;gt;. All of the text is written in .html document, and in news section it is opened like a html file.
&lt;br/&gt;

&lt;br/&gt;
Any suggestions of those who understood what i was trying to explain? &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-95809.html&quot; title=&quot;how to make an engine of writing articles logged on page?&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-95809.html</guid>
		</item>
		<item>
			<title>display limit content</title>
			<link>http://www.frihost.com/forums/vt-95734.html</link>
			<pubDate>Fri, 25 Jul 2008 11:57:15 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : display limit content &lt;/div&gt; &lt;hr/&gt; hi i would like to know on how to display limit content without destroying the html tags or lacking any.. 
&lt;br/&gt;
i know how to substr works and i always use it to display limit but when i try to limit for ex. 50 letters then in the content there is a html tag and the closing tags is out of 50 of course you will see some abnormalities on the content. so i want to know if how i could fix it....&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://www.frihost.com/forums/vt-95734.html&quot; title=&quot;display limit content&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-95734.html</guid>
		</item>
		<item>
			<title>php software script</title>
			<link>http://www.frihost.com/forums/vt-95831.html</link>
			<pubDate>Fri, 25 Jul 2008 11:32:56 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : php software script &lt;/div&gt; &lt;hr/&gt; hi, does frihost supports php scripts of social networking softwares?
&lt;br/&gt;

&lt;br/&gt;
thanks
&lt;br/&gt;

&lt;br/&gt;
glad for a reply&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://www.frihost.com/forums/vt-95831.html&quot; title=&quot;php software 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-95831.html</guid>
		</item>
		<item>
			<title>Merging jpeg and (transparent) png using php GD</title>
			<link>http://www.frihost.com/forums/vt-95840.html</link>
			<pubDate>Fri, 25 Jul 2008 09:23:17 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : Merging jpeg and (transparent) png using php GD &lt;/div&gt;&lt;hr/&gt; Hi there
&lt;br/&gt;

&lt;br/&gt;
I have been seaching through &lt;a href=&quot;http://ie.php.net/manual/en/ref.image.php&quot; target=&quot;_blank&quot; class=&quot;postlink&quot; rel=&quot;nofollow&quot;&gt;http://ie.php.net/manual/en/ref.image.php&lt;/a&gt; and messing around with functions such as 
&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;imagecopymerge &amp;#40; resource $dst_im , resource $src_im , int $dst_x , int $dst_y , int $src_x , int $src_y , int $src_w , int $src_h , int $pct &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 can get the two images to merge, but I have a problem. I need the jpeg to be behind the png and it to be transperent. So that you can see the jpeg behind the png. Anyone got a script that might do somthing like this or know of a more helpful function? I have been seaching for two days for this, so I dont want people posting the url to php.net/manual. I have looked and googled alot before I came here.
&lt;br/&gt;

&lt;br/&gt;
Kind Regards
&lt;br/&gt;
Ciaran Mc Cann&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://www.frihost.com/forums/vt-95840.html&quot; title=&quot;Merging jpeg and (transparent) png using php GD&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-95840.html</guid>
		</item>
		<item>
			<title>Problem with Mybb :: Changing DB Username</title>
			<link>http://www.frihost.com/forums/vt-95821.html</link>
			<pubDate>Fri, 25 Jul 2008 02:30:40 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : Problem with Mybb :: Changing DB Username &lt;/div&gt; &lt;hr/&gt; I was using an older host when I found this one, and I did have the Mybb forums on my old subdomain. Both hosts uses Cpanel, so that might cure some questions you might have. What I'm having trouble with is the old Cpanel username on the other host was different than this current one. Is there any way to either change the codes in the forums/database to fix this problem (because it can't connect to the database) or a way to change the username at this host? I used a backup of the database from the old forums and added them onto this new host. And i obviously added all the forum files (tyvm, zip files ^^).
&lt;br/&gt;

&lt;br/&gt;
I'm not that great with databases, so please be specific.&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://www.frihost.com/forums/vt-95821.html&quot; title=&quot;Problem with Mybb :: Changing DB Username&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-95821.html</guid>
		</item>
		<item>
			<title>PHP creating scheduled tasks?</title>
			<link>http://www.frihost.com/forums/vt-95772.html</link>
			<pubDate>Fri, 25 Jul 2008 00:20:08 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : PHP creating scheduled tasks? &lt;/div&gt; &lt;hr/&gt; I'm exploring new ideas with my server and I have gotten the thought of a calendar system between the two computers. I am a very forgetful person, so the fact that my computer could remind me of what I need to do, such as a upcoming events for my technical productions crew at my school.
&lt;br/&gt;

&lt;br/&gt;
So, I am aware that PHP can create batch files with net send within it, but can PHP create scheduled tasks within the computer itself? If not, is there anyway I can get PHP to check if it's a certain time and if it is to execute a file?
&lt;br/&gt;

&lt;br/&gt;
Thanks for the support.
&lt;br/&gt;
Kind regards.&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://www.frihost.com/forums/vt-95772.html&quot; title=&quot;PHP creating scheduled tasks?&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-95772.html</guid>
		</item>
		<item>
			<title>PHP and MySQL FAQ - Read Before posting!</title>
			<link>http://www.frihost.com/forums/vt-92218.html</link>
			<pubDate>Thu, 24 Jul 2008 17:47:06 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : PHP and MySQL FAQ - Read Before posting! &lt;/div&gt; &lt;hr/&gt; This topic should become the PHP and MySQL FAQ. If you have any suggestions post them and I'll update this post. Please post them in the same format I am using to make it easy for me.
&lt;br/&gt;

&lt;br/&gt;
All code here is written for PHP5 because frihost supports that on all servers and because php4 isn't used a lot any more.
&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;size=18&amp;#93;Question?&amp;#91;/size&amp;#93;
&lt;br/&gt;
Answer&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;div class=&quot;detail&quot; style=&quot;font-size: 18px; line-height: normal&quot;&gt;How do I use XML with PHP?&lt;/div class=&quot;detail&quot;&gt;
&lt;br/&gt;
First put all the data in a variable (ie. with fopen). Then use &lt;a href=&quot;http://nl3.php.net/manual/en/simplexml.examples.php&quot; target=&quot;_blank&quot; class=&quot;postlink&quot; rel=&quot;nofollow&quot;&gt;SimpleXML&lt;/a&gt; to make an object of the xml file.
&lt;br/&gt;

&lt;br/&gt;
&lt;div class=&quot;detail&quot; style=&quot;font-size: 18px; line-height: normal&quot;&gt;How do I use cookies?&lt;/div class=&quot;detail&quot;&gt;
&lt;br/&gt;
To set a cookie use &lt;a href=&quot;http://nl3.php.net/manual/en/function.setcookie.php&quot; target=&quot;_blank&quot; class=&quot;postlink&quot; rel=&quot;nofollow&quot;&gt;setcookie&lt;/a&gt;. To read the cookie use $_COOKIE['var'].
&lt;br/&gt;
this will output: value
&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;setcookie&amp;#40;&amp;quot;TestCookie&amp;quot;, 'value'&amp;#41;;
&lt;br/&gt;
echo $_COOKIE&amp;#91;&amp;quot;TestCookie&amp;quot;&amp;#93;;&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;div class=&quot;detail&quot; class=&quot;postbody&quot;&gt;Note that you can only set cookies before sending any output to the user.
&lt;br/&gt;

&lt;br/&gt;
&lt;div class=&quot;detail&quot; style=&quot;font-size: 18px; line-height: normal&quot;&gt;How do I use sessions?&lt;/div class=&quot;detail&quot;&gt;
&lt;br/&gt;
At the beginning of every PHP file where you want to use sessions use this code before you send any output to the user (of course after the php opening tag):
&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;session_start&amp;#40;&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;
Now you can use $_SESSION as a normal array. You can store stuff in it and it will be in the session array untill the session has expired or the user closed the browser.
&lt;br/&gt;

&lt;br/&gt;
&lt;div class=&quot;detail&quot; style=&quot;font-size: 18px; line-height: normal&quot;&gt;Does frihost have extension x enabled?&lt;/div class=&quot;detail&quot;&gt;
&lt;br/&gt;
To see all the info about the frihost php installation take a look at the php info pages. The info pages for &lt;a href=&quot;http://rvec.frihost.net/info.php&quot; target=&quot;_blank&quot; class=&quot;postlink&quot; rel=&quot;nofollow&quot;&gt;server 1&lt;/a&gt;, &lt;a href=&quot;http://www.frih.net/phpinfo.php&quot; target=&quot;_blank&quot; class=&quot;postlink&quot; rel=&quot;nofollow&quot;&gt;server 2&lt;/a&gt; and &lt;a href=&quot;http://www.frihost.com/phpinfo.php&quot; class=&quot;postlink&quot;&gt;server 3&lt;/a&gt;. New accounts are created on server 1. If you want to know on what server you are on pm a mod or admin.
&lt;br/&gt;

&lt;br/&gt;
&lt;div class=&quot;detail&quot; style=&quot;font-size: 18px; line-height: normal&quot;&gt;How do I start with PHP?&lt;/div class=&quot;detail&quot;&gt;
&lt;br/&gt;
Read through these topics before asking questions. ...&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://www.frihost.com/forums/vt-92218.html&quot; title=&quot;PHP and MySQL FAQ - Read Before posting!&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-92218.html</guid>
		</item>
		<item>
			<title>Help required with Captcha script</title>
			<link>http://www.frihost.com/forums/vt-95794.html</link>
			<pubDate>Thu, 24 Jul 2008 10:18:30 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : Help required with Captcha script &lt;/div&gt; &lt;hr/&gt; Hi everyone. I'm still pretty new to PHP so am struggling to implement things at the moment.
&lt;br/&gt;

&lt;br/&gt;
At the moment I have a feedback form on a website which works really well. But due to a recent spate of &amp;quot;spam&amp;quot; via the form, I would like to implement a &amp;quot;captcha&amp;quot; script to force users to enter a confirmation code before allowing the form to be processed and emailed.
&lt;br/&gt;

&lt;br/&gt;
I have found a script at &lt;a href=&quot;http://www.white-hat-web-design.co.uk/articles/php-captcha.php&quot; target=&quot;_blank&quot; class=&quot;postlink&quot; rel=&quot;nofollow&quot;&gt;http://www.white-hat-web-design.co.uk/articles/php-captcha.php&lt;/a&gt; but am struggling to get it to work with my current form handling script. I'm not sure which bits go where basically.
&lt;br/&gt;

&lt;br/&gt;
Here is the code the website asks you to include on your form page.
&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;img src=&amp;quot;CaptchaSecurityImages.php&amp;quot; /&amp;gt;
&lt;br/&gt;
Security Code&amp;#58; 
&lt;br/&gt;
&amp;lt;input id=&amp;quot;security_code&amp;quot; name=&amp;quot;security_code&amp;quot; type=&amp;quot;text&amp;quot; /&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;
I've done this ok just by adding it within the form code on the website.
&lt;br/&gt;

&lt;br/&gt;
You're then asked to include the below in your form handling script.
&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;
&amp;lt;?php 
&lt;br/&gt;
&amp;nbsp;session_start&amp;#40;&amp;#41;;
&lt;br/&gt;
&amp;nbsp;if&amp;#40;&amp;#40;$_SESSION&amp;#91;'security_code'&amp;#93; == $_POST&amp;#91;'security_code'&amp;#93;&amp;#41; &amp;amp;&amp;amp; &amp;#40;!empty&amp;#40;$_SESSION&amp;#91;'security_code'&amp;#93;&amp;#41;&amp;#41; &amp;#41; &amp;#123;
&lt;br/&gt;
&amp;nbsp;// Insert you code for processing the form here, e.g emailing the submission, entering it into a database. 
&lt;br/&gt;
&amp;nbsp;unset&amp;#40;$_SESSION&amp;#91;'security_code'&amp;#93;&amp;#41;;
&lt;br/&gt;
&amp;nbsp;&amp;#125; else &amp;#123;
&lt;br/&gt;
&amp;nbsp;// Insert your code for showing an error message here
&lt;br/&gt;
&amp;nbsp;&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;
Here is my current form handling script. Can anybody help me in re-arranging it to work with the above?
&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;
&amp;lt;?php
&lt;br/&gt;
&amp;nbsp;$contactname = $_REQUEST&amp;#91;'contactname'&amp;#93; ;
&lt;br/&gt;
&amp;nbsp;$email = $_REQUEST&amp;#91;'email'&amp;#93; ;
&lt;br/&gt;
&amp;nbsp;$email2 = 'me@mydomain.com' ;
&lt;br/&gt;
&amp;nbsp;$club = $_REQUEST&amp;#91;'club'&amp;#93; ;
&lt;br/&gt;
&amp;nbsp;$query = $_REQUEST&amp;#91;'query'&amp;#93; ;
&lt;br/&gt;
&amp;nbsp;$comments = $_REQUEST&amp;#91;'comments'&amp;#93; ;
&lt;br/&gt;

&lt;br/&gt;
&amp;nbsp;
&lt;br/&gt;
&amp;nbsp;if &amp;#40;!isset&amp;#40;$_REQUEST&amp;#91;'email'&amp;#93;&amp;#41;&amp;#41; &amp;#123;
&lt;br/&gt;
&amp;nbsp;header&amp;#40; &amp;quot;Location&amp;#58; http&amp;#58;//www.ldbsa.co.uk/feedback.php&amp;quot; &amp;#41;;
&lt;br/&gt;
&amp;nbsp;&amp;#125;
&lt;br/&gt;
&amp;nbsp;elseif &amp;#40;empty&amp;#40;$email&amp;#41; || empty&amp;#40;$club&amp;#41; || empty&amp;#40;$query&amp;#41; || empty&amp;#40;$comments&amp;#41; || empty&amp;#40;$contactname&amp;#41;&amp;#41; &amp;#123;
&lt;br/&gt;
echo '&amp;lt;h1&amp;gt;ERROR&amp;lt;/h1&amp;gt;&amp;lt;p&amp;gt;Not all fields have been filled in. Please try again.&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;&amp;lt;a href=&amp;quot;feedback.php&amp;quot;&amp;gt;&amp;lt;&amp;lt; Back to form&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;';
&lt;br/&gt;
&amp;#125;
&lt;br/&gt;
&amp;nbsp;else &amp;#123;
&lt;br/&gt;
&amp;nbsp;mail&amp;#40; &amp;quot;$email, $email2&amp;quot;, &amp;quot;Thank you for your feedback/questions&amp;quot;,
&lt;br/&gt;
&amp;nbsp;&amp;quot;&amp;lt;p&amp;gt;Name&amp;#58; $contactname&amp;lt;/p&amp;gt;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;lt;p&amp;gt;E-Mail Address&amp;#58; $email&amp;lt;/p&amp;gt;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;lt;p&amp;gt;Your club&amp;#58; $club&amp;lt;/p&amp;gt;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;lt;p&amp;gt;Your query was regarding&amp;#58; $query&amp;lt;/p&amp;gt;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;lt;p&amp;gt;Comments/Questions&amp;#58; $comments&amp;lt;/p&amp;gt;&amp;quot;, 
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;quot;To&amp;#58; $contactname &amp;lt;$email&amp;gt;\n&amp;quot; . 
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;quot;From&amp;#58; LDBSA &amp;lt;$email2&amp;gt;\n&amp;quot; . 
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;quot;MIME-Version&amp;#58; 1.0\n&amp;quot; . 
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;quot;Content-type&amp;#58; text/html; charset=so-8859-1&amp;quot;&amp;#41;;
&lt;br/&gt;
&amp;nbsp;header&amp;#40; &amp;quot;Location&amp;#58; http&amp;#58;//www.ldbsa.co.uk/thanks.php&amp;quot; &amp;#41;;
&lt;br/&gt;
&amp;nbsp;&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;
My problem is the empty check part adds extra ifs to the equation and I'm worried that it'll all go wrong. ...&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://www.frihost.com/forums/vt-95794.html&quot; title=&quot;Help required with Captcha 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; 3 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-95794.html</guid>
		</item>
		<item>
			<title>Need to run something...</title>
			<link>http://www.frihost.com/forums/vt-95642.html</link>
			<pubDate>Thu, 24 Jul 2008 03:20:54 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : Need to run something... &lt;/div&gt; &lt;hr/&gt; I need to run this script&amp;#058;
&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;

&lt;br/&gt;
$lines = gzfile&amp;#40;'http&amp;#58;//en9.tribalwars.net/map/village.txt.gz'&amp;#41;;
&lt;br/&gt;
if&amp;#40;!is_array&amp;#40;$lines&amp;#41;&amp;#41; die&amp;#40;&amp;quot;File could not be opened&amp;quot;&amp;#41;; 
&lt;br/&gt;

&lt;br/&gt;
$connection = mysql_connect&amp;#40;$host, $user, $pass&amp;#41; or die&amp;#40;'Unable to connect to the K11R Database'&amp;#41;;
&lt;br/&gt;

&lt;br/&gt;
//Select 'home' Database
&lt;br/&gt;
mysql_select_db&amp;#40;$db&amp;#41; or die&amp;#40;'Unable to connect to the Villages Database'&amp;#41;;
&lt;br/&gt;

&lt;br/&gt;
foreach&amp;#40;$lines as $line&amp;#41;
&lt;br/&gt;
&amp;#123;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;list&amp;#40;$id, $name,$x, $y, $player, $points, $rank&amp;#41; = explode&amp;#40;',', $line&amp;#41;;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;$name = urldecode&amp;#40;$name&amp;#41;;
&lt;br/&gt;

&lt;br/&gt;
&amp;nbsp; &amp;nbsp;$name = addslashes&amp;#40;$name&amp;#41;;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;mysql_query&amp;#40;&amp;quot;INSERT INTO World9_Villages SET id='$id', name='$name', x='$x', y='$y', player='$player', points='$points', rank='$rank'&amp;quot;&amp;#41;;
&lt;br/&gt;
&amp;#125;
&lt;br/&gt;

&lt;br/&gt;
mysql_close&amp;#40;$connection&amp;#41;;
&lt;br/&gt;

&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;
But it says that gzfile is disabled in the PHP configuration. Is there any way around that? I really need this script. 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_sad.gif&quot; alt=&quot;Sad&quot; border=&quot;0&quot; /&gt; &lt;img src=&quot;http://www.frihost.com/forums/http://www.frihost.com/forums/images/smiles/icon_sad.gif&quot; alt=&quot;Sad&quot; border=&quot;0&quot; /&gt; &lt;img src=&quot;http://www.frihost.com/forums/http://www.frihost.com/forums/images/smiles/icon_sad.gif&quot; alt=&quot;Sad&quot; border=&quot;0&quot; /&gt;&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://www.frihost.com/forums/vt-95642.html&quot; title=&quot;Need to run something...&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; 3 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-95642.html</guid>
		</item>
		<item>
			<title>Can someone code my discoboard for me?</title>
			<link>http://www.frihost.com/forums/vt-95740.html</link>
			<pubDate>Wed, 23 Jul 2008 04:34:11 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : Can someone code my discoboard for me? &lt;/div&gt; &lt;hr/&gt; &lt;div class=&quot;detail&quot; style=&quot;font-style: italic&quot;&gt;I need stuff like icon submission, contact moderators, qoute reply, anything else maybe.
&lt;br/&gt;

&lt;br/&gt;
I will give you admin on my boards and everything. you will be the coder.&lt;/div class=&quot;detail&quot;&gt;&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://www.frihost.com/forums/vt-95740.html&quot; title=&quot;Can someone code my discoboard for me?&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-95740.html</guid>
		</item>
		<item>
			<title>*Really Super Duper Urgent* Cookies and Authentication</title>
			<link>http://www.frihost.com/forums/vt-95651.html</link>
			<pubDate>Tue, 22 Jul 2008 18:04:47 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : *Really Super Duper Urgent* Cookies and Authentication &lt;/div&gt; &lt;hr/&gt; &lt;div class=&quot;detail&quot; style=&quot;font-size: 24px; line-height: normal&quot;&gt;&lt;div class=&quot;detail&quot; style=&quot;color: red&quot;&gt;*Super Duper Urgent*&lt;/div class=&quot;detail&quot;&gt;&lt;/div class=&quot;detail&quot;&gt;
&lt;br/&gt;
I need to finish a website by Wednesday, and need info, FAST!
&lt;br/&gt;

&lt;br/&gt;
Okay, so I need a quick tip. What is the best way to make sure that included pages aren't visited in an unintended way, that is very efficient and simple.
&lt;br/&gt;

&lt;br/&gt;
Like, if website.com/main/loginFormProcess.php is included in website.com/index.php?action=login, I want to prevent someone from going to website.com/main/loginFormProcess.php and setting fake cookies.
&lt;br/&gt;

&lt;br/&gt;
What I use is:
&lt;br/&gt;

&lt;br/&gt;

&lt;br/&gt;

&lt;br/&gt;
[code]#TEST TO SEE IF THE USER IS TELLING THE TRUTH AND THE COOKIES AREN'T FAKE COOKIES!!!!! Mmmm.... cookies....
&lt;br/&gt;
 $connection = mysql_connect&amp;#40;$host, $user, $pass&amp;#41; or die&amp;#40;'Unable to connect to the K11 Redemption Tribal Tools Master Database. Please mail EchoXero and 1Freeman1 IN GAME to report the problem. Tell them&amp;#58;' . mysql_error&amp;#40;&amp;#41;&amp;#41;;
&lt;br/&gt;
 
&lt;br/&gt;
 //Select USERS Database
&lt;br/&gt;
 mysql_select_db&amp;#40;$db&amp;#41; or die&amp;#40;'Unable to Connect to the Users Database. Please mail EchoXero and 1Freeman1 IN GAME to report this problem. Tell them&amp;#58;' . mysql_error&amp;#40;&amp;#41;&amp;#41;;
&lt;br/&gt;
 
&lt;br/&gt;
 //Mash the cookies
&lt;br/&gt;
 $un = $_COOKIE&amp;#91;'user'&amp;#93;;
&lt;br/&gt;
 $pw = $_COOKIE&amp;#91;'pass'&amp;#93;;
&lt;br/&gt;
 $vf = $_COOKIE&amp;#91;'verif'&amp;#93;;
&lt;br/&gt;
 $lvl = $_COOKIE&amp;#91;'level'&amp;#93;;
&lt;br/&gt;
 
&lt;br/&gt;
 //Generate the query
&lt;br/&gt;
 $query = &amp;quot;SELECT username, password, level, verif FROM K11R_Users WHERE username = '$un' AND password = '$pw' AND verif = '$vf' AND level = '$lvl'&amp;quot;;
&lt;br/&gt;
 $result = mysql_query&amp;#40;$query&amp;#41; or die&amp;#40;&amp;quot;Error in query&amp;#58; $query. ...&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://www.frihost.com/forums/vt-95651.html&quot; title=&quot;*Really Super Duper Urgent* Cookies and Authentication&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-95651.html</guid>
		</item>
		<item>
			<title>Adding/Removing to Tables for a Game....</title>
			<link>http://www.frihost.com/forums/vt-95693.html</link>
			<pubDate>Tue, 22 Jul 2008 05:39:40 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : Adding/Removing to Tables for a Game.... &lt;/div&gt; &lt;hr/&gt; So as I have said before in a few other posts... I am making a game.
&lt;br/&gt;

&lt;br/&gt;
One of the siege weapons is a battering ram.
&lt;br/&gt;

&lt;br/&gt;
One of the upgrades for it is a handbrake.
&lt;br/&gt;

&lt;br/&gt;
The game will be placed on the server using a PHP install script similar to phpBB or phpNuke.
&lt;br/&gt;

&lt;br/&gt;
Now let's say world 1 has a hand brake, but world 2 does not.
&lt;br/&gt;

&lt;br/&gt;
In the installation script, would it be more efficient to have the PHP script go in and remove all battering ram combinations that have a hand brake so that they don't go into the battering ram combinations table, or would it work better to make the full tables with the hand brake included, and then have a second script remove all rows that have the handbrake?
&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-95693.html&quot; title=&quot;Adding/Removing to Tables for a Game....&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; 3 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-95693.html</guid>
		</item>
		<item>
			<title>session_destroy problems</title>
			<link>http://www.frihost.com/forums/vt-95603.html</link>
			<pubDate>Tue, 22 Jul 2008 05:35:56 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : session_destroy problems &lt;/div&gt; &lt;hr/&gt; I am using the following scripts for logging out:
&lt;br/&gt;

&lt;br/&gt;
This is logout.php
&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;
session_start&amp;#40;&amp;#41;;
&lt;br/&gt;
//ini_set&amp;#40;'error_reporting', DISABLE&amp;#41;;
&lt;br/&gt;
include&amp;#40;'php/variables.php'&amp;#41;;
&lt;br/&gt;
include&amp;#40;'php/functions.php'&amp;#41;;
&lt;br/&gt;
connect_database&amp;#40;&amp;#41;;
&lt;br/&gt;
if&amp;#40;$_GET&amp;#91;'redirect'&amp;#93;&amp;#41;
&lt;br/&gt;
&amp;#123;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;$redirect=$_GET&amp;#91;'redirect'&amp;#93;;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;unset&amp;#40;$_GET&amp;#91;'redirect'&amp;#93;&amp;#41;;
&lt;br/&gt;
&amp;#125;
&lt;br/&gt;
is_login&amp;#40;&amp;#41;;
&lt;br/&gt;
$_GET&amp;#91;'redirect'&amp;#93;=$redirect;
&lt;br/&gt;
do_logout&amp;#40;&amp;#41;;
&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;
//what i am doing above with $_GET seems to be strange, but if i dont do this, it will cause problems while running is_login().
&lt;br/&gt;

&lt;br/&gt;
here are extracts from function.php (included above).
&lt;br/&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;function do_logout&amp;#40;&amp;#41;
&lt;br/&gt;
&amp;#123;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;GLOBAL $global_array, $page_list;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;if&amp;#40;$global_array&amp;#91;'login'&amp;#93;&amp;#41;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;#123;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;if&amp;#40;$_SESSION&amp;#91;'redirect_'.$_GET&amp;#91;'redirect'&amp;#93;&amp;#93;&amp;#41;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;#123;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;$redirect_url=$_SESSION&amp;#91;'redirect_'.$_GET&amp;#91;'redirect'&amp;#93;&amp;#93;;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;unset&amp;#40;$_SESSION&amp;#41;;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;setcookie&amp;#40;&amp;quot;dname&amp;quot;, &amp;quot;&amp;quot;, -1&amp;#41;;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;setcookie&amp;#40;&amp;quot;password&amp;quot;, &amp;quot;&amp;quot;, -1&amp;#41;;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;if&amp;#40;isset&amp;#40;$_COOKIE&amp;#91;session_name&amp;#40;&amp;#41;&amp;#93;&amp;#41;&amp;#41;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;setcookie&amp;#40;session_name&amp;#40;&amp;#41;, &amp;quot;&amp;quot;, -1, '/'&amp;#41;;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;session_destroy&amp;#40;&amp;#41;;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;do_redirect&amp;#40;$redirect_url&amp;#41;;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;#125;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;else
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;#123;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;unset&amp;#40;$_SESSION&amp;#41;;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;setcookie&amp;#40;&amp;quot;dname&amp;quot;, &amp;quot;&amp;quot;, -1&amp;#41;;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;setcookie&amp;#40;&amp;quot;password&amp;quot;, &amp;quot;&amp;quot;, -1&amp;#41;;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;if&amp;#40;isset&amp;#40;$_COOKIE&amp;#91;session_name&amp;#40;&amp;#41;&amp;#93;&amp;#41;&amp;#41;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;setcookie&amp;#40;session_name&amp;#40;&amp;#41;, &amp;quot;&amp;quot;, -1, '/'&amp;#41;;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;session_destroy&amp;#40;&amp;#41;;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;header&amp;#40;&amp;quot;Location&amp;#58; &amp;quot;.WEBSITE.'index.php'&amp;#41;;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;die;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;#125;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;#125;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;else
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;#123;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;if&amp;#40;$_SESSION&amp;#91;'redirect_'.$_GET&amp;#91;'redirect'&amp;#93;&amp;#93;&amp;#41;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;#123;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;$redirect_url=$_SESSION&amp;#91;'redirect_'.$_GET&amp;#91;'redirect'&amp;#93;&amp;#93;;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;unset&amp;#40;$_SESSION&amp;#41;;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;do_redirect&amp;#40;$redirect_url&amp;#41;;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;//echo $redirect_url;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;die;//
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;#125;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;else die&amp;#40;header&amp;#40;&amp;quot;Location&amp;#58; &amp;quot;.WEBSITE.&amp;quot;login.php&amp;quot;&amp;#41;&amp;#41;;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;#125;
&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;
is_login() checks whether the person is logged in!!
&lt;br/&gt;

&lt;br/&gt;
the redirect URL is saved in sessions and everytime user logges out, it saves the referal url in the session and then after logout takes user back to the referal page.
&lt;br/&gt;

&lt;br/&gt;
here is the redirecting function
&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;function do_redirect&amp;#40;$redirect_url&amp;#41;
&lt;br/&gt;
&amp;#123;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;header&amp;#40;&amp;quot;Location&amp;#58; &amp;quot;.$redirect_url&amp;#41;;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;die;
&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;
I have been using session_destroy() since the first version of this script and till now i have modified the script 4-5 times but the error below never occured. Now this error is occuring frequantly.
&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; session_destroy&amp;#40;&amp;#41; &amp;#91;function.session-destroy&amp;#93;&amp;#58; Session object destruction failed in C&amp;#58;\xampp\htdocs\MyWebsite\php\functions.php on line 346
&lt;br/&gt;

&lt;br/&gt;
Warning&amp;#58; Cannot modify header information - headers already sent by &amp;#40;output started at C&amp;#58;\xampp\htdocs\MyWebsite\php\functions.php&amp;#58;346&amp;#41; in C&amp;#58;\xampp\htdocs\MyWebsite\php\functions.php on line 352
&lt;br/&gt;

&lt;br/&gt;
Warning&amp;#58; Cannot modify header information - headers already sent by &amp;#40;output started at C&amp;#58;\xampp\htdocs\MyWebsite\php\functions.php&amp;#58;346&amp;#41; in C&amp;#58;\xampp\htdocs\MyWebsite\php\functions.php on line 25&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 tell me what may be the problem? This error is occuring 20% of the times when i try to logout. Rest of the times the code work perfectly.
&lt;br/&gt;

&lt;br/&gt;
Please help me making this script perfect.&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://www.frihost.com/forums/vt-95603.html&quot; title=&quot;session_destroy problems&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-95603.html</guid>
		</item>
		<item>
			<title>sessions help</title>
			<link>http://www.frihost.com/forums/vt-95616.html</link>
			<pubDate>Tue, 22 Jul 2008 04:46:17 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : sessions help &lt;/div&gt; &lt;hr/&gt; I have developed a script that starts a session whenever a user (whether logged in or not) comes to the site, so if 100,000 unique people come to site, 100,000 sessions are generated.
&lt;br/&gt;

&lt;br/&gt;
I am using a session based redirection system so that when every time a page loads, a new session variable is created (inside session array) without deleting or unsetting the previous one. That new variable contains the URL of current page.
&lt;br/&gt;

&lt;br/&gt;
This redirection system is perfect in solving my needs, but now I am curious about side effects. 
&lt;br/&gt;

&lt;br/&gt;
The script is excessively (but not unnecessarily) creating session variables on each page, so that one unique visiter after 100 page visits has 100+ session variables in his session. 
&lt;br/&gt;

&lt;br/&gt;
&lt;div class=&quot;detail&quot; style=&quot;font-weight: bold&quot;&gt;The problem&lt;/div class=&quot;detail&quot;&gt; is that mostly users leave the site without any clue and without logging off (if logged in). This keeps the sessions and sessions variable untouched and a lot of precious disk space may be left occupied when heavy strings (like URLs) are saved in sessions. 
&lt;br/&gt;

&lt;br/&gt;
I want to delete these sessions periodically (say after exactly 10 days of creating session), so that only latest sessions are left on the disk. Can you please tell me how to do this?
&lt;br/&gt;
Can someone provide me possible solution like modifying php settings, or using CRONJOBS (script).
&lt;br/&gt;
Or give me an alternative suggestions?&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://www.frihost.com/forums/vt-95616.html&quot; title=&quot;sessions help&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-95616.html</guid>
		</item>
		<item>
			<title>In my game, storing scouting reports.</title>
			<link>http://www.frihost.com/forums/vt-95694.html</link>
			<pubDate>Mon, 21 Jul 2008 18:22:32 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : In my game, storing scouting reports. &lt;/div&gt;&lt;hr/&gt; Okay, so in my game, which is browser based, you will be able to station soldiers any where you want in the world. An optimal place would be on a bridge between two islands. Now say someone sent a team of Scouts to check out an area across the bridge. They get to the bridge and they turn around and they don't come back with a scout report of the intended destination, but of the bridge becuase they could not get past.
&lt;br/&gt;

&lt;br/&gt;
Now say that same person sends a full-scale attack to the intended destination of the scouts. I want a JavaScript pop-up to come up saying &amp;quot;Are you sure you want to take that route? The bridge is covered in enemies!&amp;quot; The person will then be able to cancel the attack so that is doesn't get killed on the bridge.
&lt;br/&gt;

&lt;br/&gt;
What I want to know is how do I store who has seen what enemy camp?
&lt;br/&gt;

&lt;br/&gt;
This will be sort of like the system for unread posts on a forum.
&lt;br/&gt;

&lt;br/&gt;
If someone's scouts have seen an enemy camp, that person will get a warning that they are going to go past it, but if someone's scouts DIDN'T see the enemy camp, the person will receive no danger warning.
&lt;br/&gt;

&lt;br/&gt;
How would I implement a system like this?
&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-95694.html&quot; title=&quot;In my game, storing scouting reports.&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-95694.html</guid>
		</item>
		<item>
			<title>So I am making this game.....</title>
			<link>http://www.frihost.com/forums/vt-95686.html</link>
			<pubDate>Mon, 21 Jul 2008 16:18:24 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : So I am making this game..... &lt;/div&gt; &lt;hr/&gt; Okay, so I am making this game and it is a sort of medieval based browser game. It has tons of customizations, but I can't figure out how to sort them all out.
&lt;br/&gt;

&lt;br/&gt;
See, here is my dilemma:
&lt;br/&gt;

&lt;br/&gt;
In the game, there is a machine shop that can make different kinds of siege weapons.
&lt;br/&gt;

&lt;br/&gt;
One of the weapons is a battering ram.
&lt;br/&gt;

&lt;br/&gt;
The battering ram has a ton of customizations. 4 different kinds of wheel, 2 different kinds of braking system, 5 different Ram heads, 4 different things to make it stronger 5 different kinds of support structures.
&lt;br/&gt;

&lt;br/&gt;
My problem is that, in the machine shop, someone could select to build 10 battering rams with basic wheels, a hand brake, a steel ram head, a spike in the head, and a square structure.
&lt;br/&gt;

&lt;br/&gt;
Then they could make 20 more rams that have steel wheels, grappling hook brakes, a blunt steel head, an archer deck, and a triangular support.
&lt;br/&gt;

&lt;br/&gt;
These two different types of battering rams will have different attack and defense strengths and different purposes.
&lt;br/&gt;

&lt;br/&gt;
My problem is storing the information of who has how many of what ram. I didn't even list all the combinations. There are hundreds of total combinations.
&lt;br/&gt;

&lt;br/&gt;
What would be the best way to store the data saying Player A has 500 of the first kind I listed, 20 of the second kind, and 500 of some other combination, while Player B has something totally different.
&lt;br/&gt;

&lt;br/&gt;
I was thinking that maybe each individual weapon could have it's own database with every possible combination in it, and every combination is numbered and in the user's file it would show what numbers the player has. Would this work? Anyone have any ideas for simpler way?
&lt;br/&gt;

&lt;br/&gt;
Thank you so 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-95686.html&quot; title=&quot;So I am making this game.....&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-95686.html</guid>
		</item>
		<item>
			<title>Interactive map in a game...</title>
			<link>http://www.frihost.com/forums/vt-95687.html</link>
			<pubDate>Mon, 21 Jul 2008 15:49:53 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : Interactive map in a game... &lt;/div&gt;&lt;hr/&gt; So I am making this game that is town based and everyone runs their own town. You can conquer towns next to you to expand your empire. The thing with this is that when you conquer the town next to you, the two towns merge into one larger town.
&lt;br/&gt;

&lt;br/&gt;
On the world map, I want to be able to show a different image showing the two merged towns. What would be the best way to do this? (This is a browser based game.)
&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;
P.S. I realize that I have a similar topic in the JavaScript forum. I want to look at multiple ways and decide which is best.&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://www.frihost.com/forums/vt-95687.html&quot; title=&quot;Interactive map in a game...&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-95687.html</guid>
		</item>
		<item>
			<title>Strange Problem in PHP-MYSQL</title>
			<link>http://www.frihost.com/forums/vt-95346.html</link>
			<pubDate>Mon, 21 Jul 2008 05:27:31 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : Strange Problem in PHP-MYSQL &lt;/div&gt; &lt;hr/&gt; I have developed a bibliographic database.In the navigation it has a prev and next button.For some records even if the record is present, it is not showing when I click prev or next button.The problem can be viewed at &lt;a href=&quot;http://www.pratik.frih.net/biblio/search_prev.php?id=4&quot; target=&quot;_blank&quot; class=&quot;postlink&quot; rel=&quot;nofollow&quot;&gt;http://www.pratik.frih.net/biblio/search_prev.php?id=4&lt;/a&gt;. But when the same id is input directly in the search by id field, the record is fetched without any problem.If the blank fields(author, title etc) are filled with something like Not Available, the record is displayed.What may be the problem? Below is the code for nevigation search (search_next.php)--
&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;? header&amp;#40;&amp;quot;Content-Type&amp;#58; text/html; charset=UTF-8&amp;quot;&amp;#41;; ?&amp;gt;
&lt;br/&gt;
&amp;lt;?
&lt;br/&gt;
include 'menu.php';
&lt;br/&gt;
include 'connect.php';
&lt;br/&gt;
&amp;nbsp;if&amp;#40;!empty&amp;#40;$_GET&amp;#91;'id'&amp;#93;&amp;#41;&amp;#41;&amp;#123;
&lt;br/&gt;
&amp;nbsp;$book_id=$_GET&amp;#91;'id'&amp;#93;;
&lt;br/&gt;
&amp;nbsp;
&lt;br/&gt;
&amp;nbsp;$query2=&amp;quot;SELECT *
&lt;br/&gt;
&amp;nbsp;FROM bibdata;&amp;quot;;
&lt;br/&gt;
&amp;nbsp;$result2=mysql_query&amp;#40;$query2&amp;#41;or die&amp;#40;mysql_error&amp;#40;&amp;#41;&amp;#41;;
&lt;br/&gt;
&amp;nbsp;$num=mysql_num_rows&amp;#40;$result2&amp;#41;;
&lt;br/&gt;
&amp;nbsp;if&amp;#40;$book_id &amp;gt;=$num&amp;#41;&amp;#123;
&lt;br/&gt;
&amp;nbsp;echo'&amp;lt;div align=&amp;quot;center&amp;quot;&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot; size=&amp;quot;+2&amp;quot;&amp;gt;YOU HAVE REACHED AT THE END OF THE RECORD, MOVING FURTHER IS NOT POSSIBLE.&amp;lt;/font&amp;gt;&amp;lt;/div&amp;gt;';
&lt;br/&gt;
&amp;nbsp;$book_id==$num;
&lt;br/&gt;
&amp;nbsp;?&amp;gt;
&lt;br/&gt;
&amp;nbsp;&amp;lt;pre&amp;gt;&amp;lt;a href=&amp;quot;search_prev.php?id=&amp;lt;?echo $book_id?&amp;gt;&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;images/prev.JPG&amp;quot; alt=&amp;quot;&amp;quot; width=&amp;quot;90&amp;quot; height=&amp;quot;34&amp;quot; border=&amp;quot;0&amp;quot;&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/pre&amp;gt;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;lt;?php
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;
&lt;br/&gt;
exit&amp;#40;0&amp;#41;;
&lt;br/&gt;
&amp;nbsp;&amp;#125;?&amp;gt; 
&lt;br/&gt;
&amp;nbsp;
&lt;br/&gt;
&amp;nbsp;&amp;lt;? 
&lt;br/&gt;
&amp;nbsp;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;$book_id=$book_id+1;&amp;nbsp; &amp;nbsp;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;
&lt;br/&gt;
&amp;nbsp;$query=&amp;quot;SELECT *
&lt;br/&gt;
&amp;nbsp;FROM bibdata
&lt;br/&gt;
&amp;nbsp;WHERE b_id='$book_id'&amp;quot;;
&lt;br/&gt;
&amp;nbsp;$result=mysql_query&amp;#40;$query&amp;#41;or die&amp;#40;mysql_error&amp;#40;&amp;#41;&amp;#41;;
&lt;br/&gt;
&amp;nbsp;if&amp;#40;$result&amp;#41;&amp;#123;
&lt;br/&gt;
&amp;nbsp;while&amp;#40;$row=mysql_fetch_array&amp;#40;$result&amp;#41;&amp;#41;&amp;#123;
&lt;br/&gt;
&amp;nbsp;extract&amp;#40;$row&amp;#41;;
&lt;br/&gt;
&amp;nbsp;
&lt;br/&gt;
&amp;nbsp;&amp;#125;
&lt;br/&gt;
&amp;nbsp;&amp;#125;
&lt;br/&gt;
&amp;nbsp;
&lt;br/&gt;
&amp;nbsp;
&lt;br/&gt;
&amp;nbsp;
&lt;br/&gt;
if&amp;#40;$b_id!=0 &amp;amp;&amp;amp; $author!=&amp;quot;&amp;quot; &amp;amp;&amp;amp; $title!=&amp;quot;&amp;quot; &amp;amp;&amp;amp; $callnumb!=&amp;quot;&amp;quot; &amp;amp;&amp;amp; $verified!=&amp;quot;&amp;quot;&amp;#41;&amp;#123;
&lt;br/&gt;

&lt;br/&gt;
&amp;nbsp;echo'&amp;lt;div align=&amp;quot;center&amp;quot;&amp;gt;&amp;lt;p&amp;gt;&amp;lt;div class=&quot;detail&quot; style=&amp;quot;text-transform&amp;#58; uppercase;&amp;quot;&amp;gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;&amp;lt;font face=&amp;quot;Arial Black&amp;quot; size=&amp;quot;+3&amp;quot; color=&amp;quot;green&amp;quot;&amp;gt;Book record&amp;lt;/font&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&amp;lt;/div class=&quot;detail&quot;&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;/div&amp;gt;';
&lt;br/&gt;
&amp;nbsp;echo'&amp;lt;table align=&amp;quot;center&amp;quot;&amp;gt;';
&lt;br/&gt;
&amp;nbsp;echo'&amp;lt;p&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;b&amp;gt;&amp;lt;font face=&amp;quot;Sylfaen&amp;quot; color=&amp;quot;green&amp;quot;&amp;gt;Book id&amp;#58;&amp;lt;/font&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;div class=&quot;detail&quot; style=&amp;quot;text-transform&amp;#58; capitalize;&amp;quot;&amp;gt;&amp;lt;font size=&amp;quot;+1&amp;quot; color=&amp;quot;blue&amp;quot;&amp;gt;';
&lt;br/&gt;
&amp;nbsp;echo $b_id;
&lt;br/&gt;
&amp;nbsp;echo'&amp;lt;/font&amp;gt;&amp;lt;/div class=&quot;detail&quot;&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;';
&lt;br/&gt;
&amp;nbsp;echo'&amp;lt;p&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;b&amp;gt;&amp;lt;font face=&amp;quot;Sylfaen&amp;quot; color=&amp;quot;green&amp;quot;&amp;gt;subject&amp;#58;&amp;lt;/font&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;div class=&quot;detail&quot; style=&amp;quot;text-transform&amp;#58; capitalize;&amp;quot;&amp;gt;&amp;lt;font size=&amp;quot;+1&amp;quot; color=&amp;quot;blue&amp;quot;&amp;gt;';
&lt;br/&gt;
&amp;nbsp;echo $subject;
&lt;br/&gt;
&amp;nbsp;echo'&amp;lt;/font&amp;gt;&amp;lt;/div class=&quot;detail&quot;&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;';
&lt;br/&gt;
&amp;nbsp;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;echo'&amp;lt;p&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;b&amp;gt;&amp;lt;font face=&amp;quot;Sylfaen&amp;quot; color=&amp;quot;green&amp;quot;&amp;gt;series&amp;#58;&amp;lt;/font&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;div class=&quot;detail&quot; style=&amp;quot;text-transform&amp;#58; capitalize;&amp;quot;&amp;gt;&amp;lt;font size=&amp;quot;+1&amp;quot; color=&amp;quot;blue&amp;quot;&amp;gt;';
&lt;br/&gt;
&amp;nbsp;echo $series;
&lt;br/&gt;
&amp;nbsp;echo'&amp;lt;/font&amp;gt;&amp;lt;/div class=&quot;detail&quot;&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;';
&lt;br/&gt;
&amp;nbsp;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp; echo'&amp;lt;p&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;b&amp;gt;&amp;lt;font face=&amp;quot;Sylfaen&amp;quot; color=&amp;quot;green&amp;quot;&amp;gt;title&amp;#58;&amp;lt;/font&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;div class=&quot;detail&quot; style=&amp;quot;text-transform&amp;#58; capitalize;&amp;quot;&amp;gt;&amp;lt;font size=&amp;quot;+1&amp;quot; color=&amp;quot;blue&amp;quot;&amp;gt;';
&lt;br/&gt;
&amp;nbsp;echo $title;
&lt;br/&gt;
&amp;nbsp;echo'&amp;lt;/font&amp;gt;&amp;lt;/div class=&quot;detail&quot;&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;';
&lt;br/&gt;
&amp;nbsp;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp; echo'&amp;lt;p&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;b&amp;gt;&amp;lt;font face=&amp;quot;Sylfaen&amp;quot; color=&amp;quot;green&amp;quot;&amp;gt;translated_title&amp;#58;&amp;lt;/font&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;div class=&quot;detail&quot; style=&amp;quot;text-transform&amp;#58; capitalize;&amp;quot;&amp;gt;&amp;lt;font size=&amp;quot;+1&amp;quot; color=&amp;quot;blue&amp;quot;&amp;gt;';
&lt;br/&gt;
&amp;nbsp;echo $translated_title;
&lt;br/&gt;
&amp;nbsp;echo'&amp;lt;/font&amp;gt;&amp;lt;/div class=&quot;detail&quot;&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;';
&lt;br/&gt;
&amp;nbsp;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp; echo'&amp;lt;p&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;b&amp;gt;&amp;lt;font face=&amp;quot;Sylfaen&amp;quot; color=&amp;quot;green&amp;quot;&amp;gt;author&amp;#58;&amp;lt;/font&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;div class=&quot;detail&quot; style=&amp;quot;text-transform&amp;#58; capitalize;&amp;quot;&amp;gt;&amp;lt;font size=&amp;quot;+1&amp;quot; color=&amp;quot;blue&amp;quot;&amp;gt;';
&lt;br/&gt;
&amp;nbsp;echo $author;
&lt;br/&gt;
&amp;nbsp;echo'&amp;lt;/font&amp;gt;&amp;lt;/div class=&quot;detail&quot;&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;';
&lt;br/&gt;
&amp;nbsp;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp; echo'&amp;lt;p&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;b&amp;gt;&amp;lt;font face=&amp;quot;Sylfaen&amp;quot; color=&amp;quot;green&amp;quot;&amp;gt;place_of_publication&amp;#58;&amp;lt;/font&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;div class=&quot;detail&quot; style=&amp;quot;text-transform&amp;#58; capitalize;&amp;quot;&amp;gt;&amp;lt;font size=&amp;quot;+1&amp;quot; color=&amp;quot;blue&amp;quot;&amp;gt;';
&lt;br/&gt;
&amp;nbsp;echo $place_of_publication;
&lt;br/&gt;
&amp;nbsp;echo'&amp;lt;/font&amp;gt;&amp;lt;/div class=&quot;detail&quot;&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;';
&lt;br/&gt;
&amp;nbsp;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp; echo'&amp;lt;p&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;b&amp;gt;&amp;lt;font face=&amp;quot;Sylfaen&amp;quot; color=&amp;quot;green&amp;quot;&amp;gt;year_of_publication&amp;#58;&amp;lt;/font&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;div class=&quot;detail&quot; style=&amp;quot;text-transform&amp;#58; capitalize;&amp;quot;&amp;gt;&amp;lt;font size=&amp;quot;+1&amp;quot; color=&amp;quot;blue&amp;quot;&amp;gt;';
&lt;br/&gt;
&amp;nbsp;echo $year_of_publication;
&lt;br/&gt;
&amp;nbsp;echo'&amp;lt;/font&amp;gt;&amp;lt;/div class=&quot;detail&quot;&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;';
&lt;br/&gt;
&amp;nbsp;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp; echo'&amp;lt;p&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;b&amp;gt;&amp;lt;font face=&amp;quot;Sylfaen&amp;quot; color=&amp;quot;green&amp;quot;&amp;gt;press&amp;#58;&amp;lt;/font&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;div class=&quot;detail&quot; style=&amp;quot;text-transform&amp;#58; capitalize;&amp;quot;&amp;gt;&amp;lt;font size=&amp;quot;+1&amp;quot; color=&amp;quot;blue&amp;quot;&amp;gt;';
&lt;br/&gt;
&amp;nbsp;echo $press;
&lt;br/&gt;
&amp;nbsp;echo'&amp;lt;/font&amp;gt;&amp;lt;/div class=&quot;detail&quot;&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;';
&lt;br/&gt;
&amp;nbsp;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp; echo'&amp;lt;p&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;b&amp;gt;&amp;lt;font face=&amp;quot;Sylfaen&amp;quot; color=&amp;quot;green&amp;quot;&amp;gt;collation&amp;#58;&amp;lt;/font&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;div class=&quot;detail&quot; style=&amp;quot;text-transform&amp;#58; capitalize;&amp;quot;&amp;gt;&amp;lt;font size=&amp;quot;+1&amp;quot; color=&amp;quot;blue&amp;quot;&amp;gt;';
&lt;br/&gt;
&amp;nbsp;echo $collation;
&lt;br/&gt;
&amp;nbsp;echo'&amp;lt;/font&amp;gt;&amp;lt;/div class=&quot;detail&quot;&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;';
&lt;br/&gt;
&amp;nbsp;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp; echo'&amp;lt;p&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;b&amp;gt;&amp;lt;font face=&amp;quot;Sylfaen&amp;quot; color=&amp;quot;green&amp;quot;&amp;gt;pagination&amp;#58;&amp;lt;/font&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;div class=&quot;detail&quot; style=&amp;quot;text-transform&amp;#58; capitalize;&amp;quot;&amp;gt;&amp;lt;font size=&amp;quot;+1&amp;quot; color=&amp;quot;blue&amp;quot;&amp;gt;';
&lt;br/&gt;
&amp;nbsp;echo $pagination;
&lt;br/&gt;
&amp;nbsp;echo'&amp;lt;/font&amp;gt;&amp;lt;/div class=&quot;detail&quot;&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;';
&lt;br/&gt;
&amp;nbsp;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp; echo'&amp;lt;p&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;b&amp;gt;&amp;lt;font face=&amp;quot;Sylfaen&amp;quot; color=&amp;quot;green&amp;quot;&amp;gt;size&amp;#58;&amp;lt;/font&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;div class=&quot;detail&quot; style=&amp;quot;text-transform&amp;#58; capitalize;&amp;quot;&amp;gt;&amp;lt;font size=&amp;quot;+1&amp;quot; color=&amp;quot;blue&amp;quot;&amp;gt;';
&lt;br/&gt;
&amp;nbsp;echo $size;
&lt;br/&gt;
&amp;nbsp;echo'&amp;lt;/font&amp;gt;&amp;lt;/div class=&quot;detail&quot;&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;';
&lt;br/&gt;
&amp;nbsp;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp; echo'&amp;lt;p&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;b&amp;gt;&amp;lt;font face=&amp;quot;Sylfaen&amp;quot; color=&amp;quot;green&amp;quot;&amp;gt;price&amp;#58;&amp;lt;/font&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;div class=&quot;detail&quot; style=&amp;quot;text-transform&amp;#58; capitalize;&amp;quot;&amp;gt;&amp;lt;font size=&amp;quot;+1&amp;quot; color=&amp;quot;blue&amp;quot;&amp;gt;';
&lt;br/&gt;
&amp;nbsp;echo $price;
&lt;br/&gt;
&amp;nbsp;echo'&amp;lt;/font&amp;gt;&amp;lt;/div class=&quot;detail&quot;&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;';
&lt;br/&gt;
&amp;nbsp;
&lt;br/&gt;
&amp;nbsp;echo'&amp;lt;p&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;b&amp;gt;&amp;lt;font face=&amp;quot;Sylfaen&amp;quot; color=&amp;quot;green&amp;quot;&amp;gt;Title page&amp;#58;&amp;lt;/font&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;div class=&quot;detail&quot; style=&amp;quot;text-transform&amp;#58; capitalize;&amp;quot;&amp;gt;&amp;lt;font face=&amp;quot;arial&amp;quot; size=&amp;quot;+2&amp;quot; color=&amp;quot;blue&amp;quot;&amp;gt;';
&lt;br/&gt;
&amp;nbsp;echo $title_page;
&lt;br/&gt;
&amp;nbsp;echo'&amp;lt;/font&amp;gt;&amp;lt;/div class=&quot;detail&quot;&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;';
&lt;br/&gt;
&amp;nbsp;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp; echo'&amp;lt;p&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;b&amp;gt;&amp;lt;font face=&amp;quot;Sylfaen&amp;quot; color=&amp;quot;green&amp;quot;&amp;gt;Note&amp;#58;&amp;lt;/font&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;div class=&quot;detail&quot; style=&amp;quot;text-transform&amp;#58; capitalize;&amp;quot;&amp;gt;&amp;lt;font size=&amp;quot;+1&amp;quot; color=&amp;quot;blue&amp;quot;&amp;gt;';
&lt;br/&gt;
&amp;nbsp;echo $note;
&lt;br/&gt;
&amp;nbsp;echo'&amp;lt;/font&amp;gt;&amp;lt;/div class=&quot;detail&quot;&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;';
&lt;br/&gt;
&amp;nbsp;
&lt;br/&gt;
&amp;nbsp;echo'&amp;lt;p&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;b&amp;gt;&amp;lt;font face=&amp;quot;Sylfaen&amp;quot; color=&amp;quot;green&amp;quot;&amp;gt;Library Name&amp;#58;&amp;lt;/font&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;div class=&quot;detail&quot; style=&amp;quot;text-transform&amp;#58; capitalize;&amp;quot;&amp;gt;&amp;lt;font size=&amp;quot;+1&amp;quot; color=&amp;quot;blue&amp;quot;&amp;gt;';
&lt;br/&gt;
&amp;nbsp;echo $libname;
&lt;br/&gt;
&amp;nbsp;echo'&amp;lt;/font&amp;gt;&amp;lt;/div class=&quot;detail&quot;&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;';
&lt;br/&gt;
&amp;nbsp;
&lt;br/&gt;
&amp;nbsp;echo'&amp;lt;p&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;b&amp;gt;&amp;lt;font face=&amp;quot;Sylfaen&amp;quot; color=&amp;quot;green&amp;quot;&amp;gt;Call Number&amp;#58;&amp;lt;/font&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;div class=&quot;detail&quot; style=&amp;quot;text-transform&amp;#58; capitalize;&amp;quot;&amp;gt;&amp;lt;font size=&amp;quot;+1&amp;quot; color=&amp;quot;blue&amp;quot;&amp;gt;';
&lt;br/&gt;
&amp;nbsp;echo $callnumb;
&lt;br/&gt;
&amp;nbsp;echo'&amp;lt;/font&amp;gt;&amp;lt;/div class=&quot;detail&quot;&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;';
&lt;br/&gt;
&amp;nbsp;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp; echo'&amp;lt;p&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;b&amp;gt;&amp;lt;font face=&amp;quot;Sylfaen&amp;quot; color=&amp;quot;green&amp;quot;&amp;gt;Status&amp;#58;&amp;lt;/font&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;div class=&quot;detail&quot; style=&amp;quot;text-transform&amp;#58; capitalize;&amp;quot;&amp;gt;&amp;lt;font size=&amp;quot;+1&amp;quot; color=&amp;quot;blue&amp;quot;&amp;gt;';
&lt;br/&gt;
&amp;nbsp;echo $verified;
&lt;br/&gt;
&amp;nbsp;echo'&amp;lt;/font&amp;gt;&amp;lt;/div class=&quot;detail&quot;&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;';
&lt;br/&gt;
&amp;nbsp;echo'&amp;lt;/table&amp;gt;'; 
&lt;br/&gt;

&lt;br/&gt;
&amp;nbsp;&amp;#125;else&amp;#123;
&lt;br/&gt;
&amp;nbsp;echo'&amp;lt;div align=&amp;quot;center&amp;quot;&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot; size=&amp;quot;+2&amp;quot;&amp;gt;No Book record exist for ID&amp;#58;&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;yellow&amp;quot; size=&amp;quot;+3&amp;quot;&amp;gt;';echo $b_id ;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp; echo'&amp;lt;/font&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;font color=&amp;quot;green&amp;quot; size=&amp;quot;+1&amp;quot;&amp;gt;Please press next button to try with next record&amp;lt;/font&amp;gt;&amp;lt;/div&amp;gt;';
&lt;br/&gt;
&amp;nbsp;&amp;#125;
&lt;br/&gt;
&amp;nbsp;
&lt;br/&gt;
&amp;nbsp;&amp;#125;else&amp;#123;
&lt;br/&gt;
&amp;nbsp;echo'&amp;lt;div align=&amp;quot;center&amp;quot;&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot; size=&amp;quot;+1&amp;quot;&amp;gt;Please enter a valid id&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Click &amp;lt;/&amp;lt;a href=&amp;quot;search_by_id_form.php&amp;quot;&amp;gt;here&amp;lt;/a&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;/div&amp;gt;';
&lt;br/&gt;
&amp;nbsp;&amp;#125;
&lt;br/&gt;
&amp;nbsp;echo'
&lt;br/&gt;
&amp;lt;/body&amp;gt;
&lt;br/&gt;
&amp;lt;/html&amp;gt;';
&lt;br/&gt;
include 'navigation.php';
&lt;br/&gt;
include 'footer.php';
&lt;br/&gt;
&amp;nbsp;?&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;
and the code for direct search(search_by_id.php)--
&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;

&lt;br/&gt;
&amp;lt;? header&amp;#40;&amp;quot;Content-Type&amp;#58; text/html; charset=UTF-8&amp;quot;&amp;#41;; ?&amp;gt;
&lt;br/&gt;
&amp;lt;?
&lt;br/&gt;
include 'menu.php';
&lt;br/&gt;
include 'connect.php';
&lt;br/&gt;
&amp;nbsp;if&amp;#40;!empty&amp;#40;$_POST&amp;#91;'id'&amp;#93;&amp;#41;&amp;#41;&amp;#123;
&lt;br/&gt;
&amp;nbsp;$book_id=$_POST&amp;#91;'id'&amp;#93;;
&lt;br/&gt;
&amp;nbsp;$query=&amp;quot;SELECT *
&lt;br/&gt;
&amp;nbsp;FROM bibdata
&lt;br/&gt;
&amp;nbsp;WHERE b_id='$book_id'&amp;quot;;
&lt;br/&gt;
&amp;nbsp;$result=mysql_query&amp;#40;$query&amp;#41;or die&amp;#40;mysql_error&amp;#40;&amp;#41;&amp;#41;;
&lt;br/&gt;
&amp;nbsp;if&amp;#40;$result&amp;#41;&amp;#123;
&lt;br/&gt;
&amp;nbsp;while&amp;#40;$row=mysql_fetch_array&amp;#40;$result&amp;#41;&amp;#41;&amp;#123;
&lt;br/&gt;
&amp;nbsp;extract&amp;#40;$row&amp;#41;;
&lt;br/&gt;
&amp;nbsp;&amp;#125;
&lt;br/&gt;
&amp;nbsp;&amp;#125;
&lt;br/&gt;
if&amp;#40;$b_id==$book_id&amp;#41;&amp;#123;
&lt;br/&gt;

&lt;br/&gt;
&amp;nbsp;echo'&amp;lt;div align=&amp;quot;center&amp;quot;&amp;gt;&amp;lt;p&amp;gt;&amp;lt;div class=&quot;detail&quot; style=&amp;quot;text-transform&amp;#58; uppercase;&amp;quot;&amp;gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;&amp;lt;font face=&amp;quot;Arial Black&amp;quot; size=&amp;quot;+3&amp;quot; color=&amp;quot;green&amp;quot;&amp;gt;Book record&amp;lt;/font&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&amp;lt;/div class=&quot;detail&quot;&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;/div&amp;gt;';
&lt;br/&gt;
&amp;nbsp;echo'&amp;lt;table align=&amp;quot;center&amp;quot;&amp;gt;';
&lt;br/&gt;
&amp;nbsp;echo'&amp;lt;p&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;b&amp;gt;&amp;lt;font face=&amp;quot;Sylfaen&amp;quot; color=&amp;quot;green&amp;quot;&amp;gt;Book id&amp;#58;&amp;lt;/font&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;div class=&quot;detail&quot; style=&amp;quot;text-transform&amp;#58; capitalize;&amp;quot;&amp;gt;&amp;lt;font size=&amp;quot;+1&amp;quot; color=&amp;quot;blue&amp;quot;&amp;gt;';
&lt;br/&gt;
&amp;nbsp;echo $b_id;
&lt;br/&gt;
&amp;nbsp;echo'&amp;lt;/font&amp;gt;&amp;lt;/div class=&quot;detail&quot;&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;';
&lt;br/&gt;
&amp;nbsp;echo'&amp;lt;p&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;b&amp;gt;&amp;lt;font face=&amp;quot;Sylfaen&amp;quot; color=&amp;quot;green&amp;quot;&amp;gt;subject&amp;#58;&amp;lt;/font&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;div class=&quot;detail&quot; style=&amp;quot;text-transform&amp;#58; capitalize;&amp;quot;&amp;gt;&amp;lt;font size=&amp;quot;+1&amp;quot; color=&amp;quot;blue&amp;quot;&amp;gt;';
&lt;br/&gt;
&amp;nbsp;echo $subject;
&lt;br/&gt;
&amp;nbsp;echo'&amp;lt;/font&amp;gt;&amp;lt;/div class=&quot;detail&quot;&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;';
&lt;br/&gt;
&amp;nbsp;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;echo'&amp;lt;p&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;b&amp;gt;&amp;lt;font face=&amp;quot;Sylfaen&amp;quot; color=&amp;quot;green&amp;quot;&amp;gt;series&amp;#58;&amp;lt;/font&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;div class=&quot;detail&quot; style=&amp;quot;text-transform&amp;#58; capitalize;&amp;quot;&amp;gt;&amp;lt;font size=&amp;quot;+1&amp;quot; color=&amp;quot;blue&amp;quot;&amp;gt;';
&lt;br/&gt;
&amp;nbsp;echo $series;
&lt;br/&gt;
&amp;nbsp;echo'&amp;lt;/font&amp;gt;&amp;lt;/div class=&quot;detail&quot;&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;';
&lt;br/&gt;
&amp;nbsp;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp; echo'&amp;lt;p&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;b&amp;gt;&amp;lt;font face=&amp;quot;Sylfaen&amp;quot; color=&amp;quot;green&amp;quot;&amp;gt;title&amp;#58;&amp;lt;/font&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;div class=&quot;detail&quot; style=&amp;quot;text-transform&amp;#58; capitalize;&amp;quot;&amp;gt;&amp;lt;font size=&amp;quot;+1&amp;quot; color=&amp;quot;blue&amp;quot;&amp;gt;';
&lt;br/&gt;
&amp;nbsp;echo $title;
&lt;br/&gt;
&amp;nbsp;echo'&amp;lt;/font&amp;gt;&amp;lt;/div class=&quot;detail&quot;&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;';
&lt;br/&gt;
&amp;nbsp;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp; echo'&amp;lt;p&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;b&amp;gt;&amp;lt;font face=&amp;quot;Sylfaen&amp;quot; color=&amp;quot;green&amp;quot;&amp;gt;translated_title&amp;#58;&amp;lt;/font&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;div class=&quot;detail&quot; style=&amp;quot;text-transform&amp;#58; capitalize;&amp;quot;&amp;gt;&amp;lt;font size=&amp;quot;+1&amp;quot; color=&amp;quot;blue&amp;quot;&amp;gt;';
&lt;br/&gt;
&amp;nbsp;echo $translated_title;
&lt;br/&gt;
&amp;nbsp;echo'&amp;lt;/font&amp;gt;&amp;lt;/div class=&quot;detail&quot;&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;';
&lt;br/&gt;
&amp;nbsp;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp; echo'&amp;lt;p&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;b&amp;gt;&amp;lt;font face=&amp;quot;Sylfaen&amp;quot; color=&amp;quot;green&amp;quot;&amp;gt;author&amp;#58;&amp;lt;/font&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;div class=&quot;detail&quot; style=&amp;quot;text-transform&amp;#58; capitalize;&amp;quot;&amp;gt;&amp;lt;font size=&amp;quot;+1&amp;quot; color=&amp;quot;blue&amp;quot;&amp;gt;';
&lt;br/&gt;
&amp;nbsp;echo $author;
&lt;br/&gt;
&amp;nbsp;echo'&amp;lt;/font&amp;gt;&amp;lt;/div class=&quot;detail&quot;&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;';
&lt;br/&gt;
&amp;nbsp;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp; echo'&amp;lt;p&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;b&amp;gt;&amp;lt;font face=&amp;quot;Sylfaen&amp;quot; color=&amp;quot;green&amp;quot;&amp;gt;place_of_publication&amp;#58;&amp;lt;/font&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;div class=&quot;detail&quot; style=&amp;quot;text-transform&amp;#58; capitalize;&amp;quot;&amp;gt;&amp;lt;font size=&amp;quot;+1&amp;quot; color=&amp;quot;blue&amp;quot;&amp;gt;';
&lt;br/&gt;
&amp;nbsp;echo $place_of_publication;
&lt;br/&gt;
&amp;nbsp;echo'&amp;lt;/font&amp;gt;&amp;lt;/div class=&quot;detail&quot;&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;';
&lt;br/&gt;
&amp;nbsp;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp; echo'&amp;lt;p&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;b&amp;gt;&amp;lt;font face=&amp;quot;Sylfaen&amp;quot; color=&amp;quot;green&amp;quot;&amp;gt;year_of_publication&amp;#58;&amp;lt;/font&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;div class=&quot;detail&quot; style=&amp;quot;text-transform&amp;#58; capitalize;&amp;quot;&amp;gt;&amp;lt;font size=&amp;quot;+1&amp;quot; color=&amp;quot;blue&amp;quot;&amp;gt;';
&lt;br/&gt;
&amp;nbsp;echo $year_of_publication;
&lt;br/&gt;
&amp;nbsp;echo'&amp;lt;/font&amp;gt;&amp;lt;/div class=&quot;detail&quot;&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;';
&lt;br/&gt;
&amp;nbsp;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp; echo'&amp;lt;p&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;b&amp;gt;&amp;lt;font face=&amp;quot;Sylfaen&amp;quot; color=&amp;quot;green&amp;quot;&amp;gt;press&amp;#58;&amp;lt;/font&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;div class=&quot;detail&quot; style=&amp;quot;text-transform&amp;#58; capitalize;&amp;quot;&amp;gt;&amp;lt;font size=&amp;quot;+1&amp;quot; color=&amp;quot;blue&amp;quot;&amp;gt;';
&lt;br/&gt;
&amp;nbsp;echo $press;
&lt;br/&gt;
&amp;nbsp;echo'&amp;lt;/font&amp;gt;&amp;lt;/div class=&quot;detail&quot;&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;';
&lt;br/&gt;
&amp;nbsp;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp; echo'&amp;lt;p&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;b&amp;gt;&amp;lt;font face=&amp;quot;Sylfaen&amp;quot; color=&amp;quot;green&amp;quot;&amp;gt;collation&amp;#58;&amp;lt;/font&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;div class=&quot;detail&quot; style=&amp;quot;text-transform&amp;#58; capitalize;&amp;quot;&amp;gt;&amp;lt;font size=&amp;quot;+1&amp;quot; color=&amp;quot;blue&amp;quot;&amp;gt;';
&lt;br/&gt;
&amp;nbsp;echo $collation;
&lt;br/&gt;
&amp;nbsp;echo'&amp;lt;/font&amp;gt;&amp;lt;/div class=&quot;detail&quot;&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;';
&lt;br/&gt;
&amp;nbsp;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp; echo'&amp;lt;p&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;b&amp;gt;&amp;lt;font face=&amp;quot;Sylfaen&amp;quot; color=&amp;quot;green&amp;quot;&amp;gt;pagination&amp;#58;&amp;lt;/font&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;div class=&quot;detail&quot; style=&amp;quot;text-transform&amp;#58; capitalize;&amp;quot;&amp;gt;&amp;lt;font size=&amp;quot;+1&amp;quot; color=&amp;quot;blue&amp;quot;&amp;gt;';
&lt;br/&gt;
&amp;nbsp;echo $pagination;
&lt;br/&gt;
&amp;nbsp;echo'&amp;lt;/font&amp;gt;&amp;lt;/div class=&quot;detail&quot;&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;';
&lt;br/&gt;
&amp;nbsp;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp; echo'&amp;lt;p&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;b&amp;gt;&amp;lt;font face=&amp;quot;Sylfaen&amp;quot; color=&amp;quot;green&amp;quot;&amp;gt;size&amp;#58;&amp;lt;/font&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;div class=&quot;detail&quot; style=&amp;quot;text-transform&amp;#58; capitalize;&amp;quot;&amp;gt;&amp;lt;font size=&amp;quot;+1&amp;quot; color=&amp;quot;blue&amp;quot;&amp;gt;';
&lt;br/&gt;
&amp;nbsp;echo $size;
&lt;br/&gt;
&amp;nbsp;echo'&amp;lt;/font&amp;gt;&amp;lt;/div class=&quot;detail&quot;&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;';
&lt;br/&gt;
&amp;nbsp;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp; echo'&amp;lt;p&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;b&amp;gt;&amp;lt;font face=&amp;quot;Sylfaen&amp;quot; color=&amp;quot;green&amp;quot;&amp;gt;price&amp;#58;&amp;lt;/font&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;div class=&quot;detail&quot; style=&amp;quot;text-transform&amp;#58; capitalize;&amp;quot;&amp;gt;&amp;lt;font size=&amp;quot;+1&amp;quot; color=&amp;quot;blue&amp;quot;&amp;gt;';
&lt;br/&gt;
&amp;nbsp;echo $price;
&lt;br/&gt;
&amp;nbsp;echo'&amp;lt;/font&amp;gt;&amp;lt;/div class=&quot;detail&quot;&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;';
&lt;br/&gt;
&amp;nbsp;
&lt;br/&gt;
&amp;nbsp;echo'&amp;lt;p&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;b&amp;gt;&amp;lt;font face=&amp;quot;Sylfaen&amp;quot; color=&amp;quot;green&amp;quot;&amp;gt;Title page&amp;#58;&amp;lt;/font&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;div class=&quot;detail&quot; style=&amp;quot;text-transform&amp;#58; capitalize;&amp;quot;&amp;gt;&amp;lt;font face=&amp;quot;arial&amp;quot; size=&amp;quot;+2&amp;quot; color=&amp;quot;blue&amp;quot;&amp;gt;';
&lt;br/&gt;
&amp;nbsp;echo $title_page;
&lt;br/&gt;
&amp;nbsp;echo'&amp;lt;/font&amp;gt;&amp;lt;/div class=&quot;detail&quot;&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;';
&lt;br/&gt;
&amp;nbsp;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp; echo'&amp;lt;p&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;b&amp;gt;&amp;lt;font face=&amp;quot;Sylfaen&amp;quot; color=&amp;quot;green&amp;quot;&amp;gt;Note&amp;#58;&amp;lt;/font&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;div class=&quot;detail&quot; style=&amp;quot;text-transform&amp;#58; capitalize;&amp;quot;&amp;gt;&amp;lt;font size=&amp;quot;+1&amp;quot; color=&amp;quot;blue&amp;quot;&amp;gt;';
&lt;br/&gt;
&amp;nbsp;echo $note;
&lt;br/&gt;
&amp;nbsp;echo'&amp;lt;/font&amp;gt;&amp;lt;/div class=&quot;detail&quot;&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;';
&lt;br/&gt;
&amp;nbsp;
&lt;br/&gt;
&amp;nbsp;echo'&amp;lt;p&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;b&amp;gt;&amp;lt;font face=&amp;quot;Sylfaen&amp;quot; color=&amp;quot;green&amp;quot;&amp;gt;Library Name&amp;#58;&amp;lt;/font&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;div class=&quot;detail&quot; style=&amp;quot;text-transform&amp;#58; capitalize;&amp;quot;&amp;gt;&amp;lt;font size=&amp;quot;+1&amp;quot; color=&amp;quot;blue&amp;quot;&amp;gt;';
&lt;br/&gt;
&amp;nbsp;echo $libname;
&lt;br/&gt;
&amp;nbsp;echo'&amp;lt;/font&amp;gt;&amp;lt;/div class=&quot;detail&quot;&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;';
&lt;br/&gt;
&amp;nbsp;
&lt;br/&gt;
&amp;nbsp;echo'&amp;lt;p&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;b&amp;gt;&amp;lt;font face=&amp;quot;Sylfaen&amp;quot; color=&amp;quot;green&amp;quot;&amp;gt;Call Number&amp;#58;&amp;lt;/font&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;div class=&quot;detail&quot; style=&amp;quot;text-transform&amp;#58; capitalize;&amp;quot;&amp;gt;&amp;lt;font size=&amp;quot;+1&amp;quot; color=&amp;quot;blue&amp;quot;&amp;gt;';
&lt;br/&gt;
&amp;nbsp;echo $callnumb;
&lt;br/&gt;
&amp;nbsp;echo'&amp;lt;/font&amp;gt;&amp;lt;/div class=&quot;detail&quot;&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;';
&lt;br/&gt;
&amp;nbsp;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp; echo'&amp;lt;p&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;b&amp;gt;&amp;lt;font face=&amp;quot;Sylfaen&amp;quot; color=&amp;quot;green&amp;quot;&amp;gt;Status&amp;#58;&amp;lt;/font&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;div class=&quot;detail&quot; style=&amp;quot;text-transform&amp;#58; capitalize;&amp;quot;&amp;gt;&amp;lt;font size=&amp;quot;+1&amp;quot; color=&amp;quot;blue&amp;quot;&amp;gt;';
&lt;br/&gt;
&amp;nbsp;echo $verified;
&lt;br/&gt;
&amp;nbsp;echo'&amp;lt;/font&amp;gt;&amp;lt;/div class=&quot;detail&quot;&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;';
&lt;br/&gt;
&amp;nbsp;echo'&amp;lt;/table&amp;gt;'; 
&lt;br/&gt;

&lt;br/&gt;
&amp;nbsp;&amp;#125;else&amp;#123;
&lt;br/&gt;
&amp;nbsp;echo'&amp;lt;div align=&amp;quot;center&amp;quot;&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot; size=&amp;quot;+1&amp;quot;&amp;gt;Book id does not match!&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Please &amp;lt;a href=&amp;quot;search_by_id_form.php&amp;quot;&amp;gt;submit&amp;lt;/a&amp;gt; a valid ID&amp;lt;/font&amp;gt;&amp;lt;/div&amp;gt;';
&lt;br/&gt;
&amp;nbsp;&amp;#125;
&lt;br/&gt;
&amp;nbsp;&amp;#125;else&amp;#123;
&lt;br/&gt;
&amp;nbsp;echo'&amp;lt;div align=&amp;quot;center&amp;quot;&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot; size=&amp;quot;+1&amp;quot;&amp;gt;Please enter a valid id&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/&amp;lt;a href=&amp;quot;search_by_id_form.php&amp;quot;&amp;gt;Click here&amp;lt;/a&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;/div&amp;gt;';
&lt;br/&gt;
&amp;nbsp;&amp;#125;
&lt;br/&gt;
&amp;nbsp;echo'
&lt;br/&gt;
&amp;lt;/body&amp;gt;
&lt;br/&gt;
&amp;lt;/html&amp;gt;';
&lt;br/&gt;
include 'navigation.php';
&lt;br/&gt;
include 'footer.php';
&lt;br/&gt;
&amp;nbsp;?&amp;gt;
&lt;br/&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;
Please help.&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://www.frihost.com/forums/vt-95346.html&quot; title=&quot;Strange Problem in 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; 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-95346.html</guid>
		</item>
		<item>
			<title>Ad Select Script</title>
			<link>http://www.frihost.com/forums/vt-95470.html</link>
			<pubDate>Sun, 20 Jul 2008 21:39:50 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : Ad Select Script &lt;/div&gt; &lt;hr/&gt; I searched Google but I didn't find what I want.
&lt;br/&gt;

&lt;br/&gt;
I want a script which selects a random ads and shows it.
&lt;br/&gt;

&lt;br/&gt;

&lt;br/&gt;
For example: I have 4 different ads. The script shows the script number 2, next time when you refresh the page, it shows no 4, etc.
&lt;br/&gt;

&lt;br/&gt;

&lt;br/&gt;
Can somebody help me? &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; Please &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;&lt;a href=&quot;http://www.frihost.com/forums/vt-95470.html&quot; title=&quot;Ad Select 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; 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-95470.html</guid>
		</item>
		<item>
			<title>*Super Duper Urgent* &quot;Headers Already Sent&quot;</title>
			<link>http://www.frihost.com/forums/vt-95574.html</link>
			<pubDate>Sun, 20 Jul 2008 18:37:43 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : *Super Duper Urgent* &quot;Headers Already Sent&quot; &lt;/div&gt; &lt;hr/&gt; Okay, so I have this little problem. I have this design project deadline on Monday, I am running out of time, and I am having a problem.
&lt;br/&gt;

&lt;br/&gt;
Please Check out: &lt;a href=&quot;http://nick.anderegg.pastebin.com/m7dba761d&quot; target=&quot;_blank&quot; class=&quot;postlink&quot; rel=&quot;nofollow&quot;&gt;http://nick.anderegg.pastebin.com/m7dba761d&lt;/a&gt;, which is index.php
&lt;br/&gt;

&lt;br/&gt;
Then &lt;a href=&quot;http://nick.anderegg.pastebin.com/m7fc23bc9&quot; target=&quot;_blank&quot; class=&quot;postlink&quot; rel=&quot;nofollow&quot;&gt;http://nick.anderegg.pastebin.com/m7fc23bc9&lt;/a&gt; which is home.php.
&lt;br/&gt;

&lt;br/&gt;
When I try to log in, I get:
&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;Quote:&lt;/b&gt;&lt;/div class=&quot;detail&quot;&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;quote&quot;&gt;
&lt;br/&gt;

&lt;br/&gt;
Warning: Cannot modify header information - headers already sent by (output started at /home/pollygon/domains/atomicdingo.us/public_html/k11r/index.php:35) in /home/pollygon/domains/atomicdingo.us/public_html/k11r/main/login.php on line 23
&lt;br/&gt;

&lt;br/&gt;
Warning: Cannot modify header information - headers already sent by (output started at /home/pollygon/domains/atomicdingo.us/public_html/k11r/index.php:35) in /home/pollygon/domains/atomicdingo.us/public_html/k11r/main/login.php on line 24
&lt;br/&gt;

&lt;br/&gt;
Warning: Cannot modify header information - headers already sent by (output started at /home/pollygon/domains/atomicdingo.us/public_html/k11r/index.php:35) in /home/pollygon/domains/atomicdingo.us/public_html/k11r/main/login.php on line 25
&lt;br/&gt;

&lt;br/&gt;
Warning: Cannot modify header information - headers already sent by (output started at /home/pollygon/domains/atomicdingo.us/public_html/k11r/index.php:35) in /home/pollygon/domains/atomicdingo.us/public_html/k11r/main/login.php on line 26&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;
Why is it saying this and how can I fix it?
&lt;br/&gt;

&lt;br/&gt;
Thank you so much in advance,
&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-95574.html&quot; title=&quot;*Super Duper Urgent* &amp;quot;Headers Already Sent&amp;quot;&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-95574.html</guid>
		</item>
		<item>
			<title>Efficient search transfer list in Game</title>
			<link>http://www.frihost.com/forums/vt-95555.html</link>
			<pubDate>Sat, 19 Jul 2008 19:21:03 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : Efficient search transfer list in Game &lt;/div&gt; &lt;hr/&gt; I have started to make an online athletics game (track and field). I haven't got very far yet.
&lt;br/&gt;

&lt;br/&gt;
I want a transfer list where you can search athletes to buy. The thing is that the users should be able to set some search parameters to easily find the athlete they want. For example if we want to list athletes that have more than 5 in speed and more than 3 in stamina but costs less than 25000 the query will probably look something like this:&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;SELECT * FROM athletes WHERE on_transfer_list=1 AND speed&amp;gt;5 AND stamina&amp;gt;3 AND cost&amp;lt;25000&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;
What I'm worrying about is that if there is a huge number of athletes on the transfer list it might get slow to do this kind of queries. I have thought about using indexes but it looks almost impossible. There will off course be a lot more parameters than just speed and stamina. If I add an index on speed and one index on stamina it will not be possible to use indexes all the way to pick the rows. if I set an index on both speed and stamina it will not help if I search for another parameter. I can't add indexes for all possible combinations. It will be TOO slow during inserts. ...&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://www.frihost.com/forums/vt-95555.html&quot; title=&quot;Efficient search transfer list in Game&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-95555.html</guid>
		</item>
		<item>
			<title>php gallery</title>
			<link>http://www.frihost.com/forums/vt-95442.html</link>
			<pubDate>Sat, 19 Jul 2008 02:08:22 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : php gallery &lt;/div&gt; &lt;hr/&gt; I'm making a simple image gallery for a friend and I think I'm going to make it dynamic so I don't have to hardcode each image.
&lt;br/&gt;

&lt;br/&gt;
I have an example here.
&lt;br/&gt;
&lt;a href=&quot;http://waldbauer.us/valtemp/nature.html&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot; class=&quot;postlink&quot;&gt;http://waldbauer.us/valtemp/nature.html&lt;/a&gt;
&lt;br/&gt;

&lt;br/&gt;
Basically, each page should look for a specific sub directory of gallery for it's page, then for each sub directory within that, it would be a section with a thumb.jpg and images labeled &amp;quot;01 - name _thumb.jpg&amp;quot; &amp;quot;01 - name _normal.jpg&amp;quot; and &amp;quot;01 - name _large.jpg&amp;quot; etc.
&lt;br/&gt;
Each image would be placed like the example above and I know what html formatting I need.
&lt;br/&gt;

&lt;br/&gt;
My question is, being rusty with php, how do I get an array of these images from a directory?
&lt;br/&gt;
Also, is it easier to have php resize the images (thumbnails and mid-size preview from a large one) or would this be slower than having all sizes already made?
&lt;br/&gt;

&lt;br/&gt;
So if someone could give me a quick example of reading all the images in directories based on the current page, that would be great.
&lt;br/&gt;

&lt;br/&gt;
Thanks.&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://www.frihost.com/forums/vt-95442.html&quot; title=&quot;php gallery&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-95442.html</guid>
		</item>
		<item>
			<title>need help with scripts</title>
			<link>http://www.frihost.com/forums/vt-95488.html</link>
			<pubDate>Fri, 18 Jul 2008 11:42:21 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : need help with scripts &lt;/div&gt; &lt;hr/&gt; ok i need to be able for people to sign up and get an account so can some one help me just to get started thank you
&lt;br/&gt;
by the way im a noob and am pretty simple lol&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://www.frihost.com/forums/vt-95488.html&quot; title=&quot;need help with 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-95488.html</guid>
		</item>
		<item>
			<title>how can i run the php in my system like asp</title>
			<link>http://www.frihost.com/forums/vt-95464.html</link>
			<pubDate>Thu, 17 Jul 2008 19:33:52 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : how can i run the php in my system like asp &lt;/div&gt; &lt;hr/&gt; I want to run the php files in my sytem i am using windows xp and i am have the facility of runing asp in my system itself, so any one please tell me so that i will run the php forums in my system adn check this&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://www.frihost.com/forums/vt-95464.html&quot; title=&quot;how can i run the php in my system like 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; 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-95464.html</guid>
		</item>
		<item>
			<title>PHP with Visual Studio .NET 2005?</title>
			<link>http://www.frihost.com/forums/vt-94673.html</link>
			<pubDate>Wed, 16 Jul 2008 11:13:57 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : PHP with Visual Studio .NET 2005? &lt;/div&gt; &lt;hr/&gt; Is it possible to write/host PHP locally with VS '05? Because i want to learn PHP, and need a good off line source for developmen, that I don't have to pay for(I did pay for VS '05 tho. &lt;img src=&quot;http://www.frihost.com/forums/http://www.frihost.com/forums/images/smiles/icon_wink.gif&quot; alt=&quot;Wink&quot; border=&quot;0&quot; /&gt; ) I need to learn it because I'm gunna help with friends site, and it requires PHP.&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://www.frihost.com/forums/vt-94673.html&quot; title=&quot;PHP with Visual Studio .NET 2005?&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; 21 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-94673.html</guid>
		</item>
		<item>
			<title>MySQL Time</title>
			<link>http://www.frihost.com/forums/vt-95394.html</link>
			<pubDate>Tue, 15 Jul 2008 20:45:31 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : MySQL Time &lt;/div&gt; &lt;hr/&gt; I want to put a &amp;quot;date added&amp;quot; field in and I want to do it in seconds from Jan 1., 1970 or whenever the time thing starts. How would I do that? (a Linux time stamp or something like that)
&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-95394.html&quot; title=&quot;MySQL Time&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; 3 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-95394.html</guid>
		</item>
		<item>
			<title>My page doesn't work</title>
			<link>http://www.frihost.com/forums/vt-95325.html</link>
			<pubDate>Mon, 14 Jul 2008 16:51:50 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : My page doesn't work &lt;/div&gt; &lt;hr/&gt; On my forum, there is an icon submissions page where people submit an icon and somebody with a specific ranking and up can upload them. Problem is, when I click the upload icon button, nothing seems to happen. It's as if the page just refreshes. The icon doesn't get uploaded when I click upload, but it does get rejected if I click reject.
&lt;br/&gt;

&lt;br/&gt;
It works like this: icons are submitted, a staff member from my forums looks through the icons and checks the box of the good ones, and uploads them. The icons go from being in the table_icon_submissions to being in the table_icons from which they can be selected and used.
&lt;br/&gt;

&lt;br/&gt;

&lt;br/&gt;
Can anybody offer any help? I can provide the files if necessary.&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://www.frihost.com/forums/vt-95325.html&quot; title=&quot;My page doesn't work&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-95325.html</guid>
		</item>
		<item>
			<title>Database Error: Unable to connect to the database HELP</title>
			<link>http://www.frihost.com/forums/vt-95251.html</link>
			<pubDate>Sat, 12 Jul 2008 23:51:56 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : Database Error: Unable to connect to the database HELP &lt;/div&gt; &lt;hr/&gt; Hey guys,
&lt;br/&gt;

&lt;br/&gt;
I'm having some trouble with MySQL databases. 
&lt;br/&gt;

&lt;br/&gt;
I had a Joomla install at my parked domain &lt;a href=&quot;http://www.pwnedinrl.com,&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot; class=&quot;postlink&quot;&gt;www.pwnedinrl.com,&lt;/a&gt; &lt;a href=&quot;http://www.pwnedinrl.frihost.net/&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot; class=&quot;postlink&quot;&gt;http://www.pwnedinrl.frihost.net/&lt;/a&gt;
&lt;br/&gt;

&lt;br/&gt;
I made no changes to this install and I now get the error &amp;quot;Database Error: Unable to connect to the database:Could not connect to MySQL&amp;quot; whenever I go to either of the addresses.
&lt;br/&gt;

&lt;br/&gt;
I did install a few new databases namely Wordpress to &lt;a href=&quot;http://www.pwnedinrl.com/fxprices.net/&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot; class=&quot;postlink&quot;&gt;www.pwnedinrl.com/fxprices.net/&lt;/a&gt; when I follow this link it works fine, I've setup the addon domain and when I go to fxprices.net I get the same error as above WTF.
&lt;br/&gt;

&lt;br/&gt;
I have another website hosted on here &lt;a href=&quot;http://www.smasha.net&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot; class=&quot;postlink&quot;&gt;www.smasha.net&lt;/a&gt; which isn't MySQL driven and that is completely unaffected.
&lt;br/&gt;

&lt;br/&gt;
So i'm not sure if the 2 issues are related or completely seperate. Any help much appreciated as I'm a total noob at MySQL. Could making the wordpress database have affected the Joomla one?
&lt;br/&gt;

&lt;br/&gt;
Thanks in advance.
&lt;br/&gt;

&lt;br/&gt;
EDIT: I think its because I've changed the password for my user, so the latest database works fine and now the old ones don't. I should be able to sort it out solo, thanks. Anyone got any tip for the best way to setup more than 1 database user?&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://www.frihost.com/forums/vt-95251.html&quot; title=&quot;Database Error: Unable to connect to the database HELP&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-95251.html</guid>
		</item>
		<item>
			<title>Unknown variable &quot;character_set_results&quot;?</title>
			<link>http://www.frihost.com/forums/vt-93816.html</link>
			<pubDate>Fri, 11 Jul 2008 19:42:14 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : Unknown variable &quot;character_set_results&quot;? &lt;/div&gt; &lt;hr/&gt; How do I set this variable?
&lt;br/&gt;

&lt;br/&gt;
Some configuration file for MySQL needs the following text:
&lt;br/&gt;

&lt;br/&gt;
CHARACTER_SET_RESULTS = LATIN1
&lt;br/&gt;

&lt;br/&gt;
Whatever character set isn't as important as this variable be present in the config file. Upgraded to new version of MySQL and that is cool!!! Only a couple more steps and I can really get down to programming some cool stuff.
&lt;br/&gt;

&lt;br/&gt;
I just don't know how to set this up given my level of access.&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://www.frihost.com/forums/vt-93816.html&quot; title=&quot;Unknown variable &amp;quot;character_set_results&amp;quot;?&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-93816.html</guid>
		</item>
		<item>
			<title>.htaccess Problem - PLEASE help - Reward Offered</title>
			<link>http://www.frihost.com/forums/vt-95150.html</link>
			<pubDate>Fri, 11 Jul 2008 06:59:16 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : .htaccess Problem - PLEASE help - Reward Offered &lt;/div&gt; &lt;hr/&gt; Ok guys, I've run into this problem and I can't figure it out, using Rewrites with .htaccess is so complicated!
&lt;br/&gt;

&lt;br/&gt;
I have a blog at &lt;a href=&quot;http://briterwebdesign.com/blog/&quot; target=&quot;_blank&quot; class=&quot;postlink&quot; rel=&quot;nofollow&quot;&gt;http://briterwebdesign.com/blog/&lt;/a&gt;, and I want to anything from /blog downwards to a new site - yeppooninfo.com.
&lt;br/&gt;

&lt;br/&gt;
For example, if a user entered briterwebdesign.com/blog/archives/humpy-island, I want that to redirect to yeppooninfo.com/blog/archives/humpy-island. If someone types in briterwebdesign.com/blog/tag/yeppoon/page/10, I want that to redirect to yeppooninfo.com/blog/tag/yeppoon/page/10.
&lt;br/&gt;

&lt;br/&gt;
I need someone to help me make the necessary Rewrite rules so that this will work. As an incentive, I'll give &lt;div class=&quot;detail&quot; style=&quot;font-weight: bold&quot;&gt;&lt;div class=&quot;detail&quot; style=&quot;font-size: 18px; line-height: normal&quot;&gt;50FRIH&lt;/div class=&quot;detail&quot;&gt;&lt;/div class=&quot;detail&quot;&gt; to the first person who provides a correct solution. Thanks!&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://www.frihost.com/forums/vt-95150.html&quot; title=&quot;.htaccess Problem - PLEASE help - Reward Offered&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-95150.html</guid>
		</item>
		<item>
			<title>Problem with galary script</title>
			<link>http://www.frihost.com/forums/vt-95161.html</link>
			<pubDate>Thu, 10 Jul 2008 16:46:21 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : Problem with galary script &lt;/div&gt; &lt;hr/&gt; I have downloaded a galary script from &lt;a href=&quot;http://www.arwscripts.com&quot; target=&quot;_blank&quot; class=&quot;postlink&quot; rel=&quot;nofollow&quot;&gt;http://www.arwscripts.com&lt;/a&gt;.It is added in my website.The problem is that the thumbnail on the album is coming but when clicked on the album the images are not displayed.The problem can be observed at &lt;a href=&quot;http://www.lionsclubofsantiniketan.pratik.frih.net/photoalbum/&quot; target=&quot;_blank&quot; class=&quot;postlink&quot; rel=&quot;nofollow&quot;&gt;http://www.lionsclubofsantiniketan.pratik.frih.net/photoalbum/&lt;/a&gt;.
&lt;br/&gt;

&lt;br/&gt;
The php file used for this purpose are--
&lt;br/&gt;
1. config.inc
&lt;br/&gt;

&lt;br/&gt;
[code]&amp;lt;?php
&lt;br/&gt;

&lt;br/&gt;
error_reporting&amp;#40;0&amp;#41;;
&lt;br/&gt;
set_time_limit&amp;#40;600&amp;#41;;
&lt;br/&gt;

&lt;br/&gt;
// site details
&lt;br/&gt;
$site_name = &amp;quot;Your Site Name&amp;quot;; // site name/title
&lt;br/&gt;
$site_path = &amp;quot;http&amp;#58;//www.yourdomain.com/&amp;quot;; // site url. Lowercase. Including the http&amp;#58;//www. and the ending forward slash '/'. i.e. 'http&amp;#58;//www.mysitename.com/'.
&lt;br/&gt;

&lt;br/&gt;
$storage_location = &amp;quot;pictures/&amp;quot;;
&lt;br/&gt;
$cache_location = &amp;quot;cache/&amp;quot;;
&lt;br/&gt;

&lt;br/&gt;
// album browsing pages
&lt;br/&gt;
$hover_style = 1; // 1 or&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://www.frihost.com/forums/vt-95161.html&quot; title=&quot;Problem with galary 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; 3 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-95161.html</guid>
		</item>
		<item>
			<title>SQL security</title>
			<link>http://www.frihost.com/forums/vt-95164.html</link>
			<pubDate>Thu, 10 Jul 2008 13:46:31 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : SQL security &lt;/div&gt; &lt;hr/&gt; Hey,
&lt;br/&gt;

&lt;br/&gt;
I have spend some time on Hack This Site and I learned there how to hack some basic unsecured sites. I'm now making my own website using php and MySQL. 
&lt;br/&gt;

&lt;br/&gt;
On Hack This Site, I managed my way in the website using MySQL Injections, is there any way how I would secure my website against this? Is there any way to detect them and exit; my php script asap, before they manage do damage my databases...
&lt;br/&gt;

&lt;br/&gt;
Do you people have some good links or information for me?&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://www.frihost.com/forums/vt-95164.html&quot; title=&quot;SQL security&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; 3 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-95164.html</guid>
		</item>
		<item>
			<title>Good php script repositories?</title>
			<link>http://www.frihost.com/forums/vt-95124.html</link>
			<pubDate>Wed, 09 Jul 2008 12:54:38 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : Good php script repositories? &lt;/div&gt; &lt;hr/&gt; Anyone know good places to grab scripts from? I get a thousand hits and its all garbage.&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://www.frihost.com/forums/vt-95124.html&quot; title=&quot;Good php script repositories?&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-95124.html</guid>
		</item>
		<item>
			<title>How to get the tree structure done using PHP</title>
			<link>http://www.frihost.com/forums/vt-95029.html</link>
			<pubDate>Wed, 09 Jul 2008 09:09:39 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : How to get the tree structure done using PHP &lt;/div&gt; &lt;hr/&gt; can anyone tell me how i can get the tree structure in the left side pane using PHP like the one on 
&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;Quote:&lt;/b&gt;&lt;/div class=&quot;detail&quot;&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;quote&quot;&gt;http://msdn.microsoft.com/en-au/library/2x7h1hfk(VS.80).aspx&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-95029.html&quot; title=&quot;How to get the tree structure done 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; 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-95029.html</guid>
		</item>
		<item>
			<title>Templates in PHP Advantages...</title>
			<link>http://www.frihost.com/forums/vt-93425.html</link>
			<pubDate>Wed, 09 Jul 2008 03:12:30 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : Templates in PHP Advantages... &lt;/div&gt; &lt;hr/&gt; Hi to every body. I am learning about using the method of templates in PHP while building website. But i really need to understand what are the advantages of using that technic. Please i you use them and you know how helpful it is, let us know here. Thank you in advance.&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://www.frihost.com/forums/vt-93425.html&quot; title=&quot;Templates in PHP Advantages...&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-93425.html</guid>
		</item>
		<item>
			<title>Make MySQL value Increase by one, using PHP</title>
			<link>http://www.frihost.com/forums/vt-94812.html</link>
			<pubDate>Mon, 07 Jul 2008 17:49:54 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : Make MySQL value Increase by one, using PHP &lt;/div&gt; &lt;hr/&gt; I'm trying to set something up whereby a number in a field goes up 1 each time another member is referred using their link. I've got everything else set up fine, but I'd like to know how to make the &amp;quot;number of referrals&amp;quot; go up by 1 each time a registration takes place...
&lt;br/&gt;

&lt;br/&gt;
Thanks - I hope this makes some sense!&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://www.frihost.com/forums/vt-94812.html&quot; title=&quot;Make MySQL value Increase by one, 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; 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-94812.html</guid>
		</item>
		<item>
			<title>How to automate 3rd party forms and upload data?</title>
			<link>http://www.frihost.com/forums/vt-94946.html</link>
			<pubDate>Sun, 06 Jul 2008 22:42:17 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : How to automate 3rd party forms and upload data? &lt;/div&gt; &lt;hr/&gt; Hi there
&lt;br/&gt;

&lt;br/&gt;
I am looking to automate a porcess of uploading images to a thrid party site via the thrid party web form. I am just wondering is this possible with PHP? I know I havent given much info, but I just looking to see could it be done in theory and what sorta functions would you be looking at?
&lt;br/&gt;
Anybody done things like this before info would be most helpful?
&lt;br/&gt;

&lt;br/&gt;
Kind Regards
&lt;br/&gt;
Ciaran Mc Cann&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://www.frihost.com/forums/vt-94946.html&quot; title=&quot;How to automate 3rd party forms and upload 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; 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-94946.html</guid>
		</item>
		<item>
			<title>Okay so....</title>
			<link>http://www.frihost.com/forums/vt-94927.html</link>
			<pubDate>Sun, 06 Jul 2008 18:01:20 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : Okay so.... &lt;/div&gt; &lt;hr/&gt; I am working on this game, and it is a kind of browser-based RTS. There is a building cache where you put buildings in to upgrade them. Most upgrades will take at the bare minimum a few minutes. What i want to do is show in that building cache when the building will be complete and how much time is left on a count-down timer. I am trying to figure out the best way to do this.
&lt;br/&gt;

&lt;br/&gt;
Does this sound logical:
&lt;br/&gt;

&lt;br/&gt;
They click the upgrade button and the building goes to the game-wide building cache database, which is ordered ascending of which building will be completed first. When they click on the button to see the buildings in the cache, it will send a request to the database requesting the completion times of all their buildings. The count down timer will show how long until the building is done and it will be accurate within 2 seconds. When the timer hits zero, a query will be sent to the database that removes all the completed buildings, and the page is refreshed by the Javascript timer.
&lt;br/&gt;

&lt;br/&gt;
Does this sound efficient to you?
&lt;br/&gt;

&lt;br/&gt;
It will work in clearing out the database becuase every time the building cache page is loaded, it sends the command out to remove all completed buildings before it even calls on the persons unfinished buildings. So if no one at all is logged on for 5 days, buildings that finish anytime in that five days won't be removed until one person checks on their own building cache, then all completed ones will be gone.
&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_biggrin.gif&quot; alt=&quot;Very Happy&quot; border=&quot;0&quot; /&gt; &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;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;&lt;a href=&quot;http://www.frihost.com/forums/vt-94927.html&quot; title=&quot;Okay so....&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-94927.html</guid>
		</item>
		<item>
			<title>[URGENT]Simple authentification does not work!!!</title>
			<link>http://www.frihost.com/forums/vt-94971.html</link>
			<pubDate>Sat, 05 Jul 2008 22:12:01 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : [URGENT]Simple authentification does not work!!! &lt;/div&gt; &lt;hr/&gt; I have written a script of autentification which does not work, although i find it as simple as possible.
&lt;br/&gt;

&lt;br/&gt;
this is it:
&lt;br/&gt;

&lt;br/&gt;
connexion.php
&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;
&amp;lt;?php
&lt;br/&gt;
include_once &amp;quot;bd.php&amp;quot;;
&lt;br/&gt;

&lt;br/&gt;
$login = $_POST&amp;#91;'login'&amp;#93;;
&lt;br/&gt;
$pass = $_POST&amp;#91;'pass'&amp;#93;;
&lt;br/&gt;

&lt;br/&gt;
$pass = md5&amp;#40;$pass&amp;#41;;
&lt;br/&gt;

&lt;br/&gt;
$connexion = new BD&amp;#40;&amp;#41;;
&lt;br/&gt;

&lt;br/&gt;
$connexion-&amp;gt;Connexion&amp;#40;&amp;#41;;
&lt;br/&gt;

&lt;br/&gt;
$requete = &amp;quot;SELECT * FROM connexion WHERE login='$login' AND pass='$pass';&amp;quot;;
&lt;br/&gt;
$result = mysql_query&amp;#40;$requete&amp;#41;;
&lt;br/&gt;

&lt;br/&gt;
$con = mysql_num_rows&amp;#40;$result&amp;#41;;
&lt;br/&gt;

&lt;br/&gt;
if &amp;#40;$con!=0&amp;#41; &amp;#123;
&lt;br/&gt;
header &amp;#40;&amp;quot;Location&amp;#58;login.php&amp;quot;&amp;#41;;
&lt;br/&gt;
&amp;#125;
&lt;br/&gt;

&lt;br/&gt;
else &amp;#123; header &amp;#40;&amp;quot;Location&amp;#58;../&amp;quot;&amp;#41;; &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;
bd.php
&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;
&amp;lt;?php
&lt;br/&gt;

&lt;br/&gt;
class BD &amp;#123;
&lt;br/&gt;

&lt;br/&gt;
&amp;nbsp; &amp;nbsp;var $Serveur;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;var $Utilisateur;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;var $MotDePasse;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;var $BaseDeDonnees;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;var $connexion;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;function BD&amp;#40;&amp;#41; &amp;#123;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;$this-&amp;gt;Serveur = &amp;quot;localhost&amp;quot;;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;$this-&amp;gt;Utilisateur = &amp;quot;patient&amp;quot;;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;$this-&amp;gt;MotDePasse = &amp;quot;012546&amp;quot;;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;$this-&amp;gt;BaseDeDonnees = &amp;quot;pph&amp;quot;;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;#125;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;function Connexion&amp;#40;&amp;#41; &amp;#123;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;$this-&amp;gt;connexion = mysql_connect&amp;#40;&amp;quot;$this-&amp;gt;Serveur&amp;quot;, &amp;quot;$this-&amp;gt;Utilisateur&amp;quot;, &amp;quot;$this-&amp;gt;MotDePasse&amp;quot;&amp;#41; or die &amp;#40;&amp;quot;Impossible de se connecter&amp;quot;&amp;#41;;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;$this-&amp;gt;SelectionneBD&amp;#40;&amp;#41;;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;#125;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;function Deconnexion&amp;#40;&amp;#41; &amp;#123;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;$deconnexion = mysql_close&amp;#40;$this-&amp;gt;connexion&amp;#41;;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;#125;
&lt;br/&gt;

&lt;br/&gt;
&amp;nbsp; &amp;nbsp;function SelectionneBD &amp;#40;&amp;#41; &amp;#123;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;$selection = mysql_select_db&amp;#40;$this-&amp;gt;BaseDeDonnees&amp;#41;;
&lt;br/&gt;
&amp;nbsp; &amp;nbsp;&amp;#125;&amp;#125;&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;
The mistake on the screen is :
&lt;br/&gt;

&lt;br/&gt;
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/hotelpen/public_html/administration/connexion.php on line 16
&lt;br/&gt;

&lt;br/&gt;
Warning: Cannot modify header information - headers already sent by (output started at /home/hotelpen/public_html/administration/connexion.php:16) in /home/hotelpen/public_html/administration/connexion.php on line 22
&lt;br/&gt;

&lt;br/&gt;
The line 16 is : $con = mysql_num_rows($result);
&lt;br/&gt;
the line 22 : else { header (&amp;quot;Location:../&amp;quot;); }
&lt;br/&gt;

&lt;br/&gt;
Please help me to understant why it is not working.&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://www.frihost.com/forums/vt-94971.html&quot; title=&quot;[URGENT]Simple authentification does not work!!!&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-94971.html</guid>
		</item>
		<item>
			<title>help me in blind sql</title>
			<link>http://www.frihost.com/forums/vt-94966.html</link>
			<pubDate>Sat, 05 Jul 2008 19:34:39 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : help me in blind sql &lt;/div&gt;&lt;hr/&gt; &lt;div class=&quot;detail&quot; style=&quot;font-weight: bold&quot;&gt; sorry distrub u friend help in sql blind explain&lt;/div class=&quot;detail&quot;&gt;
&lt;br/&gt;
what is them of blind sql and for what use v use that sql&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://www.frihost.com/forums/vt-94966.html&quot; title=&quot;help me in blind sql&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-94966.html</guid>
		</item>
		<item>
			<title>Connecting Remotely (Easier than it Sounds)</title>
			<link>http://www.frihost.com/forums/vt-94770.html</link>
			<pubDate>Fri, 04 Jul 2008 22:36:25 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : Connecting Remotely (Easier than it Sounds) &lt;/div&gt; &lt;hr/&gt; Okay, so I am having some problems with a Browser Based game that I am making. How it will work is you go to a main website and you can see news, sign up for an account, check out the forums, etc. On that web page, the will be listings for different Worlds there. You can choose World 1, World 2, World 3, and so on. I know for a fact that I will be hosting the website, the testing world, and 2 or 3 worlds, but I want to do a sort of remote hosting thing where someone can host a world on their own servers.
&lt;br/&gt;

&lt;br/&gt;
If you want to go to World One, when you click on the login link on the main page, it will take you to &lt;a href=&quot;http://w1.example.com.&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot; class=&quot;postlink&quot;&gt;http://w1.example.com.&lt;/a&gt; Well, if someone else is hosting World 2, how do I get it that when you click on the link, you go to w2.example.com and every page you go to there is w2.example.com/index.php?page=whatever, but the page layout, images, text, and database is coming from the other persons server.
&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_biggrin.gif&quot; alt=&quot;Very Happy&quot; border=&quot;0&quot; /&gt; &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;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;&lt;a href=&quot;http://www.frihost.com/forums/vt-94770.html&quot; title=&quot;Connecting Remotely (Easier than it Sounds)&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-94770.html</guid>
		</item>
		<item>
			<title>how do you create a login field with html?</title>
			<link>http://www.frihost.com/forums/vt-94874.html</link>
			<pubDate>Fri, 04 Jul 2008 14:47:09 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : how do you create a login field with html? &lt;/div&gt; &lt;hr/&gt; i tried and tried, but it never worked.
&lt;br/&gt;
also, how do you create a mailing system?
&lt;br/&gt;
and an adopt a pet system? 
&lt;br/&gt;
help please.&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://www.frihost.com/forums/vt-94874.html&quot; title=&quot;how do you create a login field with html?&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-94874.html</guid>
		</item>
		<item>
			<title>PHP image grenation</title>
			<link>http://www.frihost.com/forums/vt-94324.html</link>
			<pubDate>Fri, 04 Jul 2008 13:16:46 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : PHP image grenation &lt;/div&gt; &lt;hr/&gt; Hi there
&lt;br/&gt;

&lt;br/&gt;
I am working on a project were I have an existting image of 300dpi and I want to write text to the image. The image most then be outputted to the browser including the text at 300dpi and then I wish to save the image to a file. I.E that the text is now one with the image and is printable. Thats why it has to be 300dpi. 
&lt;br/&gt;

&lt;br/&gt;
Which functions from the GB/ImageMagick etc do I need to make the text and image one and what function allows the image to be outputted at 300dpi
&lt;br/&gt;

&lt;br/&gt;
Thanks &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;&lt;a href=&quot;http://www.frihost.com/forums/vt-94324.html&quot; title=&quot;PHP image grenation&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-94324.html</guid>
		</item>
		<item>
			<title>PHP GD Images Default 75 dpi change to 300dpi??</title>
			<link>http://www.frihost.com/forums/vt-94905.html</link>
			<pubDate>Fri, 04 Jul 2008 11:45:01 GMT</pubDate>
			<description>&lt;div class=&quot;item_sub_title&quot;&gt;Php and MySQL : PHP GD Images Default 7