Alright! Hey guys, First time I've actually needed to post something on any of these forums..
I'm having some problems with this admin panel I'm building in PHP, I can't seem to insert into the table I need to!
Heres a small part of the code which receives stuff posted to it from a form..
$nav = $row['nav'];
$editable = $row['editable'];
$withlinks = $row['withlinks'];
$name = $_POST['name'];
$title = $_POST['title'];
$content = $_POST['content'];
mysql_query("INSERT INTO links (name, title, content, nav, editable, withlinks) VALUES ('$name', '$title', '$content', '$nav', '$editable', '$withlinks')");
/** mysql_query("INSERT INTO links (name, title, content, nav, editable, withlinks) VALUES ('$name', '$title', '$content', '$nav', '$editable', '$withlinks')"); **/
The reason I have the same query twice with one commented out is because, last time I had an error with querys, I copied the same type of query off a tutorial site, and changed the variables to suit, and it worked! It was exactly the same "visually" as what I had typed..
I use Notepad++
Umm that's about all,
Thanks in advance!
Joe