repeat variable in functions.php
Posted: Wed Aug 11, 2010 6:53 pm
I've got a functions.php file that holds all my basic functions of displaying data from queries, etc.
I was curious, can I repeatedly set the same variable within different functions without error?
For example..
Is there any conflict if I were to use 2 functions in the same page, etc.?
I was curious, can I repeatedly set the same variable within different functions without error?
For example..
Code: Select all
function myFunctionHere(){
$q = "SELECT * FROM etc";
$result = mysql_query($q);
}
function aSeperateFunctionHere(){
$q = "SELECT * FROM etc";
$result = mysql_query($q);
}
Is there any conflict if I were to use 2 functions in the same page, etc.?