php - Name becomes null after refreshing the page -


i have website doesn't work way want to. if enter name , comment, write below comment section. when refresh, name becomes null.

github: https://github.com/thebestbestman123/my_magazine

i think table row title "name" not "commenter" https://github.com/thebestbestman123/my_magazine/blob/master/php/get_comments.php

$rowarray["name"] = $row["commenter"]; 

based saving row name: https://github.com/thebestbestman123/my_magazine/blob/master/php/add_comment.php

sprintf("insert comments (id, name, comment, timestamp) values (null, '%s', '%s', null)"


Comments

Popular posts from this blog

ios - iPhone/iPad different view orientations in different views , and apple approval process -

java Extracting Zip file -

C# WinForm - loading screen -