Hello and thanks in advance for any help.
I'm just starting out on PHP and read the very useful exercise at http://bytes.com/serversidescripting...ses/index.html
I turned on debugging as suggested and on running I got the following error messages:
which relate to the line 27:
[code=php]
$sqlquery = "INSERT INTO $table VALUES('$id','$ name','$email', '$opinion')";
[/code]
So this suggests that I need to declare variables or that the html does not pass the data to the php script?
My final result does not as expected write to the table "informatio n".
Thanks for your help in debugging as this seems to be a good exercise in learning the basics of writing to mysql data tables.
Regards
Mark
I'm just starting out on PHP and read the very useful exercise at http://bytes.com/serversidescripting...ses/index.html
I turned on debugging as suggested and on running I got the following error messages:
Code:
Notice: Undefined variable: id in C:\Program Files\EasyPHP 2.0b1\www\test\add2.php on line 27 Notice: Undefined variable: name in C:\Program Files\EasyPHP 2.0b1\www\test\add2.php on line 27 Notice: Undefined variable: email in C:\Program Files\EasyPHP 2.0b1\www\test\add2.php on line 27 Notice: Undefined variable: opinion in C:\Program Files\EasyPHP 2.0b1\www\test\add2.php on line 27
[code=php]
$sqlquery = "INSERT INTO $table VALUES('$id','$ name','$email', '$opinion')";
[/code]
So this suggests that I need to declare variables or that the html does not pass the data to the php script?
My final result does not as expected write to the table "informatio n".
Thanks for your help in debugging as this seems to be a good exercise in learning the basics of writing to mysql data tables.
Regards
Mark
Comment