hey guys, i've been working on a guestbook and i got it to work fully on my computer under the localhost address. I have just tried to upload it to my site and have gotten some complications. I have created a database on my webspace and also a table underneath it. here is my code: include 'connect.php'; [code=php:0] if (isset($_POST["submit"])) { foreach ($_POST as $key => $value) { mysql_real_escape_string($value); } $name = $_POST["name"]; $country = $_POST["country"]; $email = $_POST["email"]; $im = $_POST["im"]; $comment = $_POST["comment"]; $addtodb = "insert into $dbname (name,country,email,im,comment) values ('$name','$country','$email','$im','$comment')"; if (mysql_query($addtodb,$con)) { header('Location: view.php'); } else { echo "Sorry we could not add your message"; } } [/code] for some reason, it doesn't add it to the db, all i get is the echo statement. any ideas?