FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » When do I use {}?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: When do I use {}? [message #169561 is a reply to message #169552] Fri, 17 September 2010 20:51 Go to previous messageGo to previous message
Michael Fesser is currently offline  Michael Fesser
Messages: 215
Registered: September 2010
Karma:
Senior Member
.oO(bruceaj)

> On Sep 16, 11:47 pm, Jerry Stuckle <jstuck...@attglobal.net> wrote:
> Sorry I didn't explain the problem more clearly. Yes, this what I was
> asking about curly brackets. I'm aware of curly bracket when wrapping
> code but I can't seem to find the explanation when using them to wrap
> array elements. That is where I have seen them used in code examples,
> likc "SELECT a FROM b WHERE t={$_GET['x']}";

Stone the one to death who gave you this example. ;-)

(Keyword for further reading: "SQL Injection")

Micha
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: OOP, classes and databases
Next Topic: @sessionstart()
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 23 19:06:34 GMT 2024

Total time taken to generate the page: 0.04626 seconds