RE: [PHP] JSP vs. PHP?

2002-08-09 Thread cteubner
I'm not a JSP programmer so don't quote me but... A) The syntax isn't really that similar to Java. In Java, EVERYTHING is an object. You could write PHP like that if you wanted to but most people don't, especially those who are working with MySQL, for example. PHP is really a cross between C

RE: [PHP] passing variable via url ( newbye question)

2002-07-30 Thread cteubner
You are passing the variables correctly. If that's your actual code echo $_GET['modo'].BR; echo $_GET['color'].BR; echo $_GET['size'].BR; then you need br (note the closing ) - PHP is doing what you told it, and your browser is confused by the output. If PHP were the problem you'd probably

[PHP] Disturbing parsing problems

2002-07-29 Thread cteubner
I added a few number_format() statements to previously working code (not having changed any {}s ) and it started getting parse errors, 'unexpected t_if, expected t_while'. In other words, it thinks the do statement shown below has been closed, and wants to hear about the while part. I

RE: [PHP] Disturbing parsing problems

2002-07-29 Thread cteubner
Personally, I *love* one-line if statements :D However, I took your advice and used braces for all of them; same problem. I have parentheses with all of my if's, before the braces - I just forgot to include a few here. I haven't checked every () and [], but every {} is accounted for. The

RE: [PHP] Disturbing parsing problems

2002-07-29 Thread cteubner
Sorry to double-post but this brought up something I didn't realize wasn't clear in my original post. When I say: if () ; I am using the one-line if/elseif/else syntax, which works like this: if($foo) echo $bar; elseif($x) echo $y; else echo $z; This is a self-contained if statement, as in C,

Re: [PHP] php.exe from command line

2002-07-29 Thread cteubner
Simple. Parameters of the type you described, with the ?, = and , etc. are specific to URLs and are handled by CGI, common gateway interface, i.e. the web server. See the PHP documentation on $argc[] and $argv[] if you want to pass parameters on the command line.

RE: [PHP] Auto Increment Problems....

2002-07-29 Thread cteubner
-Original Message- From: Georgie Casey [mailto:[EMAIL PROTECTED]] Apart from this looking ugly, it poses another problem. In my PHP script where I can add new rows, I query the table, checking how many rows in the table altogether and set the new id as the next number, but this doesnt