<?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: php used to upload an image to file. It gets renamed, but how do I work with the newly named image?</title> <atom:link href="http://www.findistore.com/php-used-to-upload-an-image-to-file-it-gets-renamed-but-how-do-i-work-with-the-newly-named-image/feed" rel="self" type="application/rss+xml" /><link>http://www.findistore.com/php-used-to-upload-an-image-to-file-it-gets-renamed-but-how-do-i-work-with-the-newly-named-image</link> <description>We are Professional Web Designer. We specialize in Website Design &#38; eCommerce Web Services</description> <lastBuildDate>Wed, 12 Oct 2011 00:03:14 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" /> <item><title>By: Mystic</title><link>http://www.findistore.com/php-used-to-upload-an-image-to-file-it-gets-renamed-but-how-do-i-work-with-the-newly-named-image/comment-page-1#comment-4498</link> <dc:creator>Mystic</dc:creator> <pubDate>Mon, 21 Sep 2009 20:56:19 +0000</pubDate> <guid
isPermaLink="false">http://www.findistore.com/php-used-to-upload-an-image-to-file-it-gets-renamed-but-how-do-i-work-with-the-newly-named-image#comment-4498</guid> <description>You can either insert it manually or use a hidden form. Here&#039;s how to do it manually:
&lt;?php
$image_name = RANDOM IMAGE NAME;
$query = sprintf(&quot;INSERT INTO `table_name` SET `field_for_image_name`=&#039;%s&#039;, $image_name);
$result = mysql_query($query);
if (mysql_num_rows($result) != 0) {
// Success inserting, do whatever
} else {
// Failed inserting, throw up error or whatever
}
?&gt;</description> <content:encoded><![CDATA[<p>You can either insert it manually or use a hidden form. Here&#8217;s how to do it manually:<br
/> &lt;?php<br
/> $image_name = RANDOM IMAGE NAME;<br
/> $query = sprintf(&quot;INSERT INTO `table_name` SET `field_for_image_name`=&#8217;%s&#8217;, $image_name);<br
/> $result = mysql_query($query);<br
/> if (mysql_num_rows($result) != 0) {<br
/> // Success inserting, do whatever<br
/> } else {<br
/> // Failed inserting, throw up error or whatever<br
/> }<br
/> ?&gt;</p> ]]></content:encoded> </item> </channel> </rss>
