You are here: Re: Field Number Limitation into MySQL « PHP Programming Language « IT news, forums, messages
Re: Field Number Limitation into MySQL

Posted by Chris Hope on 10/26/56 11:34

cover wrote:

> On Mon, 12 Dec 2005 21:39:05 -0700, Christopher Pomasl
> <pomasl-NOSpam@starband.net> wrote:
>
>>Someone already noted the extra comma at the end before the close
>>paren. You are also, seemingly, missing a comma between keisize and
>>uhmwsize in the last line.
>
> WOW - that was it and how did I miss it? thanks very much and thanks
> to everyone who replied and helped me with this...
>
> One question - as I used the indicator for feet and inches (' and "
> respectively), I received error codes in the query. Is there a way to
> tell MySQL to ignore feet or inch inputs when they're inserted through
> the form? TIA

It's because you need to escape special characters such as single and
double quotes.

Refer to
http://www.php.net/manual/en/function.mysql-escape-string.php
http://www.php.net/manual/en/function.mysql-real-escape-string.php

You really need to be aware of sql injection:
http://www.google.com/search?q=sql+injection

It's quite possible to delete records, tables and entire databases with
sql injection. Believe me, I've done it to prove a point in the past.

--
Chris Hope | www.electrictoolbox.com | www.linuxcdmall.com

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация