<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: File upload/download on MySQL database</title>
	<atom:link href="http://rony.creash.com.bd/file-uploaddownload-on-mysql-database/feed/" rel="self" type="application/rss+xml" />
	<link>http://rony.creash.com.bd/file-uploaddownload-on-mysql-database/</link>
	<description>Blogor Blogor</description>
	<lastBuildDate>Fri, 28 May 2010 13:09:26 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Rony</title>
		<link>http://rony.creash.com.bd/file-uploaddownload-on-mysql-database/comment-page-1/#comment-1072</link>
		<dc:creator>Rony</dc:creator>
		<pubDate>Thu, 11 Jun 2009 09:33:16 +0000</pubDate>
		<guid isPermaLink="false">http://rony.creash.com.bd/?p=48#comment-1072</guid>
		<description>Hi,
You can get the id from any means. Say select all the ids from the table and display as a hyperlink.

In your above code what is the problem you are facing?

I found some mistakes that you made:

In this code segment:
if(mysql_num_rows($result) &lt; 0)
 {
 echo “Database is empty &lt;br&gt;”;
 }

you should use:
&lt;strong&gt;if(mysql_num_rows($result) &lt; &lt;span style=&quot;text-decoration: underline;&quot;&gt;1&lt;/span&gt;)&lt;/strong&gt;

Again at the
&lt;a href=’download.php?id=”&lt;span style=&quot;text-decoration: underline;&quot;&gt;&lt;?php $id; ?&gt;&lt;/span&gt;” ‘&gt; &lt;?php echo $name;?&gt; &lt;/a&gt; &lt;strong&gt;
&lt;/strong&gt;line I guess you&#039;ve missed an &#039;echo&#039;.

It should be:
&lt;a href=’download.php?id=”&lt;span style=&quot;text-decoration: underline;&quot;&gt;&lt;?php echo $id; ?&gt;&lt;/span&gt;” ‘&gt; &lt;?php echo $name;?&gt; &lt;/a&gt; 

Hope that will help.</description>
		<content:encoded><![CDATA[<p>Hi,<br />
You can get the id from any means. Say select all the ids from the table and display as a hyperlink.</p>
<p>In your above code what is the problem you are facing?</p>
<p>I found some mistakes that you made:</p>
<p>In this code segment:<br />
if(mysql_num_rows($result) &lt; 0)<br />
 {<br />
 echo “Database is empty &lt;br&gt;”;<br />
 }</p>
<p>you should use:<br />
<strong>if(mysql_num_rows($result) &lt; <span style="text-decoration: underline;">1</span>)</strong></p>
<p>Again at the<br />
&lt;a href=’download.php?id=”<span style="text-decoration: underline;">&lt;?php $id; ?&gt;</span>” ‘&gt; &lt;?php echo $name;?&gt; &lt;/a&gt; <strong><br />
</strong>line I guess you&#8217;ve missed an &#8216;echo&#8217;.</p>
<p>It should be:<br />
&lt;a href=’download.php?id=”<span style="text-decoration: underline;">&lt;?php echo $id; ?&gt;</span>” ‘&gt; &lt;?php echo $name;?&gt; &lt;/a&gt; </p>
<p>Hope that will help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: raja</title>
		<link>http://rony.creash.com.bd/file-uploaddownload-on-mysql-database/comment-page-1/#comment-1071</link>
		<dc:creator>raja</dc:creator>
		<pubDate>Thu, 11 Jun 2009 06:22:37 +0000</pubDate>
		<guid isPermaLink="false">http://rony.creash.com.bd/?p=48#comment-1071</guid>
		<description>if(mysql_num_rows($result) &lt; 0)
 {
  echo &quot;Database is empty &lt;br&gt;&quot;;
 } 
else
 {
  while(list($id, $name) = mysql_fetch_array($result))
  {
   //echo $id;
   //echo $name;
  ?&gt;
&lt;strong&gt;//problem occred area   
&lt;a href=&#039;download.php?id=&quot;&lt;?php $id; ?&gt;&quot; &#039;&gt; &lt;?php echo $name;?&gt; &lt;/a&gt; &lt;br&gt;
&lt;/strong&gt;  &lt;?php 
   echo $id;
   echo $name;
  }
 }
mysql_close();


please help me</description>
		<content:encoded><![CDATA[<p>if(mysql_num_rows($result) &lt; 0)<br />
 {<br />
  echo &#8220;Database is empty &lt;br&gt;&#8221;;<br />
 }<br />
else<br />
 {<br />
  while(list($id, $name) = mysql_fetch_array($result))<br />
  {<br />
   //echo $id;<br />
   //echo $name;<br />
  ?&gt;<br />
<strong>//problem occred area   <br />
&lt;a href=&#8217;download.php?id=&#8221;&lt;?php $id; ?&gt;&#8221; &#8216;&gt; &lt;?php echo $name;?&gt; &lt;/a&gt; &lt;br&gt;<br />
</strong>  &lt;?php<br />
   echo $id;<br />
   echo $name;<br />
  }<br />
 }<br />
mysql_close();</p>
<p>please help me</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: raja</title>
		<link>http://rony.creash.com.bd/file-uploaddownload-on-mysql-database/comment-page-1/#comment-1070</link>
		<dc:creator>raja</dc:creator>
		<pubDate>Thu, 11 Jun 2009 06:20:40 +0000</pubDate>
		<guid isPermaLink="false">http://rony.creash.com.bd/?p=48#comment-1070</guid>
		<description>In download side how to get desire file id please give coding 
here not avilable......</description>
		<content:encoded><![CDATA[<p>In download side how to get desire file id please give coding<br />
here not avilable&#8230;&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
