myblueocean Posted May 31, 2007 Share Posted May 31, 2007 I'm trying to get a small guestbook working, and when i mean small, it's just name, comments and date. would anyone be willing to help me via MSN? This shouldn't take too long? Quote Link to comment https://forums.phpfreaks.com/topic/53750-need-some-help-small-guestbook/ Share on other sites More sharing options...
per1os Posted May 31, 2007 Share Posted May 31, 2007 If you posted code I am sure you can get plenty of help from here. Also if you do want someone to contact you via msn you probably should post your handle. Quote Link to comment https://forums.phpfreaks.com/topic/53750-need-some-help-small-guestbook/#findComment-265644 Share on other sites More sharing options...
myblueocean Posted May 31, 2007 Author Share Posted May 31, 2007 I'm new to this, and need some help with this. The script was made for me... :-\ <?php $mysql_host='localhost'; // $mysql_username='username'; // Hier kommt der MySQL Benutzername hin $mysql_password='password'; // Hier kommt das MySQL Password hin $mysql_dbname='dbname'; // Hier kommt der Name der Datenbank hin $conn = @mysql_connect($mysql_host, $mysql_username, $mysql_password); @mysql_select_db($mysql_dbname, $conn); mysql_query("INSERT INTO `gb_users` (name,comment) VALUES ('".$_POST[name]."','".$_POST[comment]."')"); echo "Name: ".$_POST[name]."<br />"; echo "Comment: ".$_POST[comment].""; ?> There is the form script for the post action. And here is the screenshot with the tables, http://img353.imageshack.us/img353/5311/phpyj2.jpg Quote Link to comment https://forums.phpfreaks.com/topic/53750-need-some-help-small-guestbook/#findComment-265669 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.