From: "N. Alexander" <sasha_chaos@mail.ru> To: sarlug@lug.ru Subject: [Sarlug] Вопрос по mysql Date: Mon, 16 Jun 2003 20:51:28 +0400 Message-ID: <E19RxCa-0008Ko-00.sasha_chaos-mail-ru@f6.mail.ru> (raw) In-Reply-To: <20030610113851.7bafd7d6.horohorinev@mail.ru> Всем привет! Я столкнулся с такой проблемой в mysql в php. У меня есть табличка в которой три столбца: первый char[250] второй я его описал longtext и третий int Так вот мне во второй столбец нужно закачать файл gif или jpg для последующего его просмотра Такая строчка работает только для файлов текстовых, но если брать любой gif или jpg то mysql ругается, как я понял, на спец символы $text_file = implode("", file($userfile)); $query = "INSERT INTO vrem_img () VALUES ('$href','$text_file','$number')"; $result = MYSQL_QUERY($query) ; как это можно обойти??? Заранее спасибо за ответ, Chaos
next prev parent reply other threads:[~2003-06-16 16:51 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2003-06-09 18:10 [Sarlug] выходные Alex 2003-06-09 18:47 ` Евгений В. Хорохорин 2003-06-09 19:03 ` Amodeus 2003-06-10 3:45 ` Евгений В. Хорохорин 2003-06-10 5:28 ` Алексей Синицын 2003-06-10 7:38 ` Евгений В. Хорохорин 2003-06-16 16:51 ` N. Alexander [this message] 2003-06-18 10:04 ` [Sarlug] Вопрос по mysql Paul P Komkoff Jr
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=E19RxCa-0008Ko-00.sasha_chaos-mail-ru@f6.mail.ru \ --to=sasha_chaos@mail.ru \ --cc=sarlug@lug.ru \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
Saratov Linux User Group This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/sarlug/0 sarlug/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 sarlug sarlug/ http://lore.altlinux.org/sarlug \ sarlug@lists.lug.ru sarlug@lug.ru public-inbox-index sarlug Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.sarlug AGPL code for this site: git clone https://public-inbox.org/public-inbox.git