0

Hello ive got a form where the users enter there details on a form then click on submit which then should update there telephone number, where is says where Email= $_Post[Email]") thats one of the fields that automatically appear the email cant be updated, this code below luks correct and no errors but aint updating the database it just stays the same and ive tried echo mysql_query and it appears with errors when i use that any ideas what could be wrong


mysql_query("UPDATE StudentRecords SET TelephoneNumber = $_POST[TelephoneNumber] WHERE Email = $_POST[Email]");

2
Contributors
1
Reply
2
Views
9 Years
Discussion Span
Last Post by sukhy_1
0

hello you dont need WHERE Email = $_POST[email]"); because the user has already logged in and you got the email from before

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.