php newbie having stupid problem

Alexej Kubarev

New member
The problem is tha toyu have your serever configured to chow notices witch is a very good practise to write clean codes... what you need to do to fix that particular notice is use:

$sql = "INSERT INTO testTable values ('', '".$_POST['testField']."');";

that will maka testField to a string index... the notice will disappear..

in most notices can be ignored, but that is that your code is not clean...

Therefore: you should try to write a clean code...

Note that if you are using string indexing (some text as an index in the array) : you should youse quotes around that index... otherwise php will give you a notice..