So I have this file, It’s called percentage1.inc and it includes this miniture script:
<?php $percentage1 = “70”;
print("$percentage1"); ?>
And in some files I call them with this:
<?php include(“percentage4.inc”); ?>
well guess what, that works perfectly!
But then there’s this page (change.php) , and I need a code that changes the data in percentage1.inc… It says:
$percentage1 = “70”;
The bold part (70) is what has to be changed into the value of the variable verrandering in the file change.php
Example:
Data of “verrandering” is 22
The .inc file (witch is: <?php $percentage1 = “70”;
print("$percentage1"); ?>)
Will then be changed in:
<?php $percentage1 = “22”;
print("$percentage1"); ?>
How do I do that? I have no clue