Jump to content

Updating datebase


kevin1145

Recommended Posts

hey guys this is my fist post here, so im sorry if i dont give enough info!

but anyways i made (with help from a youtube tutorial) a users edit page

but if i click on the update button it says it has been updated...

but if i look in mysql database nothinghappend??!.

i really want this to work because i love scripting with php and i dont like to give up so please help me!

 

 

i have uploaded to files here. but if one of you have to see more just ask me!

edit_profile.php

user.inc.php

Link to comment
Share on other sites

Hey,

 

I am taking a look at these right now and the first thing I noticed is that your HTML form never closes and you have to give your form a action. Right now your form action is set to "" which means it is not taking any action. In this case it seems you are doing a single page submission so you action would be "edit_profile.php"

 

Close your form and set the action and let me know what happens

Edited by computermax2328
Link to comment
Share on other sites

Right, but what I am saying is that the session['uid'] is not data that is stored in a database. It is just a piece of information that the server remembers in order to trace a user around the website. When they log in or they make a log in account do you give them a unique id? That would be something the query. You can't query something that is not stored in the database. 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.