I installed appserv, created a db in phpmyadmin, imported the tables from the original db and some data to (not all because it's too much).
Here started my problems. The site in my local host has some character issues so it make querys looking for tables with these special characters. So, instead of a list of lines from my tables I get this in my page:
Code: Select all
SELECT noticias.data™Data™bd™editar.php?tipo=$tipo&id=valor_id&filtro=$filtro™™
FROM noticias™™id™
WHERE 1=1 AND tipo=1
Error: noticias™™id™' doesn't existOne other option is to point my code to the original, remote db. I have this php code:
Code: Select all
session_start();
// DB do Site
//***********************************
Class config {
var $db;
var $login;
var $senha;
var $odbc;
var $driver;
var $servidor;
Function config () {
$this->db = "db";
$this->login = "user";
$this->senha = "pwd";
$this->odbc = "";
$this->driver = "";
$this->servidor = "localhost";
}
}
TIA for any help,
João