How to Create PHP Comment box using MySQL Database - Part 1
Uploader Comments (helpertuts)
All Comments (93)
-
Awesome tutorial dude !
BUT ONE PROBLEM !
--> the database says
"MySQL returned an empty result set (i.e. zero rows). ( Query took 0.0006 sec )"
Why is it so ? when i wrote the code i skipped the name field and even made changes in the code according to it ! Also their was no name column in my table ( i didnt make it ) HELP ME OUT please
-
@helpertuts thanx for all the feedback man ...
-
@toodalootdoot No it just means that the values to those fields have not yet been added. nothing about the error
-
@davidsaso1234 after the <?php type: error_reporting(0)
-
ok. But it wont work if you use " ' " in the comment body. How to resolve that
-
i got error when loading in browser. how to solve this? how many times a review the code.
Notice: Undefined index: name in C:\xampp\htdocs\siteb\commentb
ox.php on line 4 Notice: Undefined index: comment in C:\xampp\htdocs\siteb\commentb
ox.php on line 5 Notice: Undefined index: submit in C:\xampp\htdocs\siteb\commentb
ox.php on line 6 -
a lot of people are also having this issue
Notice: Undefined index: name
Notice: Undefined index: comment
Notice: Undefined index: submit
even after using your file...
please help!
-
i get an error saying
Notice: Undefined index: Name in C:\xampp\htdocs\php-practice\i
ndex.php on line 3 Notice: Undefined index: Comment in C:\xampp\htdocs\php-practice\i
ndex.php on line 4 Notice: Undefined index: submit in C:\xampp\htdocs\php-practice\i
ndex.php on line 5 but i have name="name"
and comment="comment"
and submit="submit"
y is it not working?
first of all, how did you get that myphpadmin?
FarryEntertainment 8 months ago
@FarryEntertainment Download package called XAMPP or WAMP server and if on mac, then download MAMP... all this comes with PHP and MySQL support (phpMyAdmin)
helpertuts 8 months ago
hey man! great video it all worked like i wanted to, but above of the name box, it's giving me those 3 lines:
Notice: Undefined index: name in C:\xampp\htdocs\comment.php on line 4
Notice: Undefined index: comment in C:\xampp\htdocs\comment.php on line 5
Notice: Undefined index: submit in C:\xampp\htdocs\comment.php on line 6
savra91 8 months ago
@savra91 There is a simple solution... put this code beofre any PHP code, in PHP start tags.... it's "error_ reporting(0);"... something like this....
still need help then go to my website and download the final version and check the code out and how I did it...
helpertuts 8 months ago
why cant you upload to megaupload link is down
harajli56 9 months ago
@harajli56 I fixed the link...
helpertuts 9 months ago