Quote:
Originally posted by Sportbikeworld
We would love to use your hack, but we have 6 mySQL databases on our server. So am I correct in assuming that I cannot use this hack with more than one database on our server?I'm not sure I understand why your hack just does not point to the correct VB database.
|
In fact we discovered this bug recently and although I've already fixed it, I'm just too lazy to update the script here.
You can use the hack: Just install it and see if you can load "whoareyou" template without any problems. If you get an MYSQL ERROR while loading this template, edit "show.php", find the line:
$cekilen_query=mysql_query("select id,name,query,noresulttext,tablerow from webtemplatequery order by id");
BEFORE THAT add:
--- cut --------------
$servername='localhost';
$dbusername='root'; //MYSQL username
$dbpassword=''; //MYSQL password
$dbname='xxx'; //database name
mysql_connect("$servername", "$dbusername", "$dbpassword") or die("Couldnt find MYSQL!");
mysql_select_db("$dbname") or die ("Couldnt find DB!");
--- cut --------------
Dont forget to edit your db details and you'll be just fine..
Enjoy!
Logician