Re: [PHP] undefined constant?

2003-01-06 Thread Markus Jäntti
quoting solved the problem thanks mate :) > How about if you quote index/key names in arrays like: > > if($_GET['test'] == "test") { echo "A"; } > > HTH, > Jason k Larson > > > Markus Jäntti wrote: > > If have this piece of

[PHP] undefined constant?

2003-01-06 Thread Markus Jäntti
If have this piece of code (test.php): I open the file in my browser like this: localhost/test.php?test=test and get this page: Notice: Use of undefined constant test - assumed 'test' in c:\programfiler\apache group\apache\htdocs\test.php on line 2 A Do I need to define test? How can I work a

[PHP] New to PHP, and stuck

2002-11-06 Thread Markus Jäntti
I'm working myself through Julie C. Meloni's book "PHP" and now I'm stuck at chapter 12. My script gives me this error: You have an error in your SQL syntax near '()' at line 1 even tho I've even tried replacing my own work with the file from the book's companion-files. I'd be very happy if someon