Notice: Undefined variable: add_topic_sql on line 26
Warning: mysqli_query() [function.mysqli-query]: Empty query on line 26
$add_topic = “INSERT INTO name (name_first, name_last) VALUES (’$name_first’ , ‘$name_last’)”;
Line 26:
$add_topic_res = mysqli_query($mysqli, $add_topic_sql) or die (mysqli_error($mysqli));
I googled and searched for help on what exactly what $add_topic_res and $add_topic_sql is but didnt find any references. This is a simple database query i broke down from my PHP all in one book. I double checked to make sure my variables were being brought over from my html page, i double checked to make sure i was connecting to the database ok and i was able to echo $add_topic and get the fields ok. thoughts?