Re: [PHP-WIN] Funny errors with IF

2001-04-13 Thread John Lim
Before you can use any variable, you need to set it to value first. I don't know where you got these examples from, but I believe the authors presume that you have initialised the variables somewhere else. If you are learning php, i suggest you use simpler examples, as these examples probably ass

Re: [PHP-WIN] Funny errors with IF

2001-04-12 Thread Olivier Hubert
Hi, >if ($submit) { > // here if no ID then adding else we're editing > if ($id) {... > >where id is the first field of mydb. Using other pages I can see that the >id is there in the mydb file. I also get the same error for "if ($submit..." Ok, I may be wrong here as I'm no PHP expert

[PHP-WIN] Funny errors with IF

2001-04-12 Thread Howard Picken
Just starting to learn PHP/MySQL and having problems with "undefined variable" errors. All the pages I've created from tutorials give me errors on "some" of the if statements. Example 1 etc I get errors on if (!$sep... etc and on if (!$send... etc Running Win98SE, Apache 1.3.x, MySQL 3