My biggest problem is that it is not putting data into the database. I have been all over the net, and other forums and cant seem to spot what is wrong. From what I can see, and from what others have looked at it, the code is right. But it does not submit? But, on another note, on all the ones that say the code is correct, and if you notice there is a command to acknowledge that the data has been entered in successfully, well, that does not show up. It does not say that data was entered into the data base, nor does it say any error messages. I just dont know what else to do. I have just about pulled all my hair out over this one. I am building this site for a friend, and as of now, there are no deadlines, but I would like to finish before any deadlines come up. This is about the only thing keeping me from finishing the site.
It looks like this is an mysql problem maybe? Since the php code is all correct? But then, why dont I get my echo's when everything is complete? Is it a php setting? mysql? Apache? I havent gotta clue.
Frustratingly,
Todd
Ok, I have done some testing. I can go to phpMyAdmin, and sqlYOG, and manually input the info:
The string in php looks like this:
"INSERT INTO employees (first,last,address,position) VALUES ('$first','$last','$address','$position')"
When I input manually (like below) it works just fine.
INSERT INTO employees (first,last,address,position) VALUES ('todd', 'marx', '123 home street', 'dazed and confused');
I dont think any variables are being passed. I have added code to echo all the variables, but nothing comes up. Is this normal when using the "php_self" command?