At this moment I have:
PHP Code:
$conn = mysql_connect(SERVER,DBUSER,DBPWD) or die ("Problemas na ligação MySQL");
mysql_select_db (DB);
ob_start(); // begin output buffer
include("http://10.0.0.9/cm-lousa.pt/2.0/newsletter/newstohtml.php");
$html = mysql_real_escape_string(ob_get_clean(), $conn); // store the output and delete the buffer
include("http://10.0.0.9/cm-lousa.pt/2.0/newsletter/newstotxt.php");
$txt = mysql_real_escape_string(ob_get_clean(), $conn); // store the output and delete the buffer
$sql = "insert into newsletters values(NULL, 'zamalek', 'too soft', '".$html."', '".$txt."', '1')";
$query = query($sql) or die ("Query failed: " . mysql_error() . " Actual query: " . $sql);
I want to put the output of newstotxt.php in the DB in the var $txt. Why I doesn't obtain the result that I want in this code?? Can You explain to me??
Bookmarks