Augustino
01-04-2007, 04:47 PM
define('NO_REGISTER_GLOBALS', 1);
define('THIS_SCRIPT', 'filename');
$conexion=mysql_connect("localhost","username","pass") or die ("no se ha podido conectar a la BD");
mysql_select_db("database") or die ("error");
$clasif = mysql_query("THE SELECT WITH TEMPLATE LIST AND FILES THE WHERE MUST HAVE THE REFERENCE PAGE");
$listatemplate=mysql_result($consulta,0,"template");
$globaltemplates=explode(".", $listatemplate);
//After the global.php
require_once('./global.php');
Is working but I think not is so good idea because openning a new connection, which mean more resource usage instead of use the same connection of vBulletin, How can I use the same connection than vBulletin
Anyother idea?
PD. Please disable the automerged double post , in this forum
define('THIS_SCRIPT', 'filename');
$conexion=mysql_connect("localhost","username","pass") or die ("no se ha podido conectar a la BD");
mysql_select_db("database") or die ("error");
$clasif = mysql_query("THE SELECT WITH TEMPLATE LIST AND FILES THE WHERE MUST HAVE THE REFERENCE PAGE");
$listatemplate=mysql_result($consulta,0,"template");
$globaltemplates=explode(".", $listatemplate);
//After the global.php
require_once('./global.php');
Is working but I think not is so good idea because openning a new connection, which mean more resource usage instead of use the same connection of vBulletin, How can I use the same connection than vBulletin
Anyother idea?
PD. Please disable the automerged double post , in this forum