I am working in PHP, I have to define variables in sequence to save in Mysql. Both field name and variable name must be same in my case.
Can I declare a variable like this
$1 OR $2 etc
If not why not and if yes why yes?
I tried:
$id = 0;
$6 = $_REQUEST['6'];
$7 = $_REQUEST['7'];
$8 = $_REQUEST['8'];
$xary = array('6','7','8','9')
$oAppl->save_record("tablename", $id, "id");
which give me error.
Also can I create and use fields in Mysql with the same name?