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
You are passing the variables correctly. If that's your actual code
echo $_GET['modo']." (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 see an
error message.
Also, upgrade to 4.2.2 please :)
Regards,
Co
-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
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.
http://us2.php.net/manual
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,
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 rea
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 chec
7 matches
Mail list logo