1
I think my problem is simple, I’m trying to insert into the database through the function time()
but does not insert values.
Code
$time = time();
mysql_query("INSERT INTO posts (user_id, estabelecimento_id, opiniao, data)
VALUES('".$_REQUEST['user_id']."',
'".$_REQUEST['id_estabelecimento']."',
'".$_REQUEST['opiniao']."',
'".$time."' ");
That way it doesn’t enter anything into the database, I don’t know what could be causing it.
The column is with type bigint
the column
data
is of which type in the bank?– André Ribeiro
It’s kind of bigint
– César Sousa
Leave your Insert like this and see the error:
mysql_query('inser....') or die(mysql_error());
.– rray