PHP Version Display Code
Posted: Wed Feb 24, 2016 4:37 pm
I have very little knowledge of PHP code but I am using a modified version of the build.php file that is used in the sample SC file.
if (isset($_GET['build']) && $_GET['build'] != "") {
$build = $_GET['build'];
It appears that the 'build' variable being pulled from the SC app is formatted to something like 4.29 which is in a table in the app.
Everything is working as it should except that I want to display a longer version number like 4.29.01. I changed the build number to this format within the table but have to use quotes - "4.29.01" to make the calculation work.
The .php script does pick up the number but still displays 4.29 and not 4.29.01.
Any idea how to make this work?
Thanks. Ken
if (isset($_GET['build']) && $_GET['build'] != "") {
$build = $_GET['build'];
It appears that the 'build' variable being pulled from the SC app is formatted to something like 4.29 which is in a table in the app.
Everything is working as it should except that I want to display a longer version number like 4.29.01. I changed the build number to this format within the table but have to use quotes - "4.29.01" to make the calculation work.
The .php script does pick up the number but still displays 4.29 and not 4.29.01.
Any idea how to make this work?
Thanks. Ken