jd2007 Posted July 11, 2007 Share Posted July 11, 2007 $name = (isset($_GET["name"])) ? $_GET["name"] : NULL; $comments = (isset($_GET["comments"])) ? $_GET["comments"] : NULL; $server=mysql_connect("localhost", "root") or die("Could not connect: " . mysql_error()); $connection=mysql_select_db("Commentings", $server); $queryc="INSERT INTO Comment (name, comments) VALUES ($name, $comments)"; $resultc=mysql_query($queryc); $query2="SELECT comment.name, comment.comments FROM comment"; $result2=mysql_query($query2); while ($record = mysql_fetch_assoc($result2)) { while (list($fieldname, $fieldvalue) = each ($record)) { echo "<B>".$fieldvalue."</B><BR>"; echo "<BR>"; } } Quote Link to comment Share on other sites More sharing options...
mmarif4u Posted July 11, 2007 Share Posted July 11, 2007 What help u need regarding to ur code. Quote Link to comment Share on other sites More sharing options...
teng84 Posted July 11, 2007 Share Posted July 11, 2007 what are those codes what are we going to do with those codes Quote Link to comment Share on other sites More sharing options...
jd2007 Posted July 11, 2007 Author Share Posted July 11, 2007 i got it solved, anyway thanks for your replies ! Quote Link to comment 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.