<br><br><div><span class="gmail_quote">On 8/17/06, <b class="gmail_sendername">Ed K.</b> <<a href="mailto:ed@hp.uab.edu">ed@hp.uab.edu</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Wed, 16 Aug 2006, Matthew Benjamin wrote:<br>><br>> Can anyone help I have a php script that uploads files to a mysql database.<br>> When it uploads the files all of the content in the file gets corrupted. Has
<br>> anyone expirienced this. I know I can't be the first person with the<br>> problem. -- Help!!!  Please.<br>><br><br>Are you escaping the data from the file?<br><br>here would be a working php script:<br><br>
       $fp=fopen($addfile,"r");<br>       $bvar=fread($fp,filesize($addfile));<br>       fclose($fp);<br>       $bvar=addslashes($bvar);<br>       $q="insert into table (file) values ('$bvar')";<br><br>
ed<br><br>--<br>fedora-list mailing list<br><a href="mailto:fedora-list@redhat.com">fedora-list@redhat.com</a><br>To unsubscribe: <a href="https://www.redhat.com/mailman/listinfo/fedora-list">https://www.redhat.com/mailman/listinfo/fedora-list
</a><br></blockquote></div><br><br>
no worky...<br>
<br clear="all"><br>-- <br>mB.