It works!!!, this how it look!!
/**
* Functions
*
* stores procedures used in all the systems, if you have a function like this
* is where to place it
*
* @package functions.inc.php
* @author Armando Argel Arias Casta�eda
* @version 0.1Beta
*/
function getSetup($name){
global $SetupConnection;
$name = cleanToDB($name);
$sql = "SELECT `value` "
."FROM `setup` "
."WHERE `name` = ‘$name’ "
."LIMIT 1; ";
if ( $value = $SetupConnection->getOneValue($sql) ) {
return $value;
}
return false;
}
* Functions
*
* stores procedures used in all the systems, if you have a function like this
* is where to place it
*
* @package functions.inc.php
* @author Armando Argel Arias Casta�eda
* @version 0.1Beta
*/
function getSetup($name){
global $SetupConnection;
$name = cleanToDB($name);
$sql = "SELECT `value` "
."FROM `setup` "
."WHERE `name` = ‘$name’ "
."LIMIT 1; ";
if ( $value = $SetupConnection->getOneValue($sql) ) {
return $value;
}
return false;
}
Test it for yourself at Code2Wordpress.
Aparently the format isn’t respected at the planet’s, well .. una de cal por las que van de arena.
Post a Comment