ok, I have the variable declared in
test.inc:
<?php
$foo = '10'
?>
What I want to do is Increment it but the code to do that MUST be in test.php
In other words i am trying to MODIFY a global variable in test.inc from test.php
I tried this
test.inc:
<?php
$foo = '10'
?>
test.php:
<?php...
Hi sleipnir214, thanks but thats not what I meant.
From your example, I am looking for a way to set $foo from test.php so that it updates in test.inc!
Is that possible?
Hi I have an include file config.inc.php and another file.
I am trying to set a variable within the config.inc.php from the other file. Is this possible?
Doesnt seem to work!
Hi I have an include file config.inc.php and another file.
I am trying to set a variable within the config.inc.php from the other file. Is this possible?
Doesnt seem to work!
I have the following problem:
$sql_car = "SELECT Car FROM cars c INNER JOIN numberplate n ON n.Model = c.Model WHERE NumberPlate='RVVG12'";
$carModel = mysql_query($sql_car) or die("MySQL Error: " . mysql_error());
The query itself works fine in something like PhpMyAdmin...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.