allora.
per ora nn ho messo dati da inviare proprio per semplificare il tutto.
probabile che la pagina che tento di richiamare nn funzioni.
codice ripreso dall'esempio, cambiando la query ovviamente.Codice PHP:class Dtlarticolo extends CI_Controller {
function __construct() {
parent::__construct();
}
public function getDtlArticolo() {
$query = $this->db->get('art');
if ($query->num_rows > 0) {
$output_string = "";
$output_string .= "<table border='1'>\n";
foreach ($query->result() as $row) {
$output_string .= "<tr>\n";
$output_string .= "<th>{$row['cod']}</th>\n";
$output_string .= "</tr>\n";
}
$output_string .= "</table>\n";
} else {
$output_string = "There are no results";
}
return json_encode($output_string);
}
}
nn so se possa essere qua l'errore.

Rispondi quotando