Re: [PHP] syntax question
- From: ceo@xxxxxxxxx ("Richard Lynch")
- Date: Mon, 26 Mar 2007 14:24:04 -0500 (CDT)
On Mon, March 26, 2007 9:59 am, Ross wrote:
Can I put post values directly into insert statements?
$query = "INSERT INTO categories (category_name) VALUES
('$_POST['cat_name'])";
Sure!
If you want your webserver to get hacked by the Bad Guys, just go
right ahead and do that.
[that was tounge-in-cheek]
Start reading here:
http://phpsec.org
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?
.
- Follow-Ups:
- Re: [PHP] syntax question
- From: "itoctopus"
- Re: [PHP] syntax question
- References:
- syntax question
- From: "Ross"
- syntax question
- Prev by Date: Re: [PHP] combine empty and trim
- Next by Date: Re: [PHP] Rewriting urls
- Previous by thread: Re: [PHP] syntax question
- Next by thread: Re: [PHP] syntax question
- Index(es):
Relevant Pages
|