Hi,
i have a little problem. i hope u guys give me a clear solution (:
db: mssql
i just want to put jpeg file to the image field at the mssql db.
and after that i want to call it back..
how can i do this ?
i tried this code ;
$image = $_FILES['form_data']['name'];
$image_yol = $_FILES['form_data']['tmp_name'];
$newdata = "$image_yol ";
$data = addslashes(frea d(fopen($image_ yol, "r"),
filesize($image _yol)));
to put image to the db...
but it gave me an error like
"'PHP Warning: mssql_query(): message: Line 7: Incorrect syntax near
'Japanese'. (severity 15) in d:\www\docs\php _viva\functions .php on
line 3 PHP Warning: mssql_query(): message: The identifier that starts
with 'vG!§÷kþZJ{®§õ ¢ô¦ÎvUtŸÝ\\\'_ó ~’æòÆçÕz‰›nŽì aú{W‹_‘~M®»\\\ "Ç[cŒ¹î$’~j#nˆÒ-ölñ¿õrÇí¶»éó‹ $Ðs—QÒ¾²ô^®ÙÁÊ e¤rÐ}ÃâÃî_9{U ÜL«°ÞËñ‹'
is too long. Maximum length is 128. (severity 15) in
d:\www\docs\php _viva'is too long. Maximum length is 128"
do you have any idea?
Thanks,
i have a little problem. i hope u guys give me a clear solution (:
db: mssql
i just want to put jpeg file to the image field at the mssql db.
and after that i want to call it back..
how can i do this ?
i tried this code ;
$image = $_FILES['form_data']['name'];
$image_yol = $_FILES['form_data']['tmp_name'];
$newdata = "$image_yol ";
$data = addslashes(frea d(fopen($image_ yol, "r"),
filesize($image _yol)));
to put image to the db...
but it gave me an error like
"'PHP Warning: mssql_query(): message: Line 7: Incorrect syntax near
'Japanese'. (severity 15) in d:\www\docs\php _viva\functions .php on
line 3 PHP Warning: mssql_query(): message: The identifier that starts
with 'vG!§÷kþZJ{®§õ ¢ô¦ÎvUtŸÝ\\\'_ó ~’æòÆçÕz‰›nŽì aú{W‹_‘~M®»\\\ "Ç[cŒ¹î$’~j#nˆÒ-ölñ¿õrÇí¶»éó‹ $Ðs—QÒ¾²ô^®ÙÁÊ e¤rÐ}ÃâÃî_9{U ÜL«°ÞËñ‹'
is too long. Maximum length is 128. (severity 15) in
d:\www\docs\php _viva'is too long. Maximum length is 128"
do you have any idea?
Thanks,
Comment