Jump to content

[SOLVED] unable to insert all my values into the database


cluce

Recommended Posts

can someone tell me if I have an error in my code because its not inserting my $_session['identity']  into the database.   I know the session has a value because I am able to display it on the page. it just wont insert it into the database.    

//create and issue the first query
$add_topic_sql = "INSERT INTO forum_topics (topic_title, topic_create_time, topic_owner) VALUES ('".$_POST["topic_title"]."', now(), '".$_SESSION['identity']."')";
$add_topic_res = mysqli_query($mysqli, $add_topic_sql) or die(mysqli_error($mysqli));

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.