Soldato
- Joined
- 12 Feb 2006
- Posts
- 17,643
- Location
- Surrey
So i have my script that does a load of checking of stuff using if, else, another if, then else, another if then else.
at the top of the page i have written the mysql connect to database, which at the end of all the if elses is called and then a load of other variables is inserted into the database.
now one of the variables, lets call it insertVar, that will be inserted into the database is below the databse connection variable as it needs to be used and then at the end something happen toit just before it is inserted.
why can the variable not be seen when it is below it? when it is above the database connection vairable it can be found but not below.
at the top of the page i have written the mysql connect to database, which at the end of all the if elses is called and then a load of other variables is inserted into the database.
now one of the variables, lets call it insertVar, that will be inserted into the database is below the databse connection variable as it needs to be used and then at the end something happen toit just before it is inserted.
why can the variable not be seen when it is below it? when it is above the database connection vairable it can be found but not below.