Thanx.. that worked.. but i still got a problem, take a look at my code:
<?php
mysql_select_db($database_php, $php);
$query_php = sprintf("SELECT * FROM mxnews");
$not = mysql_query($query_php, $php) or die(mysql_error());
while($row_not = mysql_fetch_assoc($not))
{
// id|cid|time|user|title|news|fnews|data:vars
$s = $row_not['time'];
$data = date('YmdHis',$s);
echo $data;
$autor = $row_not['user'];
$titulo = $row_not['title'];
$texto_c = $row_not['news'];
$texto_l = $row_not['fnews'];
$submit_query = mysql_query("INSERT INTO noticia (titulo, autor, data, texto_c, texto_l)
VALUES ('$titulo', '$autor', '$data', '$texto_c', '$texto_l')") or die(mysql_error());
}
but i m getting this:
2004092415500220040924185919200409241948352004092420194620040924202940200409242036282004092420550420040925104637You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 's novos, alΓ©m de novos veΓculos, armas e ainda por cima deixa o
Wtf is wrong with it?
I ve commented the die(mysql_error()); and it worked.. but there was more than 10 lines missing in the table :queasy: