Hi,
I've made a new page to add to my copy of phpwebsite, I've copied my old db tables into the phpwebsite db, now when i copy over my code to a new page and open it and run the scripts from inside phpmyweb site i keep getting input errors now when i take my code and run it out of phpwebsite it runs perfectly and has no problems... can any one offer any suggestions as to what I should look for inorder to fix this problem? as I cannont see any thing that would cause the problem..
here's basically what the page does ...
insert form .. inserts values into the db table .. (first field is always 0 for some reason when run inside phpwebsite)
select form .. a select box with vaules hand coded in .. ( no matter what option i select it will always show the first field with '0' in it)
update form .. this updates multiple records at the same time .. ( dependant on the select form... some times nothing shows up)
now I have the vaules check by using this code ..
echo "Values submitted via POST method:<br>";
reset ($HTTP_POST_VARS);
while (list ($key, $val) = each ($HTTP_POST_VARS)) {
echo "$key => $val<br>";
}
on the update form these lines are added
reset($id);
while (list ($key, $val) = each ($id)) {
echo "Key: $key => Value: $val;<br>";
mysql update script
}
I just can't understand why it doesn't work when run inside phpwebsite and works perfectly when as a stand alone page..
Peter
Ps if you would like to see the full code let me know and i will send it to you