Hi,
how can i store external db data into a tv that i can use from manager like a drop down menu?
I use this code into a tv:
@EVAL return include(getcwd().'/myselect.php');
This is the code inside the included file:
$myconn = mysql_pconnect($host,$dbname,$password);
$database = mysql_select_db($mydb,$myconn);
$query = "SELECT * FROM macchine";
$result = mysql_query($query);
$html = "";
while ($row = mysql_fetch_array($result)) {
$html .= $row['modello']."==".$row['idMacchina']."||";
}
return substr($html,0,-2);
This code return a javascript alert with this message: "Logging error: couldn’t save log to table".
How can i manage an external db? Thanks