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]");

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.