I'm making a layout for a wordpress page.
The layout needs to connect to a second database (both databases are in the same domain).
But the problem is, when i execute just the file it works. But when i included inside the wordpress layout i don't get data, no errorrs, nothing
The script is just:
$con = mysql_connect('host','user','pass');
mysql_select_db('db', $con);
$q = mysql_query('SELECT * FROM vars', $con);
var_dump(mysql_fetch_array($q));
As i say. If i execute the file alone:
it works great, and returns data.
But if i do inside the layout (creating a wordpress page, and giving the layout to it) Returns nothing.
Any idea what can be happening there?