Hi all,
I have a nasty $GET[] problem
I redirect the php code using headers with the query string and all values echo out.
On the new page I do this :
echo $model_id = $GET['model_id']; //displays 1
echo $model_name = $GET['model_name']; //displays BMW
The values are displayed so all is good however when I try and re-use $model_id and $model_name like this :
$sql_stmt =
"UPDATE model_part".
" SET part_title = '$key', part_area = '$value'".
" WHERE model_name = '$model_id'".
" AND model_id = '$model_name';";
The model id and name displays as empty string, what am I doing wrong? I have tried {$model_id} and '" {$model_id} "'
thanks in advance
BBK 🙂