Como hago para depurar mis programas? [ GRACIAS ]
// Programa tipico con errores
Código PHP:
<?php
Include('clases/adodb5/adodb.inc.php'); // cargo la clase
Include "connect.php"; // DB connect
Include "varios.inc.php";
$rs = $DB->execute ('SELECT * FROM posts');
while (!$rs->EOF){
$id_blog = $rs->fields ['id_blog'];
$id_post = $rs->fields ['id'];
$sql= "INSERT blog-post (id_blog,id_post) values ($id_blog,$id_post)";
echo "$sql<br/>";
$DB->execute($sql);
$rs->moveNext();
}
?>