Hi
okie heres a snippet of my php code:
the code below takes a file uploaded from the web with $file as declared filename on
the form.
if ($file_size>0) { //check whether the file is not empty
$data = addslashes(fread(fopen($file, "r"), filesize($file))); //read the file and
add neccessary quote
Try using this function on your data before inserting into the database.
http://www.php.net/manual/en/function.addslashes.php
If that doesn't work show us what error you are getting.
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 05,
There's a function in php that allows you to escape strings before it is
submitted to mysql. Check it out in the PHP manual.
- Original Message -
From: "Rus" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, February 06, 2
Check text for special symbols and use " in your query (f.e. ...
blobfield="text")
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 06, 2001 2:14 AM
Subject: Insert into blob
> Hi,
>
> I am having some problems inserting data into a blob fie